flutter_tflite
flutter_tflite copied to clipboard
Documentation for parameters of runModelOnImage
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
I'm facing the same problem. Have you figured out what those values mean?
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.
@shaqian could you please take a look at this ?