From 1911b041769e0e68c7fa07e3d88781f057a2f566 Mon Sep 17 00:00:00 2001 From: Mingxin Zheng <18563433+mingxin-zheng@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:57:21 +0800 Subject: [PATCH] Revert "hack for testing in dev version" This reverts commit 8484dbdd137c920967ec7d735d49e8dd1b44f84d. --- ci/get_bundle_requirements.py | 8 +------- models/spleen_deepedit_annotation/configs/metadata.json | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ci/get_bundle_requirements.py b/ci/get_bundle_requirements.py index a4dc097e..4318f183 100644 --- a/ci/get_bundle_requirements.py +++ b/ci/get_bundle_requirements.py @@ -12,13 +12,10 @@ import argparse import os -import re from bundle_custom_data import install_dependency_dict from utils import get_json_dict -def is_commit_hash(s): - return bool(re.match('^[0-9a-f]{7,40}$', s)) def get_requirements(bundle, models_path): """ @@ -32,10 +29,7 @@ def get_requirements(bundle, models_path): libs = [] if "monai_version" in metadata.keys(): monai_version = metadata["monai_version"] - if is_commit_hash(monai_version): - libs.append(f"git+https://github.com/Project-MONAI/MONAI@${monai_version}#egg=monai") - else: - libs.append(f"monai=={monai_version}") + libs.append(f"monai=={monai_version}") if "pytorch_version" in metadata.keys(): pytorch_version = metadata["pytorch_version"] libs.append(f"torch=={pytorch_version}") diff --git a/models/spleen_deepedit_annotation/configs/metadata.json b/models/spleen_deepedit_annotation/configs/metadata.json index 15f6ddd0..a96ccf5c 100644 --- a/models/spleen_deepedit_annotation/configs/metadata.json +++ b/models/spleen_deepedit_annotation/configs/metadata.json @@ -28,7 +28,7 @@ "0.1.0": "complete the model package", "0.0.1": "initialize the model package structure" }, - "monai_version": "fc1350aae1de702404189f334ac17fd6f51321d0", + "monai_version": "1.2.0", "pytorch_version": "1.13.1", "numpy_version": "1.22.2", "optional_packages_version": {