Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
This repository was archived by the owner on May 5, 2025. It is now read-only.

Yolo-v5 is not supported #830

@divdaisymuffin

Description

@divdaisymuffin

Hi @nnshah1 @xwu2git,

We have trained one model in yolo-v5 and converted it to IR INT8, and we found a model-proc file at https://github.com/dlstreamer/dlstreamer/blob/master/samples/gstreamer/model_proc/public/yolo-v5.json,

{ "json_schema_version": "2.2.0", "input_preproc": [], "output_postproc": [ { "converter": "yolo_v5", "iou_threshold": 0.4, "bbox_number_on_cell": 3, "cells_number": 20, "classes": 3, "anchors": [ 10.0, 13.0, 16.0, 30.0, 33.0, 23.0, 30.0, 61.0, 62.0, 45.0, 59.0, 119.0, 116.0, 90.0, 156.0, 198.0, 373.0, 326.0 ], "masks": [ 6, 7, 8, 3, 4, 5, 0, 1, 2 ], "labels":["head", "staff", "customer"] } ] }

but when we tried it in Openvisualcloud, the analytics pod starts throwing error

{"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "========================", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "Options for vaserving.py", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "========================", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "port == 8080", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "framework == gstreamer", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "pipeline_dir == /home/pipelines", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "model_dir == /home/models", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "network_preference == {}", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "max_running_pipelines == 1", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "log_level == INFO", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "config_path == /home/vaserving/..", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "ignore_init_errors == False", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "========================", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "==============", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "Loading Models", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "==============", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,671", "message": "Loading Models from Path /home/models", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,672", "message": "Loading Model: head_yolov5_tiny_608to416_FP32 version: 1 type: IntelDLDT from {'FP32': '/home/models/head_yolov5_tiny_608to416_FP32/1/FP32/dbest.xml', 'model-proc': '/home/models/head_yolov5_tiny_608to416_FP32/1/head_yolov4_tiny_608to416_INT8.json'}", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,672", "message": "Loading Model: head_yolov4_tiny_608to416_INT8 version: 1 type: IntelDLDT from {'INT8': '/home/models/head_yolov4_tiny_608to416_INT8/1/INT8/head_yolov4_tiny_608to416_INT8.xml', 'model-proc': '/home/models/head_yolov4_tiny_608to416_INT8/1/head_yolov4_tiny_608to416_INT8.json'}", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,673", "message": "Loading Model: head_yolov4_tiny_608to416_default_anchors_mask_012_FP32 version: 1 type: IntelDLDT from {'FP32': '/home/models/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32/1/FP32/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32.xml', 'model-proc': '/home/models/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32/1/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32.json'}", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,673", "message": "Loading Model: head_yolov4_tiny_608to416_default_anchors_mask_012_FP32copy version: 1 type: IntelDLDT from {'FP32': '/home/models/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32copy/1/FP32/head_yolov4_tiny_608to416_INT8.xml', 'model-proc': '/home/models/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32copy/1/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32.json'}", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,673", "message": "========================", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,673", "message": "Completed Loading Models", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,673", "message": "========================", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,673", "message": "=================", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,673", "message": "Loading Pipelines", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:04:59,673", "message": "=================", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:05:00,115", "message": "Loading Pipelines from Config Path /home/pipelines", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:05:00,140", "message": "Loading Pipeline: algorithmName version: 3 type: GStreamer from /home/pipelines/algorithmName/3/pipeline.json", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:05:00,142", "message": "Loading Pipeline: algorithmName version: 2 type: GStreamer from /home/pipelines/algorithmName/2/pipeline.json", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:05:00,147", "message": "Loading Pipeline: algorithmName version: 1 type: GStreamer from /home/pipelines/algorithmName/1/pipeline.json", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:05:00,148", "message": "===========================", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:05:00,148", "message": "Completed Loading Pipelines", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:05:00,148", "message": "===========================", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:05:00,148", "message": "Creating Instance of Pipeline algorithmName/1", "module": "pipeline_manager"} 0:00:01.752592619 1 0x115c4a0 ERROR libav :0:: Could not find ref with POC 9 terminate called after throwing an instance of 'std::_Nested_exception<std::invalid_argument>' what(): Parser for 2.2.0 version not found

Parser for 2.2.0 version not found

Then we used json_schema version 2.0.0 and model-proc looks like this

