michelecafagna26 commited on
Commit
89b6bbf
1 Parent(s): 11573f7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -21,8 +21,8 @@ library_name: transformers
21
  ## Model fine-tuning 🏋️‍
22
 
23
  - Trained for 10 epochs
24
- - lr: 5e−5,
25
- - Adam optimizer,
26
  - half-precision (fp16)
27
 
28
  ## Test set metrics 🧾
@@ -38,8 +38,8 @@ import requests
38
  from PIL import Image
39
  from transformers import BlipProcessor, BlipForConditionalGeneration
40
 
41
- processor = BlipProcessor.from_pretrained("Salesforce/blip-image-captioning-base")
42
- model = BlipForConditionalGeneration.from_pretrained("Salesforce/blip-image-captioning-base").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')
 
21
  ## Model fine-tuning 🏋️‍
22
 
23
  - Trained for 10 epochs
24
+ - lr: 5e−5
25
+ - Adam optimizer
26
  - half-precision (fp16)
27
 
28
  ## Test set metrics 🧾
 
38
  from PIL import Image
39
  from transformers import BlipProcessor, BlipForConditionalGeneration
40
 
41
+ processor = BlipProcessor.from_pretrained("michelecafagna26/blip-base-captioning-ft-hl-scenes")
42
+ model = BlipForConditionalGeneration.from_pretrained("michelecafagna26/blip-base-captioning-ft-hl-scenes").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')