bbexx commited on
Commit
9b46a92
1 Parent(s): 3694428
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -23,11 +23,11 @@ from transformers import AutoModel, CLIPImageProcessor
23
  device = "cuda" if torch.cuda.is_available() else "cpu"
24
 
25
  model = AutoModel.from_pretrained(
26
- 'jienengchen/ViTamin-L-336px',
27
  trust_remote_code=True).to(device).eval()
28
 
29
  image = Image.open('./image.png').convert('RGB')
30
- image_processor = CLIPImageProcessor.from_pretrained('jienengchen/ViTamin-L-336px')
31
 
32
  pixel_values = image_processor(images=image, return_tensors='pt').pixel_values
33
  pixel_values = pixel_values.to(torch.bfloat16).cuda()
 
23
  device = "cuda" if torch.cuda.is_available() else "cpu"
24
 
25
  model = AutoModel.from_pretrained(
26
+ 'jienengchen/ViTamin-B-LTT',
27
  trust_remote_code=True).to(device).eval()
28
 
29
  image = Image.open('./image.png').convert('RGB')
30
+ image_processor = CLIPImageProcessor.from_pretrained('jienengchen/ViTamin-B-LTT')
31
 
32
  pixel_values = image_processor(images=image, return_tensors='pt').pixel_values
33
  pixel_values = pixel_values.to(torch.bfloat16).cuda()