update
Browse files
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-
|
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-
|
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()
|