Open labderrafie opened 5 months ago
When I run this code the export to FP32 or FP16 engine works fine, but doesn't work with the INT8 option and gives the following error:
You should check the calib data path/file right or not. You can try to use torch.randn
to generate calib data.
On the other way, if is not file/path issue, maybe CUDA context issue. Usually we do not use torch and pycuda simultaneously.
Hi! I am trying to implement a code to generate TRT engine with INT8 calibration as an option, I'm basing my code on YOLOv8's engine export file (tested the code and it works fine: https://github.com/ultralytics/ultralytics/blob/main/ultralytics/engine/exporter.py#L675)
As I wanted to run it on other models, I wrote the following script after trying to remove all YOLOv8's dependencies between files:
When I run this code the export to FP32 or FP16 engine works fine, but doesn't work with the INT8 option and gives the following error:
I only changed the way YOLOv8 create their dataloader as I went for a basic dataloader, I don't know if that's where the error comes from & I can't find a solution for this, any help? Thank you