Spaces:
Running
Running
File size: 1,237 Bytes
56dc4d0 989bb63 0f62aee a755e6c ce42a1d a755e6c 0f62aee 3397d41 0f62aee 989bb63 e1f848b 0f62aee 9e07f8e 0f62aee 989bb63 0f62aee e1f848b 0f62aee e1f848b 0f62aee e1f848b 0f62aee 5b56303 de2fd5c e1f848b 5b56303 e1f848b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
---
title: README
emoji: ⚡
colorFrom: blue
colorTo: green
sdk: static
pinned: false
---
# MLX Vision
A community org for model weights compatible with `mlxim` powered by MLX.
GitHub link: https://github.com/riccardomusmeci/mlx-image
These are weights converted from timm/torchvision and ready to be used.
## How to install
```
pip install mlx-image
```
## Models
To load a model with pre-trained weights:
```python
from mlxim.model import create_model
# loading weights from HuggingFace (https://huggingface.co/mlx-vision/resnet18-mlxim)
model = create_model("resnet18") # pretrained weights loaded from HF
# loading weights from another HuggingFace model
model = create_model("resnet18", weights="hf://repo_id/filename")
# loading weights from local file
model = create_model("resnet18", weights="path/to/resnet18/model.npz")
```
## ImageNet-1K Results
Go to https://github.com/riccardomusmeci/mlx-image/blob/main/results/results-imagenet-1k.csv to check every model converted and its performance on ImageNet-1K with different settings.
> **TL;DR** performance is comparable to the original models from PyTorch implementations.
> [!WARNING]
> More models will be uploaded aligned with MLX improvement by the Apple team. |