juglab/n2v

"weights_best.h5" is not working

farukalamai opened this issue · 4 comments

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?

Hi,

Could you give more information?

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

Thanks!

@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

@jdeschamps any update dear?