From c6613d08f7c53da85fad84dffd121559709ef0c1 Mon Sep 17 00:00:00 2001 From: Shaoyu Yang Date: Wed, 22 May 2024 19:30:53 +0800 Subject: [PATCH 1/2] [doc] fix the dead link pf resnet --- gallery/tutorial/autotvm_relay_x86.py | 2 +- tests/python/contrib/test_hexagon/test_models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery/tutorial/autotvm_relay_x86.py b/gallery/tutorial/autotvm_relay_x86.py index 4e2dc0591eb7..d34acccfdb1a 100644 --- a/gallery/tutorial/autotvm_relay_x86.py +++ b/gallery/tutorial/autotvm_relay_x86.py @@ -88,7 +88,7 @@ model_url = ( "https://github.com/onnx/models/raw/main/" - "vision/classification/resnet/model/" + "validated/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..918351501776 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/main/validated/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" ) From 7e6f90f3e2d1129ddc786b149deb77b2a58172fe Mon Sep 17 00:00:00 2001 From: Shaoyu Yang <100203773+shaoyuyoung@users.noreply.github.com> Date: Sun, 26 May 2024 15:36:35 +0800 Subject: [PATCH 2/2] [doc] Update request_hook.py mobilenet url --- tests/scripts/request_hook/request_hook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/scripts/request_hook/request_hook.py b/tests/scripts/request_hook/request_hook.py index c4591116e239..eb071c5e21d4 100644 --- a/tests/scripts/request_hook/request_hook.py +++ b/tests/scripts/request_hook/request_hook.py @@ -123,6 +123,7 @@ "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/main/validated/vision/classification/mobilenet/model/mobilenetv2-7.onnx": f"{BASE}/onnx/models/raw/main/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"