From fa62793e7779b6ed6bf8b9ac2fd24bc693e41604 Mon Sep 17 00:00:00 2001 From: jhong92 Date: Fri, 31 May 2024 01:10:07 +0900 Subject: [PATCH 1/2] Update links for resnet.onnx and mobilenet.onnx with commit hash --- apps/wasm-standalone/wasm-graph/tools/build_graph_lib.py | 2 +- gallery/tutorial/autotvm_relay_x86.py | 2 +- tests/python/contrib/test_hexagon/test_models.py | 2 +- tests/python/contrib/test_hexagon/test_relax_integration.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/wasm-standalone/wasm-graph/tools/build_graph_lib.py b/apps/wasm-standalone/wasm-graph/tools/build_graph_lib.py index c2f9089710a3..f08ee07731ac 100755 --- a/apps/wasm-standalone/wasm-graph/tools/build_graph_lib.py +++ b/apps/wasm-standalone/wasm-graph/tools/build_graph_lib.py @@ -34,7 +34,7 @@ # This example uses resnet50-v2-7 model model_url = ( - "https://github.com/onnx/models/raw/main/" + "https://github.com/onnx/models/raw/bd206494e8b6a27b25e5cf7199dbcdbfe9d05d1c/" "vision/classification/resnet/model/" "resnet50-v2-7.onnx" ) diff --git a/gallery/tutorial/autotvm_relay_x86.py b/gallery/tutorial/autotvm_relay_x86.py index 4e2dc0591eb7..894f317708f6 100644 --- a/gallery/tutorial/autotvm_relay_x86.py +++ b/gallery/tutorial/autotvm_relay_x86.py @@ -87,7 +87,7 @@ # Documentation. model_url = ( - "https://github.com/onnx/models/raw/main/" + "https://github.com/onnx/models/raw/bd206494e8b6a27b25e5cf7199dbcdbfe9d05d1c/" "vision/classification/resnet/model/" "resnet50-v2-7.onnx" ) diff --git a/tests/python/contrib/test_hexagon/test_models.py b/tests/python/contrib/test_hexagon/test_models.py index 007a70495462..2919e3f641de 100644 --- a/tests/python/contrib/test_hexagon/test_models.py +++ b/tests/python/contrib/test_hexagon/test_models.py @@ -30,7 +30,7 @@ def get_mobilenet(): """Download and import mobilenet model with ONNX""" onnx = pytest.importorskip("onnx") - model_url = "https://github.com/onnx/models/raw/main/vision/classification/mobilenet/model/mobilenetv2-7.onnx" # pylint: disable=line-too-long + model_url = "https://github.com/onnx/models/raw/131c99da401c757207a40189385410e238ed0934/vision/classification/mobilenet/model/mobilenetv2-7.onnx" # pylint: disable=line-too-long model_path = tvm.contrib.download.download_testdata( model_url, "mobilenetv2-7.onnx", module="onnx" ) diff --git a/tests/python/contrib/test_hexagon/test_relax_integration.py b/tests/python/contrib/test_hexagon/test_relax_integration.py index 823f4bdb9294..89539b795105 100644 --- a/tests/python/contrib/test_hexagon/test_relax_integration.py +++ b/tests/python/contrib/test_hexagon/test_relax_integration.py @@ -122,7 +122,7 @@ def get_onnx_mobilenet(): import onnx # pylint: disable=import-outside-toplevel # pylint: disable=line-too-long - model_url = "https://github.com/onnx/models/raw/main/vision/classification/mobilenet/model/mobilenetv2-7.onnx" + model_url = "https://github.com/onnx/models/raw/131c99da401c757207a40189385410e238ed0934/vision/classification/mobilenet/model/mobilenetv2-7.onnx" model_path = tvm.contrib.download.download_testdata( model_url, "mobilenetv2-7.onnx", module="onnx" ) From 4ab32ed6387ba9691fbeb52790b915917a27b699 Mon Sep 17 00:00:00 2001 From: jhong92 Date: Tue, 4 Jun 2024 23:22:39 +0900 Subject: [PATCH 2/2] Update links for mobilenet.onnx and resnet.onnx in CI request hook --- tests/scripts/request_hook/request_hook.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/scripts/request_hook/request_hook.py b/tests/scripts/request_hook/request_hook.py index c4591116e239..8e400a5c7703 100644 --- a/tests/scripts/request_hook/request_hook.py +++ b/tests/scripts/request_hook/request_hook.py @@ -121,8 +121,7 @@ "https://github.com/JonathanCMitchell/mobilenet_v2_keras/releases/download/v1.1/mobilenet_v2_weights_tf_dim_ordering_tf_kernels_0.5_224.h5": f"{BASE}/2022-10-05/mobilenet_v2_weights_tf_dim_ordering_tf_kernels_0.5_224.h5", "https://github.com/onnx/models/raw/bd206494e8b6a27b25e5cf7199dbcdbfe9d05d1c/vision/classification/mnist/model/mnist-1.onnx": f"{BASE}/onnx/mnist-1.onnx", "https://github.com/onnx/models/raw/bd206494e8b6a27b25e5cf7199dbcdbfe9d05d1c/vision/classification/resnet/model/resnet50-v2-7.onnx": f"{BASE}/onnx/models/raw/bd206494e8b6a27b25e5cf7199dbcdbfe9d05d1c/vision/classification/resnet/model/resnet50-v2-7.onnx", - "https://github.com/onnx/models/raw/main/vision/classification/mobilenet/model/mobilenetv2-7.onnx": f"{BASE}/onnx/models/raw/main/vision/classification/mobilenet/model/mobilenetv2-7.onnx", - "https://github.com/onnx/models/raw/main/vision/classification/resnet/model/resnet50-v2-7.onnx": f"{BASE}/2022-10-05/resnet50-v2-7.onnx", + "https://github.com/onnx/models/raw/131c99da401c757207a40189385410e238ed0934/vision/classification/mobilenet/model/mobilenetv2-7.onnx": f"{BASE}/onnx/models/raw/131c99da401c757207a40189385410e238ed0934/vision/classification/mobilenet/model/mobilenetv2-7.onnx", "https://github.com/pjreddie/darknet/blob/master/cfg/alexnet.cfg?raw=true": f"{BASE}/pjreddie/darknet/blob/master/cfg/alexnet.cfg" + quote("?raw=true"), "https://github.com/pjreddie/darknet/blob/master/cfg/extraction.cfg?raw=true": f"{BASE}/pjreddie/darknet/blob/master/cfg/extraction.cfg"