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

未關閉 適合新手
#2,076 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
92/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
jupyter-notebook

研究方向

開啟 tutorials/3d_regression/densenet_training_array.ipynb,找到針對 IXI-T1.tar 的 download_and_extract 呼叫。使用現有的 md5 值傳入 hash_type='md5',然後執行 notebook 或其下載步驟,以確認雜湊檢查成功。

由索引模型根據 Issue 內容生成。

描述

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

主要語言
Jupyter Notebook
星號
2.5k
分支
803
平均合併
6 天 22 小時
30 天內合併 PR
3

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Project-MONAI/tutorials 的其他 Issue

查看 Project-MONAI/tutorials 的全部 Issue

相似的 Issue

更多 Machine Learning Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。