Skip to content

Commit e9ca188

Browse files
re-host github release bundles into HF (#737)
Fixes # . ### Description This PR can be used to: 1) test new huggingface hosting (after PR: #735 merge) 2) remove workaround github release hosting. After this PR is merged, I will make changes in MONAI to modify the bundle download logic ### Status **Ready** ### Please ensure all the checkboxes: <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Codeformat tests passed locally by running `./runtests.sh --codeformat`. - [ ] In-line docstrings updated. - [ ] Update `version` and `changelog` in `metadata.json` if changing an existing bundle. - [ ] Please ensure the naming rules in config files meet our requirements (please refer to: `CONTRIBUTING.md`). - [ ] Ensure versions of packages such as `monai`, `pytorch` and `numpy` are correct in `metadata.json`. - [ ] Descriptions should be consistent with the content, such as `eval_metrics` of the provided weights and TorchScript modules. - [ ] Files larger than 25MB are excluded and replaced by providing download links in `large_file.yml`. - [ ] Avoid using path that contains personal information within config files (such as use `/home/your_name/` for `"bundle_root"`). Signed-off-by: Yiheng Wang <[email protected]>
1 parent a26bfb7 commit e9ca188

File tree

5 files changed

+7
-15
lines changed

5 files changed

+7
-15
lines changed

models/brain_image_synthesis_latent_diffusion_model/configs/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20240725.json",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"changelog": {
5+
"1.0.1": "update to huggingface hosting",
56
"1.0.0": "Initial release"
67
},
78
"monai_version": "1.4.0",

models/cxr_image_synthesis_latent_diffusion_model/configs/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20240725.json",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"changelog": {
5+
"1.0.1": "update to huggingface hosting",
56
"1.0.0": "Initial release"
67
},
78
"monai_version": "1.4.0",

models/mednist_ddpm/configs/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20240725.json",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"changelog": {
5+
"1.0.1": "update to huggingface hosting",
56
"1.0.0": "Initial release"
67
},
78
"monai_version": "1.4.0",

models/model_info.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1799,18 +1799,6 @@
17991799
"checksum": "95c9552e4bc421d1533872c7cb9d27969cec685f",
18001800
"source": "https://api.ngc.nvidia.com/v2/models/nvidia/monaihosting/maisi_ct_generative/versions/0.4.6/files/maisi_ct_generative_v0.4.6.zip"
18011801
},
1802-
"cxr_image_synthesis_latent_diffusion_model_v1.0.0": {
1803-
"checksum": "47b66d3325b582ed23f6583e7f95982424914185",
1804-
"source": "https://github.com/Project-MONAI/model-zoo/releases/download/hosting_storage_v1/cxr_image_synthesis_latent_diffusion_model_v1.0.0.zip"
1805-
},
1806-
"mednist_ddpm_v1.0.0": {
1807-
"checksum": "e01b9d8b5bfe961ee4b3cfc54bf0574954a84569",
1808-
"source": "https://github.com/Project-MONAI/model-zoo/releases/download/hosting_storage_v1/mednist_ddpm_v1.0.0.zip"
1809-
},
1810-
"brain_image_synthesis_latent_diffusion_model_v1.0.0": {
1811-
"checksum": "6c39a58e1645c7fec8e433cf21eb39b35c1a900a",
1812-
"source": "https://github.com/Project-MONAI/model-zoo/releases/download/hosting_storage_v1/brain_image_synthesis_latent_diffusion_model_v1.0.0.zip"
1813-
},
18141802
"maisi_ct_generative_v1.0.0": {
18151803
"checksum": "",
18161804
"source": "https://huggingface.co/MONAI/maisi_ct_generative/tree/1.0.0"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
monai>=1.0.1
2+
huggingface_hub==0.29.3

0 commit comments

Comments
 (0)