Closed fisakhan closed 3 weeks ago
I found the solution. Replace the 3 lines by the following code
crop = cv2.cvtColor(crop, cv2.COLOR_BGR2RGB)
crop = (crop-127.5)/127.5
crop = np.array(crop, dtype=np.float32)
input_data = input_data = np.expand_dims(crop, axis=0)
How to pre-process the crop for using w600k_r50_float32.tflite? I already have uint8 112x112x3 crop. `
Load the TFLite model and allocate tensors.
ARE THE FOLLOWING 3 LINES CORRECT?