Shoaib Akhtar

Results 9 comments of Shoaib Akhtar

I'm facing same issue. `class Classifier { Interpreter _interpreter; List _outputShapes; static const String MODEL_FILE_NAME = "assets/model.tflite"; static const int INPUT_SIZE = 150; // Updated to match input shape static...

@gregorscholz I tried `_interpreter.run(inputImage.buffer, outputBuffer.buffer);` but still getting same error `[ERROR:flutter/runtime/dart_isolate.cc(1098)] Unhandled exception: E/flutter (30892): Bad state: failed precondition`

@gregorscholz `I/flutter (28993): =====================inputTensors===================== I/flutter (28993): Input Tensor Shape: Tensor{_tensor: Pointer: address=0x6f9e1f1800, name: serving_default_input_1:0, type: float32, shape: [1, 1, 1, 3], data: 12} I/flutter (28993): =====================outputTensors===================== I/flutter (28993): Output Tensor...

Yes, I've checked it again and it is correct

> I think there could also be a problem with your trained model, the input shape is a bit strange. Maybe check your modal in the tool linked in [this](https://github.com/tensorflow/flutter-tflite/issues/134#issuecomment-1686526148)...

> Can you maybe provide the model to download somewhere? Then i could test it myself, else i dont know how to help you. Yes sure. You can download my...

> Ok, so I did some debugging and can show you my results. > > I loaded the model like this using the interpreter options > > ```dart > Future...

@gregorscholz Thank you so much brother. I appreciate it.

> @shoaibakhtar57 @CusterFun : Did you resolved this issue ? I had same issue with you [here](https://github.com/tensorflow/flutter-tflite/issues/143), and I have no any ideas to fix it. Thank you Not yet....