Diff-UNet icon indicating copy to clipboard operation
Diff-UNet copied to clipboard

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

Open lad02837 opened this issue 1 year ago • 3 comments

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!

lad02837 avatar May 11 '24 06:05 lad02837

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

ge-xing avatar May 11 '24 11:05 ge-xing

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?

lad02837 avatar May 13 '24 03:05 lad02837

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

ge-xing avatar May 15 '24 04:05 ge-xing