riccardomusmeci
commited on
Commit
•
8d5e167
1
Parent(s):
f98a192
Update README.md
Browse files
README.md
CHANGED
@@ -34,7 +34,7 @@ transform = ImageNetTransform(train=False, img_size=224)
|
|
34 |
x = transform(read_rgb("cat.png"))
|
35 |
x = mx.expand_dims(x, 0)
|
36 |
|
37 |
-
model = create_model("
|
38 |
model.eval()
|
39 |
|
40 |
logits = model(x)
|
@@ -51,13 +51,13 @@ x = transform(read_rgb("cat.png"))
|
|
51 |
x = mx.expand_dims(x, 0)
|
52 |
|
53 |
# first option
|
54 |
-
model = create_model("
|
55 |
model.eval()
|
56 |
|
57 |
embeds = model(x)
|
58 |
|
59 |
# second option
|
60 |
-
model = create_model("
|
61 |
model.eval()
|
62 |
|
63 |
embeds = model.features(x)
|
|
|
34 |
x = transform(read_rgb("cat.png"))
|
35 |
x = mx.expand_dims(x, 0)
|
36 |
|
37 |
+
model = create_model("wide_resnet50_2")
|
38 |
model.eval()
|
39 |
|
40 |
logits = model(x)
|
|
|
51 |
x = mx.expand_dims(x, 0)
|
52 |
|
53 |
# first option
|
54 |
+
model = create_model("wide_resnet50_2", num_classes=0)
|
55 |
model.eval()
|
56 |
|
57 |
embeds = model(x)
|
58 |
|
59 |
# second option
|
60 |
+
model = create_model("wide_resnet50_2")
|
61 |
model.eval()
|
62 |
|
63 |
embeds = model.features(x)
|