flutter_tflite icon indicating copy to clipboard operation
flutter_tflite copied to clipboard

Documentation for parameters of runModelOnImage

Open syeds-git opened this issue 3 years ago • 3 comments

The method runModelOnImage takes a number of input parameters. I tried to use a couple of different options and notice a significant change in performance of the model. Would it be possible to add some documentation on how to chose the numbers for these input parameters? eg: why imageMean is 0 in classification model? and why it defaults to 117?

            imageMean: 0.0,   // defaults to 117.0 -- 
            imageStd: 255.0,  // defaults to 1.0 
            numResults: 2,    // defaults to 5
            threshold: 0.2,   // defaults to 0.1

syeds-git avatar Nov 08 '20 06:11 syeds-git

I'm facing the same problem. Have you figured out what those values mean?

ikramhasan avatar Mar 09 '21 12:03 ikramhasan

I'm facing the same problem. Have you figured out what those values mean?

I stopped using this package. I don't remember if I ever understood those parameters. I think they depend on the model that you will use and may be documented within the model documentation but I am not sure.

syeds-git avatar Mar 09 '21 19:03 syeds-git

@shaqian could you please take a look at this ?

vpaniush avatar Apr 15 '21 16:04 vpaniush