Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"weights_best.h5" is not working #153

Open
farukalamai opened this issue Apr 13, 2024 · 4 comments
Open

"weights_best.h5" is not working #153

farukalamai opened this issue Apr 13, 2024 · 4 comments

Comments

@farukalamai
Copy link

After downloading the weight file, when I am loading this model. It's not working. If I want to use this model later to work perfectly how can I do that?

@farukalamai
Copy link
Author

@jdeschamps

@jdeschamps
Copy link
Member

Hi,

Could you give more information?

  • Which weight file and from where?
  • What are you trying to do?

Thanks!

@farukalamai
Copy link
Author

farukalamai commented Apr 19, 2024

@jdeschamps I have used 24 tif images to train a "n2v_2D" model. After training when I downloaded the "weights_best.h5", it doesn't work. When I load the model it's give me error.

when I try to save_tiff_imagej_compatible('pred_train.tif', pred_train, axes='YX'), use this it's save a blank image with white background. I have tried opencv, pillow but nothing is working.

My goal is to save the weight file and use it for denoise similar images like this.

kindly check my notebook:
n2v_SEM.zip

@uyv8cs
Copy link

uyv8cs commented Apr 21, 2024

@jdeschamps any update dear?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants