Skip to content

Output object shape mismatch, inputShape = [1, 640, 640, 3] and outputShape = [1, 25200, 6] #269

Open
@nouser000

Description

@nouser000

After many attempts I was finally able to train and export my own tflite model (yolov5).

I want to make an application that detects in real time from the camera stream with camera plugin
I tried several tflite plugins for flutter, i only make run it with flutter vision but when i make apk release, it generates a file of 800MB - 900MB (related issue).

Previously tflite_flutter could work with the plugin tflite_flutter_helper is now discontinued...

What is a simple example of direct conversion from camera stream to tflite_flutter?

Something like this:

cameraController.startImageStream((cameraImage) async {
     //cameraImage to input tensor
     //interpreter.run(?,?);
     //print(output); //detection objects coords
});

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