Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/accuracy/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ async def download_otx_model(client, otx_models_dir, model_name, format="xml"):
if format == "onnx":
await stream_file(
client,
f"https://storage.openvinotoolkit.org/repositories/model_api/test/otx_models/{model_name}/model.onnx",
f"https://storage.geti.intel.com/geti_predict/test/otx_models/{model_name}/model.onnx",
f"{otx_models_dir}/{model_name}.onnx",
)
else:
await asyncio.gather(
stream_file(
client,
f"https://storage.openvinotoolkit.org/repositories/model_api/test/otx_models/{model_name}/openvino.xml",
f"https://storage.geti.intel.com/geti_predict/test/otx_models/{model_name}/openvino.xml",
f"{otx_models_dir}/{model_name}.xml",
),
stream_file(
client,
f"https://storage.openvinotoolkit.org/repositories/model_api/test/otx_models/{model_name}/openvino.bin",
f"https://storage.geti.intel.com/geti_predict/test/otx_models/{model_name}/openvino.bin",
f"{otx_models_dir}/{model_name}.bin",
),
)
Expand Down Expand Up @@ -88,6 +88,7 @@ async def main():
),
download_otx_model(client, otx_models_dir, "cls_efficient_b0_cars"),
download_otx_model(client, otx_models_dir, "cls_efficient_v2s_cars"),
download_otx_model(client, otx_models_dir, "tinynet_imagenet"),
download_otx_model(client, otx_models_dir, "Lite-hrnet-18"),
download_otx_model(client, otx_models_dir, "Lite-hrnet-18_mod2"),
download_otx_model(client, otx_models_dir, "Lite-hrnet-s_mod2"),
Expand Down
10 changes: 10 additions & 0 deletions tests/accuracy/public_scope.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,16 @@
}
]
},
{
"name": "otx_models/tinynet_imagenet.xml",
"type": "ClassificationModel",
"test_data": [
{
"image": "coco128/images/train2017/000000000471.jpg",
"reference": ["42 (42): 1.000, [0], [0], [0]"]
}
]
},
{
"name": "otx_models/is_efficientnetb2b_maskrcnn_coco_reduced.xml",
"type": "MaskRCNNModel",
Expand Down
6 changes: 3 additions & 3 deletions tests/precommit/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ def retrieve_otx_model(data_dir, model_name, format="xml"):
destination_folder.mkdir(parents=True, exist_ok=True)
if format == "onnx":
urlretrieve(
f"https://storage.openvinotoolkit.org/repositories/model_api/test/otx_models/{model_name}/model.onnx",
f"https://storage.geti.intel.com/geti_predict/test/otx_models/{model_name}/model.onnx",
destination_folder / f"{model_name}.onnx",
)
else:
urlretrieve(
f"https://storage.openvinotoolkit.org/repositories/model_api/test/otx_models/{model_name}/openvino.xml",
f"https://storage.geti.intel.com/geti_predict/test/otx_models/{model_name}/openvino.xml",
destination_folder / f"{model_name}.xml",
)
urlretrieve(
f"https://storage.openvinotoolkit.org/repositories/model_api/test/otx_models/{model_name}/openvino.bin",
f"https://storage.geti.intel.com/geti_predict/test/otx_models/{model_name}/openvino.bin",
f"{destination_folder}/{model_name}.bin",
)

Expand Down