forked from quic/ai-hub-models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.py
24 lines (20 loc) · 853 Bytes
/
demo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ---------------------------------------------------------------------
# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# ---------------------------------------------------------------------
from qai_hub_models.models._shared.yolo.demo import yolo_detection_demo
from qai_hub_models.models.yolov7.app import YoloV7DetectionApp
from qai_hub_models.models.yolov7.demo import IMAGE_ADDRESS
from qai_hub_models.models.yolov7.model import YoloV7
from qai_hub_models.models.yolov7_quantized.model import MODEL_ID, YoloV7Quantizable
def main(is_test: bool = False):
yolo_detection_demo(
YoloV7Quantizable,
MODEL_ID,
YoloV7DetectionApp,
IMAGE_ADDRESS,
YoloV7.STRIDE_MULTIPLE,
is_test=is_test,
)
if __name__ == "__main__":
main()