michelecafagna26
commited on
Commit
·
bbe4f57
1
Parent(s):
b1ad2e2
Update README.md
Browse files
README.md
CHANGED
@@ -38,8 +38,8 @@ import requests
|
|
38 |
from PIL import Image
|
39 |
from transformers import BlipProcessor, BlipForConditionalGeneration
|
40 |
|
41 |
-
processor = BlipProcessor.from_pretrained("
|
42 |
-
model = BlipForConditionalGeneration.from_pretrained("
|
43 |
|
44 |
img_url = 'https://datasets-server.huggingface.co/assets/michelecafagna26/hl/--/default/train/0/image/image.jpg'
|
45 |
raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')
|
|
|
38 |
from PIL import Image
|
39 |
from transformers import BlipProcessor, BlipForConditionalGeneration
|
40 |
|
41 |
+
processor = BlipProcessor.from_pretrained("michelecafagna26/blip-base-captioning-ft-hl-actions")
|
42 |
+
model = BlipForConditionalGeneration.from_pretrained("michelecafagna26/blip-base-captioning-ft-hl-actions").to("cuda")
|
43 |
|
44 |
img_url = 'https://datasets-server.huggingface.co/assets/michelecafagna26/hl/--/default/train/0/image/image.jpg'
|
45 |
raw_image = Image.open(requests.get(img_url, stream=True).raw).convert('RGB')
|