Skip to content

Commit

Permalink
476-Update-model-info-links (Project-MONAI#477)
Browse files Browse the repository at this point in the history
Fixes Project-MONAI#476 .

### Description
This PR is used to update bundle download links in `model_info.json`.

### 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]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
yiheng-wang-nv and pre-commit-ci[bot] authored Jul 25, 2023
1 parent 3af3734 commit 501724f
Show file tree
Hide file tree
Showing 3 changed files with 302 additions and 302 deletions.
2 changes: 1 addition & 1 deletion ci/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def download_large_files(bundle_path: str, large_file_name: str = "large_file.ym

def save_model_info(model_info_dict, model_info_path: str):
with open(model_info_path, "w") as f:
json.dump(model_info_dict, f)
json.dump(model_info_dict, f, indent=4)


def get_latest_version(bundle_name: str, model_info_path: str):
Expand Down
2 changes: 1 addition & 1 deletion ci/utils_deparate.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def download_large_files(bundle_path: str, large_file_name: str = "large_file.ym

def save_model_info(model_info_dict, model_info_path: str):
with open(model_info_path, "w") as f:
json.dump(model_info_dict, f)
json.dump(model_info_dict, f, indent=4)


def get_latest_version(bundle_name: str, model_info_path: str):
Expand Down
Loading

0 comments on commit 501724f

Please sign in to comment.