Spaces:
Running
Running
riccardomusmeci
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -7,4 +7,29 @@ sdk: static
|
|
7 |
pinned: false
|
8 |
---
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
pinned: false
|
8 |
---
|
9 |
|
10 |
+
# **MLX Vision**
|
11 |
+
|
12 |
+
A community org for model weights compatible with (mlx-im)[https://github.com/riccardomusmeci/mlx-im/tree/main] powered by MLX.
|
13 |
+
|
14 |
+
These are pre-converted weights and ready to be used in the example scripts.
|
15 |
+
|
16 |
+
|
17 |
+
## **How to install**
|
18 |
+
```
|
19 |
+
git clone https://github.com/riccardomusmeci/mlx-im
|
20 |
+
cd mlx-im
|
21 |
+
pip install .
|
22 |
+
```
|
23 |
+
|
24 |
+
## **Models**
|
25 |
+
|
26 |
+
To create a model with weights:
|
27 |
+
```python
|
28 |
+
from mlxim.model import create_model
|
29 |
+
|
30 |
+
# loading weights from mlx-vision
|
31 |
+
model = create_model("resnet18")
|
32 |
+
|
33 |
+
# loading weights from local file
|
34 |
+
model = create_model("resnet18", weights="path/to/weights.npz")
|
35 |
+
```
|