Project-MONAI / GenerativeModels

MONAI Generative Models makes it easy to train, evaluate, and deploy generative models and related applications
Apache License 2.0
595 stars 82 forks source link

Error with LoadImaged in tutorial #500

Closed parataaito closed 1 month ago

parataaito commented 1 month ago

Hi there!

I wanted to try the Anomaly Detection tutorial (https://github.com/Project-MONAI/GenerativeModels/blob/main/tutorials/generative/anomaly_detection/anomalydetection_tutorial_classifier_guidance.ipynb)

I have an error when the Dataloader applies the transforms. Here is the screenshot of the error:

image

I downloaded the dataset using the "download" option of the DecathlonDataset class, so I don't understand why it does not manage to load the files.

As suggested in the error, I went to the provided link "https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies" and I already installed the dependencies with pip install 'monai[all]' The error stays the same so I am kinda lost now.

OS: Windows 11 IDE: VS Code Python version : 3.12.4 Package used : package installed in venv

Does anyone know if I missed something or did something wrong? Thanks in advance!

parataaito commented 1 month ago

I guess my own brain must have been on week-end. I found out why it did not want to read the file. There were some weird files that existed after unziping the Task01_BrainTumor.tar image

Sorry for the inconvenience, I will close the issue.

And thank you guys for the amazing work, keep up the great work!