ultralytics / yolov5

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

Library seat detection using yolov5 #7080

Closed Aoi-00 closed 2 years ago

Aoi-00 commented 2 years ago

Search before asking

Question

Hi! I am intending to use yolov5 for one of my projects on library seat detection. I hope to detect if a seat is occupied by:

May I ask if this is possible through yolov5 as I have not seen a similar application before?

Thank you in advance for the help and guidance!

Additional

No response

github-actions[bot] commented 2 years ago

👋 Hello @Aoi-00, 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 screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.

For business inquiries or professional support requests please visit https://ultralytics.com or email support@ultralytics.com.

Requirements

Python>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. 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

CI CPU testing

If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.

glenn-jocher commented 2 years ago

@Aoi-00 sounds like the perfect example application!

Screenshot 2021-11-22 at 18 26 43
Aoi-00 commented 2 years ago

Pardon me, do you mean there is a example application/ tutorial online that perfectly suits this description?

glenn-jocher commented 2 years ago

@Aoi-00 this is a default use case for YOLOv5, nothing special is required. To get started go to https://docs.ultralytics.com/yolov5/tutorials/train_custom_data

Aoi-00 commented 2 years ago

I see, thanks for such answering in such a prompt manner!

However, I noticed that the chair and human detection on pretrained coco.yaml is sufficient for my project, which is great! But is there a way to add-on separate items for detection, such as books/water bottles etc (items that would appear on a library desk to indicate its occupancy), while still using the pretrained human and chair detection models?

glenn-jocher commented 2 years ago

@Aoi-00 books and bottles are already in COCO: https://github.com/ultralytics/yolov5/blob/cf4f3c3455d14c62e11dcce9f1d30211509da72f/data/coco.yaml#L16-L27

Aoi-00 commented 2 years ago

Oh that's great!

Is there a way to set a predefined bounding box, eg. Assign some seat bounding boxes in which they will try to detect for humans/chairs?

github-actions[bot] commented 2 years ago

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

Access additional Ultralytics ⚡ resources:

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 YOLOv5 🚀 and Vision AI ⭐!

glenn-jocher commented 10 months ago

@Aoi-00 Yes, you can define your own bounding boxes by creating a custom dataset with labeled seat bounding boxes. You can refer to the YOLOv5 documentation for creating custom datasets and annotations.