Skip to content

[CodeGen] Generating invalid image preprocessing for NCHW models #20

Description

@MadhurKumar004

Location: compiler/code_generator.py

Description: CodeGenerator._generate_python_input_processing treats input_shape[1] and [2] as Height/Width. This breaks for NCHW models (ONNX/PyTorch).

Fix: Inspect the model format (via IR) and generate specific preprocessing code for NHWC vs NCHW.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions