Zayn commited on
Commit
4ca6e48
·
1 Parent(s): 6135f79

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -13
README.md CHANGED
@@ -4,20 +4,11 @@ tags:
4
  - image-captioning
5
  license: apache-2.0
6
  widget:
7
- - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/savanna.jpg
8
- example_title: Savanna
9
- - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/football-match.jpg
10
- example_title: Football Match
11
- - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/airport.jpg
12
- example_title: Airport
13
- ---
14
 
15
- # nlpconnect/vit-gpt2-image-captioning
16
 
17
- This is an image captioning model training by @ydshieh in flax, this is pytorch version of https://huggingface.co/ydshieh/vit-gpt2-coco-en-ckpts model.
18
 
 
19
 
20
- # Sample running code
21
 
22
  ```python
23
 
@@ -54,7 +45,5 @@ def predict_step(image_paths):
54
  return preds
55
 
56
 
57
- predict_step(['doctor.e16ba4e4.jpg']) # ['a woman in a hospital bed with a woman in a hospital bed']
58
-
59
- ```
60
 
 
4
  - image-captioning
5
  license: apache-2.0
6
  widget:
 
 
 
 
 
 
 
7
 
 
8
 
 
9
 
10
+ This is an image captioning model training by Zayn
11
 
 
12
 
13
  ```python
14
 
 
45
  return preds
46
 
47
 
48
+ predict_step(['Image URL.jpg'])
 
 
49