Skip to content

[TFLITE] STRIDED_SLICE is not supported by DNN #26140

@pfeatherstone

Description

@pfeatherstone

Describe the feature and motivation

I am trying to load a yolov3 model in tflite format. When calling cv::dnn::readNetFromTFLite() i get error:

[ERROR:[email protected]] global tflite_importer.cpp:252 populateNet DNN/TFLite: Problem during import of operator [STRIDED_SLICE]:(model_12/tf.strided_slice/StridedSlice) (192/208). Exception: OpenCV(4.10.0-dev) /home/pf/Downloads/repos/opencv-4.x/modules/dnn/src/tflite/tflite_importer.cpp:246: error: (-213:The function/feature is not implemented) Unsupported operator type STRIDED_SLICE in function 'populateNet'

terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.10.0-dev) /home/pf/Downloads/repos/opencv-4.x/modules/dnn/src/tflite/tflite_importer.cpp:246: error: (-213:The function/feature is not implemented) Unsupported operator type STRIDED_SLICE in function 'populateNet'

Additional context

I am using opencv master. Unfortunately I can't drop the model weights as they are over 25MB.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions