Image Classification
mlx-image
Safetensors
MLX
vision
riccardomusmeci commited on
Commit
3a39a04
·
verified ·
1 Parent(s): db95d14

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -40,7 +40,7 @@ model.eval()
40
  logits = model(x)
41
  ```
42
 
43
- You can also use the embeds from last conv layer:
44
  ```python
45
  from mlxim.model import create_model
46
  from mlxim.io import read_rgb
@@ -60,7 +60,7 @@ embeds = model(x)
60
  model = create_model("resnet18")
61
  model.eval()
62
 
63
- embeds = model.features(x)
64
  ```
65
 
66
  ## Model Comparison
 
40
  logits = model(x)
41
  ```
42
 
43
+ You can also use the embeds from the last conv layer:
44
  ```python
45
  from mlxim.model import create_model
46
  from mlxim.io import read_rgb
 
60
  model = create_model("resnet18")
61
  model.eval()
62
 
63
+ embeds = model.get_features(x)
64
  ```
65
 
66
  ## Model Comparison