Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.35 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.35 KB

Yolov9 MLX

Yolov9 code written in MLX.

Yolov9 Perfomance

Installation

You can install using pip

pip insall .

Load model

Pretrained weights from Yolov9:

Model can be load as following snippet.

from yolov9_mlx.models import yolo

model = yolo.Yolov9CConverted()
model.load_weights("yolov9-c-converted.safetensors")

y, d = model(im)

For more details on how to run detect, please refer to serve.py

Inference service

A model endpoint example is also available in serve.py].

Start service

pdm sync -G serving
pdm run serve

Send request to service

curl -XPOST -F '[email protected]' http://localhost:3000/detect