Closed zacswider closed 1 year ago
Hello @zacswider , thank you for the issue.
Unfortunately, some legacy parameters caused a confusion here. You will need to use the load
method given here : https://royerlab.github.io/aydin//v0.1.15/api/restorations/denoise_restoration.html#aydin.restoration.denoise.noise2selffgr.Noise2SelfFGR.load
You will not need to pass any parameters while constructing Noise2SelfFGR
You can find code example for it here: https://github.com/royerlab/aydin/blob/9312f227605be26fce960373c1f29a71323da914/aydin/restoration/denoise/test/test_saveload.py#L58
Please let me know if this helps, I will be making a PR to clarify Noise2SelfFGR
parameters.
Also, let me know if there is anything else I can help with. Thank you for using Aydin.
Thanks for clarifying Ahmet! Everything is running smoothly now :)
Hello, I am trying to denoise a batch of images with a pre-trained FGR (CatBoost) model.
To Reproduce
Expected behavior I can run the equivalent command through the command line:
aydin denoise *.tif --model-path=path/to/pretrained_model.zip --model-model
and see that aydin quickly generates denoised images with the pretrained model.
Screenshots
Desktop (please complete the following information):
Additional context I tried installing the main github branch in a separate environment and the error persisted.
This is amazing software, thank you to all the developers!