Project-MONAI / Project-MONAI/tutorials
Bug: need to specify hash_type='md5' in densenet_training_array.ipynb
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 2.5k
- Forks
- 803
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 3
Description
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).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open tutorials/3d_regression/densenet_training_array.ipynb and find the download_and_extract call for IXI-T1.tar. Pass hash_type='md5' with the existing md5 value, then run the notebook or its download step to confirm the hash check succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 92/100