Skip to content

yolov8 incorrect predictions with latest torch onnx export #309

@mimiliaogo

Description

@mimiliaogo

When exporting a YOLOv8 model to ONNX format using the latest torch.onnx.export function (which uses the torch.export backend with Dynamo by default), the resulting ONNX model produces incorrect predictions during inference.

It works correctly when using legacy TorchScript exporter, when setting dynamo=False explicitly.

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