Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2513

General discussion • Re: Raspberry Pi 4 B Object Detection YOLO11 converted to Tflite not working

$
0
0
"Input tensor has type float32: it requires specifying NormalizationOptions metadata to preprocess input images."
means your TFLite model expects the input images to be normalized (e.g., values scaled between 0 and 1) but no normalization metadata is provided.You can Manually Normalize Input Image.

Code:

rgb_image = rgb_image.astype('float32') / 255.0  # Normalize to range [0, 1]mp_image = mp.Image(image_format=mp.ImageFormat.SRGB, data=rgb_image)

Statistics: Posted by ahsrabrifat — Sat Feb 08, 2025 5:01 pm



Viewing all articles
Browse latest Browse all 2513

Trending Articles