You can install using pip
pip insall .
Pretrained weights from Yolov9:
- yolov9-c-converted.safetensors
- yolov9-e-converted.safetensors
- yolov9-c.safetensors
- yolov9-e.safetensors
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
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