Skip to content

Commit

Permalink
Update README.md code example (#6)
Browse files Browse the repository at this point in the history
* Update README.md code example

* Auto-format by https://ultralytics.com/actions

* Update README.md

---------

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
  • Loading branch information
glenn-jocher and UltralyticsAssistant committed Feb 14, 2024
1 parent 2ca48e0 commit 64f787d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,12 @@ Ensure you have the following before you start:

# Loop through all YOLOv8 model sizes
for size in ("n", "s", "m", "l", "x"):
# Export YOLOv8 PyTorch models to CoreML INT8 format with NMS layers
YOLO(f"yolov8{size}.pt").export(format="coreml", int8=True, nms=True, imgsz=[640, 384])

# 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:**
Expand Down

0 comments on commit 64f787d

Please sign in to comment.