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