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
- Compile a PaDiM model to TensorRT via
trtexec:
trtexec --onnx=model.onnx --saveEngine=model.engine --fp16
- Configure configDetect.yml to point to the generated file:
model: "/path/to/model.engine"
device: "cuda"
- Run detection:
anomavision detect --config configDetect.yml --thresh 12
The Bug
When trying to load a compiled TensorRT
.enginemodel using the CLI or a configuration file, the wrapper successfully auto-detects the format asModelType.TENSORRT. However, the execution crashes instantly becauseTensorRTBackendraises aNotImplementedError: TensorRT support not implemented yet.insidetensorrt_backend.py.Environment Context
Steps to Reproduce
trtexec:anomavision detect --config configDetect.yml --thresh 12