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

Running stardist inside imagej, there is a problem importing the trained model #243

Open
baiye1100 opened this issue Jul 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@baiye1100
Copy link

Describe the bug
Models trained with tensorflow2.X do not work properly with fiji. fiji uses tensorflow1.15 by default, and models that want to train with tensorflow2.X need to switch to version 1.14 in Fiji, but have been failing
To reproduce
Steps to reproduce the behavior, ideally by providing a code snippet, Python script, or Jupyter notebook.

Expected behavior
A clear and concise description of what you expected to happen.

Data and screenshots
If applicable, add data (e.g. images) or screenshots to help explain your problem.

Environment (please complete the following information):

  • StarDist version [e.g. 0.6.2]
  • CSBDeep version [e.g. 0.6.1]
  • TensorFlow version [e.g. 2.3.1]
  • OS: [Windows, Linux, Mac]
  • GPU memory (if applicable): [e.g. 8 GB]

You may run this code and paste the output:

import importlib, platform

print(f'os: {platform.platform()}')
for m in ('stardist','csbdeep','tensorflow'):
    try:
        print(f'{m}: {importlib.import_module(m).__version__}')
    except ModuleNotFoundError:
        print(f'{m}: not installed')

import tensorflow as tf
try:
    print(f'tensorflow GPU: {tf.test.is_gpu_available()}')
except:
    print(f'tensorflow GPU: {tf.config.list_physical_devices("GPU")}')
@baiye1100 baiye1100 added the bug Something isn't working label Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant