You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I trained yolo5_small_darknet
Dump model with yolo.py
Convert it to onnx with keras_to_onnx.py
Convert it to frozen pb with keras_to_tensorflow.py
Convert it to tflite with post_train_quant_convert.py
I try load frozen pb in opencv
tf = cv2.dnn.readNetFromTensorflow("test.pb")
error: OpenCV(4.10.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\tensorflow\tf_importer.cpp:2877: error: (-2:Unspecified error) More than one input is Const op in function 'cv::dnn::dnn4_v20240521::`anonymous-namespace'::TFImporter::getConstBlob'
I try load tflite in opencv
tflite = cv2.dnn.readNetFromTFLite("test.tflite")
error: OpenCV(4.10.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\tflite\tflite_importer.cpp:246: error: (-213:The function/feature is not implemented) Unsupported operator type STRIDED_SLICE in function 'cv::dnn::dnn4_v20240521::TFLiteImporter::populateNet'
I try load onnx in opencv
onnx = cv2.dnn.readNetFromONNX("test.onnx")
It's work
What I do wrong? How load frozen pb model in opencv? How load tflite model in opencv?
The text was updated successfully, but these errors were encountered:
I trained yolo5_small_darknet
Dump model with yolo.py
Convert it to onnx with keras_to_onnx.py
Convert it to frozen pb with keras_to_tensorflow.py
Convert it to tflite with post_train_quant_convert.py
I try load frozen pb in opencv
I try load tflite in opencv
I try load onnx in opencv
What I do wrong? How load frozen pb model in opencv? How load tflite model in opencv?
The text was updated successfully, but these errors were encountered: