PR #1778 causes error
See original GitHub issueDescribe the bug PR #1778 has broken a Clara Train MMAR that uses RandomZoomD.
Original Traceback (most recent call last):
File "/workspace/MONAI/monai/data/utils.py", line 257, in list_data_collate
return default_collate(data)
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 73, in default_collate
return {key: default_collate([d[key] for d in batch]) for key in elem}
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 73, in <dictcomp>
return {key: default_collate([d[key] for d in batch]) for key in elem}
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 83, in default_collate
return [default_collate(samples) for samples in transposed]
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 83, in <listcomp>
return [default_collate(samples) for samples in transposed]
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 73, in default_collate
return {key: default_collate([d[key] for d in batch]) for key in elem}
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 73, in <dictcomp>
return {key: default_collate([d[key] for d in batch]) for key in elem}
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 73, in default_collate
return {key: default_collate([d[key] for d in batch]) for key in elem}
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 73, in <dictcomp>
return {key: default_collate([d[key] for d in batch]) for key in elem}
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/collate.py", line 81, in default_collate
raise RuntimeError('each element in list of batch should be of equal size')
RuntimeError: each element in list of batch should be of equal size
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 202, in _worker_loop
data = fetcher.fetch(index)
File "/opt/conda/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 47, in fetch
return self.collate_fn(data)
File "/workspace/MONAI/monai/data/utils.py", line 266, in list_data_collate
raise RuntimeError(re_str)
RuntimeError: each element in list of batch should be of equal size
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Revolutionary War: Southern Phase, 1778-1781 | The ...
Patriot forces, on the other hand, were supplied and could hide among the local population. As a result, the British southern strategy was...
Read more >HPE ProLiant Servers - POST Error Messages and Beep ...
Possible Cause: A PCI Express port has experienced a fatal error that caused an NMI. Action: Run Insight Diagnostics and replace the failed...
Read more >The American Revolution 1778-1783
On February 6, 1778, France and America concluded an alliance by signing two treaties, a treaty of amity and commerce and a military...
Read more >Stop Wasting Money on Jatco CVT Stepper Motors
The most common issues that cause the P1778 code are flow control valve wear, pulley leaks, and a worn or sticky valve body....
Read more >System Error Codes (1700-3999) (WinError.h) - Win32 apps
The name or security ID (SID) of the domain specified is inconsistent with the trust information for that domain. ERROR_SERVER_HAS_OPEN_HANDLES.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for bringing this to my attention, I’ll sort it first thing tomorrow!
When I checkout the commit just before PR#1778, all goes back to normal and works as before (
46154ec78fb41680561fe275068c52dcd073faa5
).