Skip to content

ssd_mobilenet_v2_320x320 converting to Onnx  #2355

Open
@YigitKaanBingol

Description

@YigitKaanBingol

Hello everyone,
I've train ssd_mobilenet_v2_320x320 pretrained model with custom dataset via tensorflow2.x object detection api and exported to saved model with using exporter_main_v2.py. Everything works fine when inference it using tensorflow.
And then i tried to convert saved_model to onnx format for using in opencv readNet for some reasons.
But opencv gives error in :

cv2.readNet("model.onnx")
The error is : (-2215 Assertion failed) (bool) layer in function 'runLayer'
Onnx model looks weird in netron.

Screenshot from 2024-08-27 15-17-24

So anyone having the same issue?
Thank you for every answers or suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAn issue, pull request, or discussion needs more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions