-
Notifications
You must be signed in to change notification settings - Fork 6
update 3d segmentation demos #1
Comments
Hi, there should be an updated nnUNet demo in this repo https://github.com/MECLabTUDA/M3d-Cam Let me know if the demo is working in the new repo (I updated it 2 weeks ago) or if the nnUNet changed again. If not I will try to update the demo again, but that will probably take a week or two as I am quite busy right now. Best, |
Hi, Karol, I tried the new repo, the new demo is clearer than before but I still can't run with my dataset. After many times trails, I decided to write my code for feature visualization based on medcam.inject(), and then it works well. Here is debug info: when label=2:
File "/home/droplet/envs_py/nnunet_py36_env/lib/python3.6/site-packages/nnunet/inference/predict.py", line 237, in predict_cases By the way, in practice, the output auto-saved by medcam.indect() has wrong dimensions. For example, the input shape is (5,6,7), the output shape is (7,5,6). Best, |
Hi Adot, Thanks for the update. I will have a look at it over the weekend. Is the dataset you used public by chance so I could replicate the error myself? Best, |
Hi Karol, Sorry, the dataset I used is not public. The input data shape is (160, 256, x), x range from 65 to 89. The mask only has one class. The patch size is (128, 80, 224). In addition, the nnUNet seems to swap axes, the parameters look like: 'transpose_forward': [2, 0, 1], 'transpose_backward': [1, 2, 0]. Another question: If I want to visualize a middle layer in which output shape does not match to data shape, and I want to use ITK-Snap to observing the result, the interpolation or upsampling operation is needed in implementation? The source code I implement in my case for reconstruction of entire grad-cam from patches. May be useful. : ) (Sorry for editing many times, I can't upload my code, so I attach a file.) Best, |
Hi again,
The nnUNet transposes the dimensions as Pytorch expects the channel dimension to come first if it is a tensor.
Can you try to reinstall nnUNet to this specific version with the following commands:
If medcam then still has problems with your dataset then the problem originates from medcam and not the nnUnet. This would be good to know. Please also reinstall medcam with
If I understand you correctly you mean if you need to interpolate manually afterwards? It should not be necessary if you set the Best |
Hi, Karol-G,
Thanks for your work.
It seems that you have updated gcam_inject.py and modified many parameters. But the demo of 3d segmentation did not update. It is hard to run the demo. On the other hand, the nnUNet also updates class segmentation_export.py, and I can't find a suitable place to modify the source code.
Could you please update the 3d segmentation demo or write a new simple but easy to read 3d demo?
Thanks.
The text was updated successfully, but these errors were encountered: