Update README.md
Browse files
README.md
CHANGED
@@ -119,7 +119,9 @@ tokenizer.padding_side = 'left'
|
|
119 |
tokenizer.pad_token_id = tokenizer.eod_id
|
120 |
img_path = ""
|
121 |
question = ""
|
122 |
-
|
|
|
|
|
123 |
|
124 |
input_ids = tokenizer(query, return_tensors='pt', padding='longest')
|
125 |
attention_mask = input_ids.attention_mask
|
|
|
119 |
tokenizer.pad_token_id = tokenizer.eod_id
|
120 |
img_path = ""
|
121 |
question = ""
|
122 |
+
|
123 |
+
#Monkey-Chat has the same prompt format for both vqa and detailed caption.
|
124 |
+
query = f'<img>{img_path}</img> {question} Answer: '
|
125 |
|
126 |
input_ids = tokenizer(query, return_tensors='pt', padding='longest')
|
127 |
attention_mask = input_ids.attention_mask
|