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

Unable to use the TF_SavedModel in Stardist 2D plugin in Fiji #269

Open
beitea opened this issue Jun 2, 2023 · 2 comments
Open

Unable to use the TF_SavedModel in Stardist 2D plugin in Fiji #269

beitea opened this issue Jun 2, 2023 · 2 comments

Comments

@beitea
Copy link

beitea commented Jun 2, 2023

Hi there,

Thanks for developing the ZerCostDL4Mic platform. I was able to train my StarDist 2D model using the colab notebook, however when I try to download the TF_SavedModel and use in Fiji, it doesn't work. Can I please get some advice on what could the problem be and what I can do next?

To Reproduce
The TF_SavedModel was downloaded from the model folder and opened as 'Model (zip) from file' in StarDist 2D plugin in Fiji.

Expected behavior

Screenshots
image
image
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: chrome,
  • Version: Notebook_version = '1.19'
@guijacquemet
Copy link
Collaborator

Hi,
This is due to the fact that Fiji is not currently compatible with the latest TensorFlow version used by StarDist.
You have two options:
You can convert your trained model to an older TF version, as described here.
You could export your model to the Bioimage.io format (in the notebook) and use DeepImageJ to run your model in Fiji.

@beitea
Copy link
Author

beitea commented Aug 9, 2023

Hi guijacquemet,

Thanks for your reply, it is very helpful. The model conversion script works perfectly for me.

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

2 participants