MIC-DKFZ / batchgenerators

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

cannot import MultiThreadedAugmenter and Compose #90

Closed xwjBupt closed 2 years ago

xwjBupt commented 2 years ago

Hi, i am on MACOS, and the version of my batchgenerators is 0.23, but i can not import MultiThreadedAugmenter and Compose. It says like: image

xwjBupt commented 2 years ago

why is that?

FabianIsensee commented 2 years ago

Please because the imports have changed. Previously we had the imports explicitly in the init.py files. This was messy and had to be maintained manually. Now you need to import them from the files the implementation is in, for example from batchgenerators.dataloading.multi_threaded_augmenter import MultiThreadedAugmenter

xwjBupt commented 2 years ago

ok, i understand, thanks for your reply!!