Author Topic: StarNet - new module for star removal  (Read 90716 times)

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: StarNet - new module for star removal
« Reply #120 on: 2019 December 11 11:24:38 »
just type

cd "C:/Program Files/PixInsight/bin"

into the pixinsight console and it will work.

rob

Offline jouvenette04

  • Newcomer
  • Posts: 6
Re: StarNet - new module for star removal
« Reply #121 on: 2019 December 11 11:25:00 »


I can confirm I have the same problem. The StarNet++ module only works for me if I completely close out of PI and open a new instance, then open my image and finally StarNet++. If I try to use the module within my default project I get the "Checkpoint file not found" message. Hopefully this can be fixed in a future release because it is a very useful tool!

Thanks
[/quote]

Same way for me with Pix last update 1.8.8 and Win10 in new or existing project("Checkpoint file not found"). Before with Pix 1.8.7 StarNet work.
Thanks

Offline wglogowski

  • Newcomer
  • Posts: 4
Re: StarNet - new module for star removal
« Reply #122 on: 2019 December 11 12:00:00 »
Hello Rob, et.al.
I have looked through the pages of this thread and I can't find the answer to this question:
When I go to Process > Modules > Install Modules...  and then click "recursive" I get the error that Mac Catalina 10.51.1 won't open StarNet because it comes from an unknown developer.  I know how to handle this issue with an app that I want to install ... just command-click and then select open but how do I handle this within Pixinsight?  Thanks for any help
Walter

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: StarNet - new module for star removal
« Reply #123 on: 2019 December 11 12:36:06 »
hi walter, i think after that happens, if you go into the system preferences and click on "security & privacy" there will be a button in the lower half of the window mentioning the dylib and a button that says "install anyway" or something like that.

i don't have 10.15 on any of my machines so i can't test, but i think others reported being able to override this and get it installed on 10.15

rob

edit: i should say that after clicking that you probably need to re-try installing the module from within pixinsight. i think clicking the button only marks the .dylib file as being safe, it doesn't actually install it.

Offline wglogowski

  • Newcomer
  • Posts: 4
Re: StarNet - new module for star removal
« Reply #124 on: 2019 December 11 12:49:33 »
Rob, that worked!  Thanks so much

Walter

Offline jouvenette04

  • Newcomer
  • Posts: 6
Re: StarNet - new module for star removal
« Reply #125 on: 2019 December 12 03:03:16 »
Hi,
Sorry! It was a mistake from to me. StarNet work well under Pix 1.8.8 and Win 10. All the files from Starnet_PI_windows zip (.pb and .dll) must be paste in Pixinsight/bin.

Offline nm303

  • Newcomer
  • Posts: 24
Re: StarNet - new module for star removal
« Reply #126 on: 2020 January 09 13:29:12 »
Hi, everyone!

For I while now (more than a year) I have been working on a new process for star removal. It is a specially trained neural network that is supposed to remove all the stars in one simple step and does not require any parameters to tune. It just works (or sometimes it does not :D).

Anyway, I released it a while ago and it was shown to work pretty well for most users. I was getting a lot of good feedback and also was asked a lot for a PI module version of the program.

So here is the link to download the new module: https://sourceforge.net/projects/starnet/files/PixInsight_module/

I consider it to be a beta release, so there might be some bugs. Also, one downside for now is that PI freezes and does not reply while the code is running. So keep that in mind and try on a small image at first.

Please read README.txt file for all the instructions and caveats. You can find some more information, discussion and examples of images if you search 'StarNet' on AB or in my releases on AB:

https://www.astrobin.com/409279/
https://www.astrobin.com/339099/


Let me know how it works for you! Also, it would be nice if someone could give me some idea on how to make PI not to freeze while the code is running!

Thank you!

It works great. Thank you very much :-)

Offline sparkyht

  • Newcomer
  • Posts: 5
Re: StarNet - new module for star removal
« Reply #127 on: 2020 January 12 15:37:35 »
Tried loading this module for the first time using 1.8.8-3 Linux, searching for module fails before I can even select it. Per the instructions, after going to Process>Modules>Install Modules, clicking on 'Search' causes PI to instantly crash and exit. Files are in /opt/PixInsight/bin as per instructions. Is this a PI Linux issue or a StarNet/++ issue?

Offline eoverstreet

  • Newcomer
  • Posts: 11
Re: StarNet - new module for star removal
« Reply #128 on: 2020 January 13 12:57:19 »
I have read through most of this thread and seem to be in a boat all by myself.

I am running MAC OS Ver10.14.6 Mojave

I am using the most recent PixInsight update 1.8.8-3

I have copied the zip file for the MAC OS from Sourceforge, unzipped the files and placed in the bin folder   /Applications/PixInsight/Bin

When I try to "Install Modules" in PixInsight ..a popup box appears ...see attachments - it matters not whether I select recursive or not.  I get the same message.   .....If I go to SYSTEM PREFERENCES in the SECURITY and PRIVACY tab "starnet++" is not available to approve.

I have the correct files in the bin folder per my understanding of others on this thread (not the stand alone)

Any suggestions would be appreciated.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: StarNet - new module for star removal
« Reply #129 on: 2020 January 13 13:00:09 »
if i remember correctly, if the tensorflow libraries are not in the right place or uninstalled, then PI does not actually try to load the module (and thus the gatekeeper approval thing never appears in the System Preferences.)

so i'd say double-check that the tensorflow dylibs are properly installed.

rob

Offline eoverstreet

  • Newcomer
  • Posts: 11
Re: StarNet - new module for star removal
« Reply #130 on: 2020 January 13 13:07:21 »
I am over my head trying to understand this......those files are located in the same bin that the other Starnet++ files reside.   Do I need to move them (install them) somewhere else?

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: StarNet - new module for star removal
« Reply #131 on: 2020 January 13 13:15:34 »
the tensorflow dylibs need to be copied into either

   /usr/local/lib or /Applications/PixInsight/PixInsight.app/Contents/Frameworks/


since /usr is hidden in the finder, it might be easier to copy the tensorflow dylibs to /Applications/PixInsight/PixInsight.app/Contents/Frameworks/

rob


Offline eoverstreet

  • Newcomer
  • Posts: 11
Re: StarNet - new module for star removal
« Reply #132 on: 2020 January 13 13:18:44 »
Thank you, thank you....    I will follow your instructions!  Fingers crossed.  Will report back later today when I return and give this a try!

Offline eoverstreet

  • Newcomer
  • Posts: 11
Re: StarNet - new module for star removal
« Reply #133 on: 2020 January 13 14:39:11 »
I got it installed ..however when I try to run it, I get a "Checkpoint" error.    I searched a for a thread with this issue and saw this remedy

cd /bin/PixInsight

I tried several variations also,

cd /applications/pixinsight/bin/
cd /applications/pixinsight/bin/pixinsight
cd /applications/PixInsight/bin
cd /applications/PixInsight/bin/Pixinsght

I get the same error message "checkpoint error" when trying any of the above

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: StarNet - new module for star removal
« Reply #134 on: 2020 January 13 14:50:47 »
well if you read the README you'll see that the checkpoint files should be installed in /Applications/PixInsight/lib

those workarounds only apply to the linux and windows versions of the starnet module. i edited nikita's source code to hardcode the path /Applications/PixInsight/lib when the module is trying to load the checkpoint files. therefore no matter what you change the PI working directory to, the module won't be able to find the weights. they have to be in that directory.

move the weights to /Applications/PixInsight/lib and it will definitely work for you.

rob