mahmoodlab / CLAM

Data-efficient and weakly supervised computational pathology on whole slide images - Nature Biomedical Engineering
http://clam.mahmoodlab.org
GNU General Public License v3.0
975 stars 329 forks source link

Unable to import 'datasets.dataset_generic' #236

Closed gusSCIMOV closed 3 months ago

gusSCIMOV commented 3 months ago

HI,

I'm trying the latest release and UNI pretrained weights. Recently, I've been experiencing this issue creating splits: File "/app/Codebase/_Pancreas/Histology/MIL_framework/CLAM2/create_splits_seq.py", line 4, in from datasets.dataset_generic import Generic_WSI_Classification_Dataset, Generic_MIL_Dataset, save_splits ModuleNotFoundError: No module named 'datasets.dataset_generic'

I tried downgrading 'dataset' until 2023's versions but at end resulting useless for addressing that issue. I haven't had this problem before. Thank you so much.

fedshyvana commented 3 months ago

It's caused by an outdated import statement, should be hopefully fixed now!

gusSCIMOV commented 3 months ago

Yes. I realized the same just before this reply. Now It's working. Thank you so much.