yolov5
yolov5 copied to clipboard
val.py里的task为speed时,精度会上涨较多?
Search before asking
- [x] I have searched the YOLOv5 issues and discussions and found no similar questions.
Question
val.py里的task为speed时,精度会上涨较多?
Additional
No response
👋 Hello @lqh964165950, 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 details about the specific val.py task, your setup, dataset examples, and logs, so we can better assist you. Additionally, please confirm you are following our Tips for Best Training Results.
Requirements
Python>=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
Environments
YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
- Notebooks with free GPU:
- Google Cloud Deep Learning VM. See GCP Quickstart Guide
- Amazon Deep Learning AMI. See AWS Quickstart Guide
- Docker Image. See Docker Quickstart Guide
Status
If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training, validation, inference, export and benchmarks on macOS, Windows, and Ubuntu every 24 hours and on every commit.
🔍 This is an automated response, but an Ultralytics engineer will respond to you soon to assist further!
@lqh964165950 在val.py中设置task=speed时会禁用数据加载延迟、数据增强和后处理等非核心操作,专注于测量纯推理速度。这会减少实际推理场景中的干扰因素,但不代表真实精度。若需验证精度,请使用task=val或保持默认参数,这会完整执行预处理/后处理流程并反映真实性能指标。
相关实现细节可参考YOLOv5的测试和验证文档。建议通过python val.py --task val获取正式评估结果。
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.
For additional resources and information, please see the links below:
- Docs: https://docs.ultralytics.com
- HUB: https://hub.ultralytics.com
- Community: https://community.ultralytics.com
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!
Thank you for your contributions to YOLO 🚀 and Vision AI ⭐