Update README.md
Browse files
README.md
CHANGED
|
@@ -46,7 +46,16 @@ image = "glove_boy.jpeg"
|
|
| 46 |
print(model.caption(prompt, image))
|
| 47 |
```
|
| 48 |
|
| 49 |
-
To try generic captioning, just use "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
PromptCap also support taking OCR inputs:
|
| 52 |
|
|
|
|
| 46 |
print(model.caption(prompt, image))
|
| 47 |
```
|
| 48 |
|
| 49 |
+
To try generic captioning, just use "what does the image describe?"
|
| 50 |
+
|
| 51 |
+
```python
|
| 52 |
+
prompt = "what does the image describe?"
|
| 53 |
+
image = "glove_boy.jpeg"
|
| 54 |
+
|
| 55 |
+
print(model.caption(prompt, image))
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
|
| 59 |
|
| 60 |
PromptCap also support taking OCR inputs:
|
| 61 |
|