gabrielmotablima
commited on
Commit
•
6ba0193
1
Parent(s):
bf25f40
Update README.md
Browse files
README.md
CHANGED
@@ -42,9 +42,9 @@ from PIL import Image
|
|
42 |
from transformers import AutoTokenizer, AutoImageProcessor, VisionEncoderDecoderModel
|
43 |
|
44 |
# load a fine-tuned image captioning model and corresponding tokenizer and image processor
|
45 |
-
model = VisionEncoderDecoderModel.from_pretrained("laicsiifes/swin-
|
46 |
-
tokenizer = AutoTokenizer.from_pretrained("laicsiifes/swin-
|
47 |
-
image_processor = AutoImageProcessor.from_pretrained("laicsiifes/swin-
|
48 |
|
49 |
# perform inference on an image
|
50 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
|
|
42 |
from transformers import AutoTokenizer, AutoImageProcessor, VisionEncoderDecoderModel
|
43 |
|
44 |
# load a fine-tuned image captioning model and corresponding tokenizer and image processor
|
45 |
+
model = VisionEncoderDecoderModel.from_pretrained("laicsiifes/swin-gportuguese-2")
|
46 |
+
tokenizer = AutoTokenizer.from_pretrained("laicsiifes/swin-gportuguese-2")
|
47 |
+
image_processor = AutoImageProcessor.from_pretrained("laicsiifes/swin-gportuguese-2")
|
48 |
|
49 |
# perform inference on an image
|
50 |
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|