juglab / n2v

This is the implementation of Noise2Void training.
Other
385 stars 107 forks source link

Fiji error when runnnig n2v-sem demo model with bioimage.io #109

Closed maweigert closed 3 years ago

maweigert commented 3 years ago

Hi,

I am trying to get the n2v bioimage.io demo model to run from inside Fiji, yet without success.

Ways to reproduce:

Screenshot 2021-06-03 at 02 07 49

Any ideas?

tomburke-rse commented 3 years ago

Hi @maweigert,

I manage to reproduce the error, but so far could not find the exact source of the problem. It seems that the image is not set as input data for the tensor, resulting in the NPE.

Since the model you use is a very old one (and I guess it's for testing purposes only?) a workaround would be to use one of the test models from imagej-modelzoo: https://github.com/imagej/imagej-modelzoo/raw/master/src/test/resources/net/imagej/modelzoo/consumer/denoise2D/dummy-0.3.0.model.bioimage.io.zip

maweigert commented 3 years ago

Hi @tomburke-rse ,

thanks for the quick reply!

Since the model you use is a very old one (and I guess it's for testing purposes only?)

Ah, ok. I used the one directly from https://bioimage.io , so good to know that its outdated ;)

a workaround would be to use one of the test models from imagej-modelzoo: https://github.com/imagej/imagej-modelzoo/raw/master/src/test/resources/net/imagej/modelzoo/consumer/denoise2D/dummy-0.3.0.model.bioimage.io.zip

Ok, that worked, thanks!

tomburke-rse commented 3 years ago

Post Edit: I uploaded a new release for the most recent version to the repo, but unfortunately 0.3.0 is hardcoded (and we're at 0.3.1). I'll have that fixed and hopefully released by tomorrow, so that the sem-demo also works from bioimage.io.