Engine val to validate the trt engine file #5667
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
modified the val.py mainly so that it can validate the tensorrt file.
$ python path/to/val.py --data xxxxxx.yaml --img 640 --engine_library xxxx.so --engine_path xxxx.engine
(The last code I pushed failed because I forget to add pycuda in the requirements.txt.
I think this time it may work. Hope it can pass.)
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Enhanced YOLOv5 with TensorRT optimization support for faster inference.
📊 Key Changes
tensorrt
andpycuda
to therequirements.txt
, indicating new dependencies for TensorRT operation.yolov5_trt.py
, a new utility to support YOLOv5 inference using NVIDIA's TensorRT.val.py
to support validation using TensorRT optimized models.🎯 Purpose & Impact