{ "json_schema_version": "2.0.0", "input_preproc": [], "output_postproc": [ { "converter": "yolo_v5", "iou_threshold": 0.4, "bbox_number_on_cell": 3, "cells_number": 20, "classes": 3, "anchors": [ 10.0, 13.0, 16.0, 30.0, 33.0, 23.0, 30.0, 61.0, 62.0, 45.0, 59.0, 119.0, 116.0, 90.0, 156.0, 198.0, 373.0, 326.0 ], "masks": [ 6, 7, 8, 3, 4, 5, 0, 1, 2 ], "labels":["head", "staff", "customer"] } ] }

Then its able to process model -proc but throughs this error

Successfully tagged sd:latest root@aivid15:/home/aivid15/Desktop/develop/DLEngine# docker run sd {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,058", "message": "========================", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "Options for vaserving.py", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "========================", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "port == 8080", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "framework == gstreamer", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "pipeline_dir == /home/pipelines", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "model_dir == /home/models", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "network_preference == {}", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "max_running_pipelines == 1", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "log_level == INFO", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "config_path == /home/vaserving/..", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "ignore_init_errors == False", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "========================", "module": "vaserving"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "==============", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "Loading Models", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "==============", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,059", "message": "Loading Models from Path /home/models", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,060", "message": "Loading Model: head_yolov5_tiny_608to416_FP32 version: 1 type: IntelDLDT from {'FP32': '/home/models/head_yolov5_tiny_608to416_FP32/1/FP32/dbest.xml', 'model-proc': '/home/models/head_yolov5_tiny_608to416_FP32/1/head_yolov4_tiny_608to416_INT8.json'}", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,060", "message": "Loading Model: head_yolov4_tiny_608to416_INT8 version: 1 type: IntelDLDT from {'INT8': '/home/models/head_yolov4_tiny_608to416_INT8/1/INT8/head_yolov4_tiny_608to416_INT8.xml', 'model-proc': '/home/models/head_yolov4_tiny_608to416_INT8/1/head_yolov4_tiny_608to416_INT8.json'}", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,060", "message": "Loading Model: head_yolov4_tiny_608to416_default_anchors_mask_012_FP32 version: 1 type: IntelDLDT from {'FP32': '/home/models/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32/1/FP32/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32.xml', 'model-proc': '/home/models/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32/1/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32.json'}", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,060", "message": "Loading Model: head_yolov4_tiny_608to416_default_anchors_mask_012_FP32copy version: 1 type: IntelDLDT from {'FP32': '/home/models/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32copy/1/FP32/head_yolov4_tiny_608to416_INT8.xml', 'model-proc': '/home/models/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32copy/1/head_yolov4_tiny_608to416_default_anchors_mask_012_FP32.json'}", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,061", "message": "========================", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,061", "message": "Completed Loading Models", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,061", "message": "========================", "module": "model_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,061", "message": "=================", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,061", "message": "Loading Pipelines", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,061", "message": "=================", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,484", "message": "Loading Pipelines from Config Path /home/pipelines", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,510", "message": "Loading Pipeline: algorithmName version: 3 type: GStreamer from /home/pipelines/algorithmName/3/pipeline.json", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,511", "message": "Loading Pipeline: algorithmName version: 2 type: GStreamer from /home/pipelines/algorithmName/2/pipeline.json", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,515", "message": "Loading Pipeline: algorithmName version: 1 type: GStreamer from /home/pipelines/algorithmName/1/pipeline.json", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,515", "message": "===========================", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,515", "message": "Completed Loading Pipelines", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,516", "message": "===========================", "module": "pipeline_manager"} {"levelname": "INFO", "asctime": "2022-11-07 13:07:01,516", "message": "Creating Instance of Pipeline algorithmName/1", "module": "pipeline_manager"} 0:00:04.149104535 1 0x26dd8a0 ERROR libav :0:: Could not find ref with POC 71 {"levelname": "ERROR", "asctime": "2022-11-07 13:07:05,339", "message": "Error on Pipeline__5 1: gst-library-error-quark: base_inference plugin intitialization failed (3): /opt/build/gst-video-analytics/gst/inference_elements/base/inference_singleton.cpp(137): acquire_inference_instance (): /GstPipeline:pipeline3/GstGvaDetect:detection:\nFailed to load model '/home/models/head_yolov5_tiny_608to416_FP32/1/FP32/dbest.xml'\n\tUnknown model format! Cannot find reader for model format: xml and read the model: /home/models/head_yolov5_tiny_608to416_FP32/1/FP32/dbest.xml. Please check that reader library exists in your PATH.\n", "module": "gstreamer_pipeline"}

Which says Unknown model format.

so is OVC does not provide yolo-v5 support? Please help us out as soon as possible,

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions