Skip to content

val.py里的task为speed时,精度会上涨较多? #13534

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

Open
1 task done
lqh964165950 opened this issue Mar 13, 2025 · 2 comments
Open
1 task done

val.py里的task为speed时,精度会上涨较多? #13534

lqh964165950 opened this issue Mar 13, 2025 · 2 comments
Labels
question Further information is requested

Comments

@lqh964165950
Copy link

Search before asking

Question

val.py里的task为speed时,精度会上涨较多?

Additional

No response

@lqh964165950 lqh964165950 added the question Further information is requested label Mar 13, 2025
@UltralyticsAssistant
Copy link
Member

👋 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):

Status

YOLOv5 CI

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!

@pderrenger
Copy link
Member

@lqh964165950val.py中设置task=speed时会禁用数据加载延迟、数据增强和后处理等非核心操作,专注于测量纯推理速度。这会减少实际推理场景中的干扰因素,但不代表真实精度。若需验证精度,请使用task=val或保持默认参数,这会完整执行预处理/后处理流程并反映真实性能指标。

相关实现细节可参考YOLOv5的测试和验证文档。建议通过python val.py --task val获取正式评估结果。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants