ValueError: y_pred and y should have same shapes #567
-
Hello I'm using the "spleen_segmentation_3d.ipynb"on my dataset. My Shoulder dataset included images and labels (0:background, 1:Humerus , 2: Scapula) I changed model as When I run code, the training occurs well but, it occured a bug in valiadation process: ValueError: y_pred and y should have same shapes C:\ProgramData\Anaconda3\lib\site-packages\monai\metrics\meandice.py in compute_meandice(y_pred, y, include_background) ValueError: y_pred and y should have same shapes i dont know why the val_labels.shape is = torch.Size([3, 1, 130, 130, 97]) can someone help me? I'll appreciate it very much thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Please update to run with MONAI v0.8.0 again. I hope I can help you. |
Beta Was this translation helpful? Give feedback.
Please update to run with MONAI v0.8.0 again. I hope I can help you.