Skip to content

[Feature/Bug] TensorRT backend detects .engine files but triggers NotImplementedError #150

Description

@alex-itico

The Bug

When trying to load a compiled TensorRT .engine model using the CLI or a configuration file, the wrapper successfully auto-detects the format as ModelType.TENSORRT. However, the execution crashes instantly because TensorRTBackend raises a NotImplementedError: TensorRT support not implemented yet. inside tensorrt_backend.py.

Environment Context

  • Hardware: NVIDIA Jetson Orin Nano
  • OS: Ubuntu 22.04 LTS (JetPack 6.x)
  • Python Version: 3.10.12
  • Library Version: Latest (installed via uv)

Steps to Reproduce

  1. Compile a PaDiM model to TensorRT via trtexec:
    trtexec --onnx=model.onnx --saveEngine=model.engine --fp16
    
  2. Configure configDetect.yml to point to the generated file:
model: "/path/to/model.engine"
device: "cuda"
  1. Run detection:

anomavision detect --config configDetect.yml --thresh 12

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions