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