HenriquesLab / ZeroCostDL4Mic

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

ModuleNotFoundError: No module named 'splinegenerator' #273

Open carmenrt opened 1 year ago

carmenrt commented 1 year ago

I have a problem trying to import splinegenerator in the splinedist2D notebook, any solution?

zehtabian commented 1 year ago

I changed "import splinegenerator as sg" to "import splinedist.splinegenerator as sg", and that fixed the issue for me!

carmenrt commented 1 year ago

Hello, thank you for answering me! Did you have problems with this line: "from splinedist.utils import phi_generator, grid_generator, get_contoursize_max, export_imagej_rois"?

zehtabian commented 1 year ago

Hello, thank you for answering me! Did you have problems with this line: "from splinedist.utils import phi_generator, grid_generator, get_contoursize_max, export_imagej_rois"?

Hi Carmen,

In my case, I encountered an error at this line: "import splinegenerator as sg". It gave me the following complaint: "ModuleNotFoundError: No module named 'splinegenerator'". So, I made a slight modification to this line as follows: "import splinedist.splinegenerator as sg", and it worked.