Skip to content

SuperBo/yolov9-mlx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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