Skip to content

Bug: need to specify hash_type='md5' in densenet_training_array.ipynb #2076

Description

@erikamoore

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).

Activity

  1. ericspod commented on Sep 21, 2026

    @ericspod
    Member

    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.

  2. erikamoore commented on Sep 22, 2026

    @erikamoore
    Author

    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.

  3. added a commit that references this issue on Sep 27, 2026
    b4b61f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions