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

Offline Headworx

  • Newcomer
  • Posts: 3
Re: StarNet - new module for star removal
« Reply #60 on: 2019 July 26 13:21:39 »
Maybe a dumb question... but how to use the StarNet++ to dim the stars (vs removing them completely) or remove the small ones and leave the big/bright ones?

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: StarNet - new module for star removal
« Reply #61 on: 2019 July 26 13:32:33 »
you'll have to do something like this: create the starless image, then load both the starless image and the original image, and subtract the starless image from the original using pixelmath. if you are using mono images, now you have the best starmask that could ever be created. if using RGB images, you'll probably want to extract the L* from the difference image and use that as a star mask. maybe for good measure you might blur the star mask just a little bit with Atrous.

then you can do any number of things including the typical morphological transformation to dim down stars, or perhaps do a different stretch of the original image where the stars are not pushed as much, and then use pixelmath to replace the stars in the original image, thru the mask, with the dimmer stars.

rob

edit: also i forgot that of course you could blend the starless and original images together with pixelmath. although there are probably some screen-type formulae that might work best, doing a weighted average of the two images would probably be a reasonable start.
« Last Edit: 2019 July 26 22:16:43 by pfile »

Offline mmisiura1

  • Newcomer
  • Posts: 25
Re: StarNet - new module for star removal
« Reply #62 on: 2019 July 27 02:13:29 »
Thanks! I did just run it from the .bat file included in the download and it worked fine. It just said the version of tensorflow included isn’t compiled to use the AVX2 extensions of the processor, but then went ahead and worked. All you are supposed to do is copy all the files in the download to the PI .bin directory then open the PI Process-> Modules command, right?

Wsyne

That's pretty weird, the only other reason for that I can think of is maybe your antivirus software removes StarNet-pxm.dll from bin folder? Some people were reporting that.

Offline Lammertus

  • Newcomer
  • Posts: 23
Re: StarNet - new module for star removal
« Reply #63 on: 2019 July 27 11:40:11 »
Hi all,
I have been using the commandline IF for some time now and have seen this thread, now it is installed in Pixinsight as per the readme.txt file. Some strange behaviour though when you stretch an image with Arcsinh, then there are nearly no stars detected by starnet++ where if using the Histogram stretching or STF -> Histogram and applying, all seems to work well! Just thought to share this with you.
Regards,
Mert

Offline mmisiura1

  • Newcomer
  • Posts: 25
Re: StarNet - new module for star removal
« Reply #64 on: 2019 July 27 15:35:48 »
Hi all,
I have been using the commandline IF for some time now and have seen this thread, now it is installed in Pixinsight as per the readme.txt file. Some strange behaviour though when you stretch an image with Arcsinh, then there are nearly no stars detected by starnet++ where if using the Histogram stretching or STF -> Histogram and applying, all seems to work well! Just thought to share this with you.
Regards,
Mert

Mert,

On one hand this seems logical, as I didn't use Arcsinh stretch and did not train the network on such images.

On the other hand, I just tried that (on a Greyscale image) and it worked flawlessly...Can you maybe share your example?

Offline Lammertus

  • Newcomer
  • Posts: 23
Re: StarNet - new module for star removal
« Reply #65 on: 2019 July 28 02:09:54 »
Hi Nikita,

Great work you have done, congratulations!!
Of course I can share images, but where do I post them to?
Maybe with a wetransfer?? Or do I embed them here in the forum
thread??
My camera is a OSC ASI1600MCC so I use debayered images.
http://lammertus.0fees.net/images/DSO/Nebulae/NGC6888-070519-10X40-RC8-UVIR-SOS-small.jpg
If you need more examples please feel free, easier would be
to have some way of sharing the raw files maybe? ( Wetransfer?? )
« Last Edit: 2019 July 28 07:26:34 by Lammertus »

Offline mmisiura1

  • Newcomer
  • Posts: 25
Re: StarNet - new module for star removal
« Reply #66 on: 2019 August 02 12:43:53 »
Hi Nikita,

Great work you have done, congratulations!!
Of course I can share images, but where do I post them to?
Maybe with a wetransfer?? Or do I embed them here in the forum
thread??
My camera is a OSC ASI1600MCC so I use debayered images.
http://lammertus.0fees.net/images/DSO/Nebulae/NGC6888-070519-10X40-RC8-UVIR-SOS-small.jpg
If you need more examples please feel free, easier would be
to have some way of sharing the raw files maybe? ( Wetransfer?? )


Mert,

Thanks, I think this one example is enough. Looking at your image I can say that the problem is that stars in your image are kinda dim and very fuzzy - I already know that starnet has problems working with such images. So the problem is not in Arcsinh stretch itself. I will try to improve that in the future versions.

Offline Lammertus

  • Newcomer
  • Posts: 23
Re: StarNet - new module for star removal
« Reply #67 on: 2019 August 04 09:51:24 »
Thanks Nikita,
I will have to take better care of my guiding!!

Regards,
Mert

Offline tommy_nawratil

  • Member
  • *
  • Posts: 53
Re: StarNet - new module for star removal
« Reply #68 on: 2019 August 08 14:27:48 »
hello Nikita,

you are in for flowers and pralines and beer as much as you deserve: StarNet is working just awesome,
much less artefacts are left to be removed than with other methods I was using.
It saves lots of lifetime used up for removing masses of stupid dots, thank you so much!

Tommy

Offline Bobinius

  • Newcomer
  • Posts: 42
Re: StarNet - new module for star removal
« Reply #69 on: 2019 August 14 04:50:55 »
Hi Nikita,

I am not able to install the module, I used the link that you provided for the PI module but Pixinsight does not detect any new module in the directory when I tried to install it. Am I missing something? The zip file seems to be containing the same files as the .exe version of starnet.

Many thanks

Bogdan

Offline Geoff

  • PixInsight Padawan
  • ****
  • Posts: 908
Re: StarNet - new module for star removal
« Reply #70 on: 2019 August 14 05:12:28 »
I seem to recall that you have to scroll further down the page to find the actual PixInsight link
Don't panic! (Douglas Adams)
Astrobin page at http://www.astrobin.com/users/Geoff/
Webpage (under construction) http://geoffsastro.smugmug.com/

Offline Bobinius

  • Newcomer
  • Posts: 42
Re: StarNet - new module for star removal
« Reply #71 on: 2019 August 15 00:39:52 »
Ok, I managed to found the PI link (the download link was modified I guess) and it works very well in Pixinsight.

However when I restart PI the module is no longer there and has to be reinstalled! Is this a known bug? I have the latest PI version.

Offline kingjamez

  • Newcomer
  • Posts: 1
Re: StarNet - new module for star removal
« Reply #72 on: 2019 August 15 13:16:58 »
I have two modern machines that I tried to install the PI module onto without any luck. Both are Intel Core-i7's and both have AVX according to CPU-Z. When I direct the install modules window to the unzipped Starnet_PI directory, it doesn't find any new module.

I've started and restarted PI, deleted and reinstalled, and tried it on two machines? What else can I try?

Never mind, I fixed it. You must actually follow the readme... do not copy the folder into the Pixinsight/Bin/ folder, copy the contents of the Starnet_PI folder into the /Bin folder. Even if you direct it to search the Starnet_PI folder, it will not detect unless the files are in the /bin folder.
-Jim
« Last Edit: 2019 August 15 13:36:15 by kingjamez »

Offline fatboy1271

  • Newcomer
  • Posts: 25
Re: StarNet - new module for star removal
« Reply #73 on: 2019 August 15 13:24:14 »
I just learned about StarNet today and it seems like an awesome tool! I had been asking about CloneStamp and its use on masks. Since I was trying to clean up masks with CloneStamp someone said that they use StarNet. Now I have a question as a noobie with PI:

The tutorial I'm using as a guide has you do RangeSelection to create a range_mask. After that you are supposed to use CloneStamp to touch up the range_mask. A few steps later you use StarMask. Some steps after that you use PixelMath to do range_mask - star_mask. Once again you are to use CloneStamp; however, this time it is to remove all of the stars and leave your Galaxy, Nebula, and so on.

My question is how would StarNet fit into this portion of the workflow, if at all? I'm attaching a screenshot of the entire workflow plus one of just the mask portion.

Thanks to Nakita for creating this and to anyone with any input :)
fat

Offline mmisiura1

  • Newcomer
  • Posts: 25
Re: StarNet - new module for star removal
« Reply #74 on: 2019 August 18 16:29:36 »
Hi Nikita,

I am not able to install the module, I used the link that you provided for the PI module but Pixinsight does not detect any new module in the directory when I tried to install it. Am I missing something? The zip file seems to be containing the same files as the .exe version of starnet.

Many thanks

Bogdan

Hi, Bogdan!

Were you able to solve the issue? I think you just downloaded wrong distribution - look for file 'StarNet-pxm.dll'!