Skip to content
Discussion options

You must be logged in to vote

The error you're encountering is a common issue with YOLO models in Frigate. The error Unexpected input data type. Actual: (tensor(uint8)) , expected: (tensor(float)) indicates that your YOLOv9 model expects float input data, but Frigate is sending uint8 data (1).

For YOLO models with the ONNX detector, you need to specify the correct input_dtype in your model configuration. Based on the documentation for YOLO models, you should add input_dtype: float to your model configuration (2).

Here's the corrected model configuration:

model:
  model_type: yolo-generic
  path: /config/model_cache/yolov9-t-320.onnx
  labelmap_path: /labelmap/coco-80.txt
  input_tensor: nchw
  input_dtype: float
  width

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ugorur
Comment options

You must be logged in to vote
5 replies
@hawkeye217
Comment options

@ugorur
Comment options

@hawkeye217
Comment options

@ugorur
Comment options

@hawkeye217
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment