You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: need to specify hash_type='md5' in densenet_training_array.ipynb #2076
Bug
In the densenet_training_array.ipynb under tutorials/3d_regression, the notebook does not run as is. The wrong hash_type is used when download_and_extract is called.
Error
HashCheckError: sha256 hash check of downloaded file failed: url='https://developer.download.nvidia.com/assets/Clara/monai/tutorials/IXI-T1.tar', filepath=PosixPath('/tmp/tmpv5nnnrfy/ixi.tar'), expected sha256=34901a0593b41dd19c1a1f746eac2d58, The file may be corrupted or tampered with. Please retry the download or verify the source.
Fix
The call to download_and_extract(resource, tarfile_name, dataset_dir, md5) should be changed to download_and_extract(resource, tarfile_name, dataset_dir, md5, hash_type='md5') because it expects a 'sha256' by default which would be 64 characters (not 32).
hi @erikamoore thanks for reporting this, it relates to the upcoming MONAI release and some changes we did. There should have been a warning about deprecated default argument values, we'll sorting that now on the core repo. For the fixes here in tutorials I have opened #2077 to address these, please have a look if you can and verify it resolves your issue.
Activity
ericspod commentedon Sep 21, 2026
hi @erikamoore thanks for reporting this, it relates to the upcoming MONAI release and some changes we did. There should have been a warning about deprecated default argument values, we'll sorting that now on the core repo. For the fixes here in tutorials I have opened #2077 to address these, please have a look if you can and verify it resolves your issue.
erikamoore commentedon Sep 22, 2026
Hi @ericspod, yes the fix in #2077 that has
download_and_extract(resource, tarfile_name, dataset_dir, md5, "md5")works on my end. Thank you.Add Explicit hash_type Arguments and Device Fallback (Project-MONAI#2077