DeepLearningExamples icon indicating copy to clipboard operation
DeepLearningExamples copied to clipboard

[pyTorch/nnUnet] TypeError: Illegal pipeline output type. The output 0 contains a nested `DataNode`. Missing list/tuple expansion (*) is the likely cause.

Open chuxiang93 opened this issue 3 years ago • 2 comments

Related to [pyTorch/nnUnet]

Describe the bug When I run "python scripts/inference.py --data /data/01_3d/val --dim 3 --fold 0 --ckpt_path <path/to/checkpoint> --amp --tta --save_preds", the program reported a bug "TypeError: Illegal pipeline output type. The output 0 contains a nested DataNode. Missing list/tuple expansion (*) is the likely cause."

Data folder: image

To Reproduce Steps to reproduce the behavior: 1, python preprocess.py --task 01 --dim 3 --exec_mode val 2, python scripts/inference.py --data /data/01_3d/val --dim 3 --fold 0 --ckpt_path <path/to/checkpoint> --amp --tta --save_preds

Environment Please provide at least:

  • Container version: pytorch 1.7
  • GPUs in the system: V100
  • CUDA driver version: 460.91

chuxiang93 avatar Jan 06 '22 07:01 chuxiang93

Thanks for spotting that! I will push code with fix soon.

In the meantime you can fix it locally by replacing this line to the self.input_y = self.get_reader(kwargs["lbls"]) if kwargs["lbls"] is not None else None

michal2409 avatar Jan 06 '22 14:01 michal2409

@nv-kkudrynski this is already fixed.

michal2409 avatar Mar 08 '22 21:03 michal2409