Jump to content

Banner.jpg.b89429c566825f6ab32bcafbada449c9.jpg

Running GraXpert from within PixInsight: not sure exactly what it's doing?


Recommended Posts

Hi all,

My latest obsession - trying to figure out exactly what's going on when I use the new method of running GraXpert from within PixInsight.

Quick recap: GraXpert is a very nice gradient removal package that has, until recently, been a standalone product, not running within PI. So, to use it, you had to save your image, exit PI, open GraXpert, process it, save it, go back into PI, open it. Recently, Jürgen Terpe developed quite a neat way of running it within PI, as part of his Toolbox script set. It's not a native PI module or anything, just a script that calls the GraXpert executable and passes information to it and back into PI (I think).

If you've used it, you'll know that it does seem to work - load up your image, run the script, it hops off over to GraXpert, comes back with a gradient-free image. All good. I thought so too, but on looking more closely, I can't quite figure out exactly what it's doing, and this bothers me a little.

So, this is what I get when I do a very rough import of my Ghost Nebula linear image into GraXpert, by manually opening GraXpert, loading the linear image, processing it using the RBF method, and saving the stretched version (it seems to show what's going on better than stretching within PI):

rbffromgrax.thumb.jpg.f86fbd8faa82cfb1dca25fcfec3142a5.jpg

Nice. This is what I get when I do the same thing, but using the newer AI method. As you would expect, it's slightly different (it's not immediately apparent - save them and flick between them using Photoshop or some such thing and you'll see the slight differences). Not necessarily better, in this case, although I've tried it on emission nebulae and it does seem to preserve more of the nebulosity:

aifromgrax.thumb.jpg.0cfbbd8d947884cafb703e5e704352cb.jpg

Nice. Again. So, the new third option: running GraXpert from within PI. All was well and good until I noticed this in the process console:

2023-12-13 17:11:25,531 MainProcess absl INFO Fingerprint not found.
2023-12-13 17:11:25,713 MainProcess tensorflow WARNING No training configuration found in save file, so the model was *not* compiled.
statechange: 0
finished:0 / 0
Compile it manually.Saved model loading will continue.1.0.1. you can change this by providing the argument '-ai_version'

 

"Bit odd, that," I thought. I looked around for other people who have reviewed this, and noticed that Cuiv the Lazy Geek shows his process console while demoing it, and it appears on his console too (see https://youtu.be/KBR2xsZ-NmM, but blink and you'll miss it - screenshot below with relevant part of process console highlighted):

cuiv.thumb.jpg.000e18632f55d6909cd4757df0e50d43.jpg

 

It looks to me like it's failing to find an AI model. So, is it defaulting to RBF? Or actually using AI? Let's take a look :  in this version, I've use the new script in PI to call GraXpert and remove the gradient, but then saved it as a linear image in PI, then opened it in GraXpert, but not processed it, just stretched and saved, which means I get the same stretch as the other two images:

4graxbackintograx_stretched_GraXpert.thumb.jpg.df476239b091410597b030f657523e23.jpg

It doesn't seem to match either the RBF or the AI versions. As with the RBF vs AI versions, the difference is subtle, and you have to flick between them to see this. You could argue it's so subtle as not to matter, but I do prefer to know what's going on with these things. I'd hate to find out, a year or so down the line, that I've been processing my images not to the best of my ability, simply because I didn't ask.

So, I'm not sure what it's doing, exactly. Is it running RBF, or AI, or something else? Does it default to the latest model used when run outside of PI? If so, why is the image generated by using the script to call GraXpert, different from both of the images created using GraXpert directly? Can I control which version it's running, because I'd like to force it to use the AI version via the '-ai version' argument, but I don't know where to specify that? Or, should I just get a life?

Any takers?

Thanks
Brendan

  • Like 1
Link to comment
Share on other sites

You are correct, it should show the AI version it is using in the console window, which is 1.0.1 I think,  mine does, and I think this is an ongoing issue that some people are having, look on the Dark Matters discord group under GraXpert and then support for more info….

  • Like 1
Link to comment
Share on other sites

1 hour ago, BrendanC said:

I'm correct? Wow. First time for everything. Thanks, I think I'll just use GraXpert manually for the time being. I've dipped my toe in Discord in the past and it's just noise.

Thanks anyway. :)

If you look at the top of the console in the image you posted, you will see it shows the AI version being used in Cuiv’s video, so he was using the AI version…

see below with yellow underline

 

IMG_2099.jpeg

Link to comment
Share on other sites

Well so it does! Never spotted that. And I just took another look at mine, and mine says so too. In which case, why the messages about no training configuration found, or the model not being compiled, and why is the resulting output different when driven by the script? Curiouser and curiouser.

  • Like 1
Link to comment
Share on other sites

6 minutes ago, BrendanC said:

Well so it does! Never spotted that. And I just took another look at mine, and mine says so too. In which case, why the messages about no training configuration found, or the model not being compiled, and why is the resulting output different when driven by the script? Curiouser and curiouser.

I have asked on the discord, will report back….👍🏻

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.