-
-
Notifications
You must be signed in to change notification settings - Fork 17k
Regarding the inference speed of the yolov 5 model #13598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
👋 Hello @isakkk3, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results. RequirementsPython>=3.8.0 with all requirements.txt installed including PyTorch>=1.8. To get started: git clone https://github.com/ultralytics/yolov5 # clone
cd yolov5
pip install -r requirements.txt # install EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
Status
🔔 This is an automated response. An Ultralytics engineer will also assist you here soon! |
Hi @isakkk3, The inference time discrepancy is likely due to several factors that affect benchmarking results. The official benchmarks are typically measured under optimized conditions:
You can benchmark your model with the Ultralytics package using: from ultralytics.utils.benchmarks import benchmark
benchmark(model="your_yolov5s.pt", imgsz=640, half=False, device=0) Try optimizing with |
After converting the ONNX model to RKNN format and deploying it on an RK3588 platform, I observed a significant performance discrepancy: my model's inference time is 75ms compared to the official benchmark of 35ms, despite using the same YOLOv5s pretrained weights and exclusively applying ReLU activation functions during training. Which step in this pipeline might be causing this degradation?" |
Hi @isakkk3, When deploying to RK3588 with RKNN format, several factors can cause performance discrepancies:
You might want to profile each step of your inference pipeline to identify bottlenecks. The Rockchip official documentation provides specific optimization guidelines for RK3588 that could help close this performance gap. |
Search before asking
Question
Hello, my self-trained YOLOv5s model has an identical architecture to the official version and uses the official weights, yet the inference time of my implementation is 70 milliseconds, showing such a significant discrepancy compared to the official benchmarks. Why does this happen despite meticulously following the official setup steps?"
Additional
No response
The text was updated successfully, but these errors were encountered: