Skip to content

incorrect 0 INPUT kFLOAT input 3x640x640 1 OUTPUT kFLOAT output 25200x6 shape instead of WARNING: [TRT]: The getMaxBatchSize() function should not be used with an engine built from a network created with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag. This function will always return 1. INFO: [Implicit Engine Info]: layers num: 4 0 INPUT kFLOAT input 3x640x640 1 OUTPUT kFLOAT boxes 25200x4 2 OUTPUT kINT32 classes 25200x1 3 OUTPUT kFLOAT scores 25200x1  #595

@Sanelembuli98

Description

@Sanelembuli98

The issue described involves TensorRT and YOLOv5 ONNX model export. Specifically:

Incorrect TensorRT Output Shape:
The expected output for a YOLOv5 ONNX model is:

3x640x640 for input.
25200x4, 25200x1, 25200x1 for boxes, scores, and classes respectively.
Instead, the output is concatenated as a single tensor: 25200x6.
This indicates the exported ONNX model is not properly handling YOLOv5's expected separate outputs (boxes, scores, classes).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions