ultralytics / yolo-ios-app

Ultralytics YOLO iOS App source code for running YOLOv8 in your own iOS apps 🌟
https://ultralytics.com/yolo
GNU Affero General Public License v3.0
90 stars 15 forks source link
ai app app-store coreml instance-segmentation ios ml object-detection real-time swift ultralytics xcode yolo yolov8

Ultralytics logo

🚀 Ultralytics YOLO iOS App

Ultralytics Actions Discord Ultralytics Forums

Welcome to the Ultralytics YOLO iOS App GitHub repository! 📖 Leveraging Ultralytics' advanced YOLOv8 object detection models, this app transforms your iOS device into an intelligent detection tool. Explore our guide to get started with the Ultralytics YOLO iOS App and discover the world in a new and exciting way.

Ultralytics YOLO iOS App previews
Ultralytics GitHub space Ultralytics LinkedIn space Ultralytics Twitter space Ultralytics YouTube space Ultralytics TikTok space Ultralytics BiliBili space Ultralytics Discord

Apple App store

🛠 Quickstart: Setting Up the Ultralytics YOLO iOS App

Getting started with the Ultralytics YOLO iOS App is straightforward. Follow these steps to install the app on your iOS device.

Prerequisites

Ensure you have the following before you start:

Installation

  1. Clone the Repository:

    git clone https://github.com/ultralytics/yolo-ios-app.git
  2. Open the Project in Xcode:

    Navigate to the cloned directory and open the YOLO.xcodeproj file.

    XCode load project screenshot

    In Xcode, go to the project's target settings and choose your Apple Developer account under the "Signing & Capabilities" tab.

  3. Add YOLOv8 Models to the Project:

    Export CoreML INT8 models using the ultralytics Python package (with pip install ultralytics), or download them from our GitHub release assets. You should have 5 YOLOv8 models in total. Place these in the YOLO/Models directory as seen in the Xcode screenshot below.

    from ultralytics import YOLO
    
    # Loop through all YOLOv8 model sizes
    for size in ("n", "s", "m", "l", "x"):
       # Load a YOLOv8 PyTorch model
       model = YOLO(f"yolov8{size}.pt")
    
       # Export the PyTorch model to CoreML INT8 format with NMS layers
       model.export(format="coreml", int8=True, nms=True, imgsz=[640, 384])
  4. Run the Ultralytics YOLO iOS App:

    Connect your iOS device and select it as the run target. Press the Run button to install the app on your device.

    Ultralytics YOLO XCode screenshot

🚀 Usage

The Ultralytics YOLO iOS App is designed to be intuitive:

💡 Contribute

We warmly welcome your contributions to Ultralytics' open-source projects! Your support and contributions significantly impact. Get involved by reviewing our Contributing Guide, and share your feedback through our Survey. A massive thank you 🙏 to everyone who contributes!

Ultralytics open-source contributors

📄 License

Ultralytics offers two licensing options:

🤝 Contact


Ultralytics GitHub space Ultralytics LinkedIn space Ultralytics Twitter space Ultralytics YouTube space Ultralytics TikTok space Ultralytics BiliBili space Ultralytics Discord