HenriquesLab / ZeroCostDL4Mic

ZeroCostDL4Mic: A Google Colab based no-cost toolbox to explore Deep-Learning in Microscopy
MIT License
566 stars 130 forks source link

AttributeError while loading models in StarDist (3D) #207

Closed Chia-Teng closed 2 years ago

Chia-Teng commented 2 years ago

The notebook used to work all the time. Recently when I try to use the trained model 6.1, it kept producing AttributeError.

image

Chia-Teng commented 2 years ago

I solved this issue by myself. I left the issue here because I thought it would be helpful if anyone else meets the same problem. This error occurred because the model was trained on stardist (0.8.2) but used in (0.6.2). I used (0.8.2). At that time the code ==0.6.2 didn't work so I deleted it.

This issue can be simply solved by changing 1.1 !pip install -q stardist==0.6.2 into !pip install -q stardist==0.8.2