ultralytics / yolov5

YOLOv5 πŸš€ in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
50.67k stars 16.33k forks source link

Introduce iOS demo repo for YOLOv5 Core ML models πŸ“± #9271

Closed tucan9389 closed 2 years ago

tucan9389 commented 2 years ago

Search before asking

Description

Hi everyone πŸ™‹β€β™‚οΈ! Yesterday, my tucan9389/ObjectDetection-CoreML repository supported YOLOv5 models with model converting guidelines and a light-weight demo project.

I made guidelines for Core ML converting and how to run the model on iOS.

The only things if you want to run the yolov5 model on iOS are downloading the yolov5 .mlmodels, importing them into the repo Xcode project, and changing a line to the model name(like yolov5m()). You can check it out in detail in here.

Thanks to @mshamash, @mattrichard-datascience, and people who discussed in https://github.com/ultralytics/yolov5/issues/5157 and https://github.com/ultralytics/yolov5/pull/7263. Your conversation was really helpful.

If there is a better iOS demo repository for yolov5, please comment below(Until now, I couldn’t find it). Or if you have any questions in the demo, please make an issue on the repo! Any contribution or ideas are helpful and appreciated.

image

I hope this repo will be helpful and save your time.

Thank you.

Use case

No response

Additional

No response

Are you willing to submit a PR?

github-actions[bot] commented 2 years ago

πŸ‘‹ Hello @tucan9389, 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.

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 ⭐!