ultralytics / yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
51.06k stars 16.42k forks source link

yolov5s / detect.py/ 욜로v5 결과저장을 10분에 한번 하고 싶습니다 #13329

Open rod-0123 opened 2 months ago

rod-0123 commented 2 months ago

Search before asking

Question

지금은 프레임마다 모든 결과가 저장이 되는데 일정시간마다 저장되게 하고 싶습니다

Additional

No response

UltralyticsAssistant commented 2 months ago

👋 Hello @rod-0123, thank you for your interest in YOLOv5 🚀!

To address your question, you'll need to modify the save logic in detect.py to save results at your desired intervals. For more detailed guidance, please check out our ⭐️ Tutorials which cover a range of tasks from Custom Data Training to advanced techniques.

If this is a 🐛 Bug Report, please make sure to provide a minimum reproducible example to assist us in debugging.

Requirements

Ensure you have Python>=3.8.0 and all dependencies from requirements.txt installed, including PyTorch>=1.8. To begin:

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install

Environments

YOLOv5 can be run in various environments:

Status

YOLOv5 CI

This badge indicates the current status of YOLOv5 GitHub Actions Continuous Integration (CI) tests.

Introducing YOLOv8 🚀

We're also excited to introduce our latest model, YOLOv8 🚀! This state-of-the-art model enhances object detection, image segmentation, and classification tasks. Discover more in our YOLOv8 Docs.

pip install ultralytics

This is an automated response, and an Ultralytics engineer will follow up with you soon. 😊

pderrenger commented 2 weeks ago

@rod-0123 to save YOLOv5 detection results at specific intervals, you can modify the detect.py script to include a timer or counter that triggers saving every 10 minutes. Consider using Python's time module to track elapsed time and conditionally save results based on your desired interval.