MIC-DKFZ / batchgenerators

A framework for data augmentation for 2D and 3D image classification and segmentation
Apache License 2.0
1.1k stars 221 forks source link

Error Importing SlimDataLoaderBase #93

Closed sbadih closed 2 years ago

sbadih commented 2 years ago

Hi, I'm trying to run the training portion, however I keep getting this error " ImportError: cannot import name 'SlimDataLoaderBase' from 'batchgenerators.dataloading' (/usr/local/lib/python3.7/dist-packages/batchgenerators/dataloading/init.py)". Any ideas on how to fix this?

Best, Sara Badih

FabianIsensee commented 2 years ago

Since the lastest version we have changed the imports so something that is more sustainable. You will need to change your imports (depending on your IDE you can use autocomplete for that). Best, Fabian

sbadih commented 2 years ago

Can you please elaborate on the ways it can be imported? I'm using Jupyter Notebook specifically, and I've followed the required versions for Python etc on the documentation. Thank you.

FabianIsensee commented 2 years ago

from batchgenerators.dataloading.data_loader import SlimDataLoaderBase

you guys really need to stop using jupyter notebook for coding ^^