Skip to content

Commit 94c7fd4

Browse files
authored
Add YOLO v5m 640x640 (open-edge-platform#185)
* Add YOLO v5m 640x640 as an object detection model choice. * Rename other models with size label. Fixes ITEP-67471
1 parent 74cfcbf commit 94c7fd4

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

tools/visual-pipeline-and-platform-evaluation-tool/app.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,11 @@ def create_interface():
487487
label="Object Detection Model",
488488
choices=[
489489
"SSDLite MobileNet V2",
490-
"YOLO v5m",
491-
"YOLO v5s",
490+
"YOLO v5m 416x416",
491+
"YOLO v5s 416x416",
492+
"YOLO v5m 640x640"
492493
],
493-
value="YOLO v5s",
494+
value="YOLO v5s 416x416",
494495
)
495496

496497
# Object detection device

tools/visual-pipeline-and-platform-evaluation-tool/compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ services:
4545
cp -r pipeline-zoo-models/storage/ssdlite_mobilenet_v2_INT8/ /output/pipeline-zoo-models &&
4646
cp -r pipeline-zoo-models/storage/resnet-50-tf_INT8/ /output/pipeline-zoo-models/ &&
4747
cp -r pipeline-zoo-models/storage/yolov5m-416_INT8/ /output/pipeline-zoo-models/ &&
48-
cp -r pipeline-zoo-models/storage/yolov5s-416_INT8/ /output/pipeline-zoo-models/
48+
cp -r pipeline-zoo-models/storage/yolov5s-416_INT8/ /output/pipeline-zoo-models/ &&
49+
cp -r pipeline-zoo-models/storage/yolov5m-640_INT8/ /output/pipeline-zoo-models/
4950
) &&
5051
touch /output/.done &&
5152
tail -f /dev/null

tools/visual-pipeline-and-platform-evaluation-tool/utils.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,21 @@ def prepare_video_and_constants(
6767
constants["OBJECT_DETECTION_MODEL_PROC"] = (
6868
f"{MODELS_PATH}/pipeline-zoo-models/ssdlite_mobilenet_v2_INT8/ssdlite_mobilenet_v2.json"
6969
)
70-
case "YOLO v5m":
70+
case "YOLO v5m 416x416":
7171
constants["OBJECT_DETECTION_MODEL_PATH"] = (
7272
f"{MODELS_PATH}/pipeline-zoo-models/yolov5m-416_INT8/FP16-INT8/yolov5m-416_INT8.xml"
7373
)
7474
constants["OBJECT_DETECTION_MODEL_PROC"] = (
7575
f"{MODELS_PATH}/pipeline-zoo-models/yolov5m-416_INT8/yolo-v5.json"
7676
)
77-
case "YOLO v5s":
77+
case "YOLO v5m 640x640":
78+
constants["OBJECT_DETECTION_MODEL_PATH"] = (
79+
f"{MODELS_PATH}/pipeline-zoo-models/yolov5m-640_INT8/FP16-INT8/yolov5m-640_INT8.xml"
80+
)
81+
constants["OBJECT_DETECTION_MODEL_PROC"] = (
82+
f"{MODELS_PATH}/pipeline-zoo-models/yolov5m-640_INT8/yolo-v5.json"
83+
)
84+
case "YOLO v5s 416x416":
7885
constants["OBJECT_DETECTION_MODEL_PATH"] = (
7986
f"{MODELS_PATH}/pipeline-zoo-models/yolov5s-416_INT8/FP16-INT8/yolov5s.xml"
8087
)

0 commit comments

Comments
 (0)