I've converted a classification model to tflite and I'm trying to run it using your lib but the results do not match. I've already verified the conversion (running the .tflite in Python) and it's ok. Thus I believe it could be a pre-processing fault.
I don't know much about Java but from what I've understood from your code it does the following:
Loads the image given a path (in RGB)
Resizes it to the model's input size (implicit determined from the .tflite)
Subtracts the specified mean and divides by the std
Runs the .tflite on the image
Gets the TopK results and filters by the given threshold
Is my assessment correct? The TopK is applied on the raw logits or softmaxed?
My model only needs a RGB 299x299x3 image, where mean and std are 127.5 but even so I cannot reproduce the results.
First of all thank you for your code!
I've converted a classification model to tflite and I'm trying to run it using your lib but the results do not match. I've already verified the conversion (running the .tflite in Python) and it's ok. Thus I believe it could be a pre-processing fault.
I don't know much about Java but from what I've understood from your code it does the following:
Is my assessment correct? The TopK is applied on the raw logits or softmaxed?
My model only needs a RGB 299x299x3 image, where mean and std are 127.5 but even so I cannot reproduce the results.
Thank you for your time