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

module 'tensorflow._api.v2.saved_model' has no attribute 'signature_def_utils' #3

Open
ShannonTown opened this issue Feb 15, 2024 · 3 comments

Comments

@ShannonTown
Copy link

Hi, I'm trying to save the trained UNet model for ImageJ, and run into this error

module 'tensorflow._api.v2.saved_model' has no attribute 'signature_def_utils'

Would you please help solve this issue? Thank you!

@tpecot
Copy link
Owner

tpecot commented Feb 15, 2024

You have to save a model with tensorflow& (and not tensorflow2) so it can work with csbdeep in Fiji. I show how to install the virtual environment, how to save the model in TF1 format and how to use it in Fiji in the following video:
https://www.youtube.com/watch?v=vbjcZsjYnzw
I also show how to process a U-Net model for nuclei segmentation in the following video:
https://www.youtube.com/watch?v=pptqdUi2a7I

@ShannonTown
Copy link
Author

Thank you! I got it to work.

@tpecot
Copy link
Owner

tpecot commented Feb 16, 2024

Great!

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