Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing problem in Diff-UNet-main\BraTS2020\dataset\brats_data_utils_multi_label.py #36

Open
lad02837 opened this issue May 11, 2024 · 3 comments

Comments

@lad02837
Copy link

Hello, I tested the model after training, but I encountered a error stating that "maximum recursion depth exceeded while calling a Python object".
屏幕截图 2024-05-11 143043
屏幕截图 2024-05-11 143117
Could you help me with the problem? Thanks a lot!

@ge-xing
Copy link
Owner

ge-xing commented May 11, 2024

You can check your dataset path and see why the data loading process is wrong.

@lad02837
Copy link
Author

thank you! I have solved the problem. But there is another problem when testing BTCV dataset:
Runtime Error: Expected all tensors to be on the same device,but found at least two devices, cuda:0 and cpu!
In the code, I only modified num_gpus to 1(since I have only 1), why there are two devices?

@ge-xing
Copy link
Owner

ge-xing commented May 15, 2024

You need to ensure that your monai and my monai have the same version. Monai is a python package for medical image processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants