Update README.md
Browse files
README.md
CHANGED
@@ -35,8 +35,8 @@ from PIL import Image
|
|
35 |
import open_clip
|
36 |
|
37 |
# Load model and preprocessing
|
38 |
-
model, _, preprocess = open_clip.create_model_and_transforms('
|
39 |
-
tokenizer = open_clip.get_tokenizer('
|
40 |
|
41 |
# Load image
|
42 |
image = preprocess(Image.open("path/to/image.jpg")).unsqueeze(0)
|
@@ -71,7 +71,7 @@ from PIL import Image
|
|
71 |
import open_clip
|
72 |
|
73 |
# Load model
|
74 |
-
model, _, preprocess = open_clip.create_model_and_transforms('
|
75 |
model.eval()
|
76 |
|
77 |
# Process image
|
|
|
35 |
import open_clip
|
36 |
|
37 |
# Load model and preprocessing
|
38 |
+
model, _, preprocess = open_clip.create_model_and_transforms('hf-hub:DatologyAI/cls-opt-vit-b-32')
|
39 |
+
tokenizer = open_clip.get_tokenizer('hf-hub:DatologyAI/cls-opt-vit-b-32')
|
40 |
|
41 |
# Load image
|
42 |
image = preprocess(Image.open("path/to/image.jpg")).unsqueeze(0)
|
|
|
71 |
import open_clip
|
72 |
|
73 |
# Load model
|
74 |
+
model, _, preprocess = open_clip.create_model_and_transforms('hf-hub:DatologyAI/cls-opt-vit-b-32')
|
75 |
model.eval()
|
76 |
|
77 |
# Process image
|