rads101 commited on
Commit
b41ea7a
·
verified ·
1 Parent(s): 50ea01d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
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('ViT-B-32', pretrained='datology-cls-vit-b-32')
39
- tokenizer = open_clip.get_tokenizer('ViT-B-32')
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('ViT-B-32', pretrained='datology-cls-vit-b-32')
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