Update README.md
Browse files
README.md
CHANGED
@@ -48,14 +48,12 @@ inputs = processor(raw_image, text, return_tensors="pt")
|
|
48 |
|
49 |
out = model.generate(**inputs)
|
50 |
print(processor.decode(out[0], skip_special_tokens=True))
|
51 |
-
# >>> a photography of a woman and her dog
|
52 |
|
53 |
# unconditional image captioning
|
54 |
inputs = processor(raw_image, return_tensors="pt")
|
55 |
|
56 |
out = model.generate(**inputs)
|
57 |
print(processor.decode(out[0], skip_special_tokens=True))
|
58 |
-
>>> a woman sitting on the beach with her dog
|
59 |
```
|
60 |
</details>
|
61 |
|
@@ -83,14 +81,12 @@ inputs = processor(raw_image, text, return_tensors="pt").to("cuda")
|
|
83 |
|
84 |
out = model.generate(**inputs)
|
85 |
print(processor.decode(out[0], skip_special_tokens=True))
|
86 |
-
# >>> a photography of a woman and her dog
|
87 |
|
88 |
# unconditional image captioning
|
89 |
inputs = processor(raw_image, return_tensors="pt").to("cuda")
|
90 |
|
91 |
out = model.generate(**inputs)
|
92 |
print(processor.decode(out[0], skip_special_tokens=True))
|
93 |
-
>>> a woman sitting on the beach with her dog
|
94 |
```
|
95 |
</details>
|
96 |
|
|
|
48 |
|
49 |
out = model.generate(**inputs)
|
50 |
print(processor.decode(out[0], skip_special_tokens=True))
|
|
|
51 |
|
52 |
# unconditional image captioning
|
53 |
inputs = processor(raw_image, return_tensors="pt")
|
54 |
|
55 |
out = model.generate(**inputs)
|
56 |
print(processor.decode(out[0], skip_special_tokens=True))
|
|
|
57 |
```
|
58 |
</details>
|
59 |
|
|
|
81 |
|
82 |
out = model.generate(**inputs)
|
83 |
print(processor.decode(out[0], skip_special_tokens=True))
|
|
|
84 |
|
85 |
# unconditional image captioning
|
86 |
inputs = processor(raw_image, return_tensors="pt").to("cuda")
|
87 |
|
88 |
out = model.generate(**inputs)
|
89 |
print(processor.decode(out[0], skip_special_tokens=True))
|
|
|
90 |
```
|
91 |
</details>
|
92 |
|