gabrielmotablima
commited on
Commit
•
c2b972b
1
Parent(s):
4ca27c2
Update README.md
Browse files
README.md
CHANGED
@@ -44,7 +44,7 @@ from transformers import AutoTokenizer, ViTImageProcessor, VisionEncoderDecoderM
|
|
44 |
|
45 |
# load a fine-tuned image captioning model and corresponding tokenizer and image processor
|
46 |
model = VisionEncoderDecoderModel.from_pretrained("laicsiifes/swin-gpt2-flickr30k-pt-br")
|
47 |
-
tokenizer =
|
48 |
image_processor = ViTImageProcessor.from_pretrained("laicsiifes/swin-gpt2-flickr30k-pt-br")
|
49 |
|
50 |
# perform inference on an image
|
|
|
44 |
|
45 |
# load a fine-tuned image captioning model and corresponding tokenizer and image processor
|
46 |
model = VisionEncoderDecoderModel.from_pretrained("laicsiifes/swin-gpt2-flickr30k-pt-br")
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("laicsiifes/swin-gpt2-flickr30k-pt-br")
|
48 |
image_processor = ViTImageProcessor.from_pretrained("laicsiifes/swin-gpt2-flickr30k-pt-br")
|
49 |
|
50 |
# perform inference on an image
|