Running into a very strange error with an image classification model. The classification result for the same image is completely different in Studio vs on the device. In this example, a thermal image is classified as “warm” in Studio (this is correct):
And here is the “debug” image as written with: cv2.imwrite('debug.jpg', cv2.cvtColor(cropped, cv2.COLOR_RGB2BGR)) (so I don’t think the problem is with the cropping/resizing):
Does this issue occur on only this one specific image? Or all of your images?
As a few troubleshooting steps, I would try printing out your processed image as hex values and compare those to the value you see in the studio on the DSP block page (prior to generating your features).
How are you passing your new image into your DSP function and then into the model with the Python SDK?