echo840 commited on
Commit
3580119
1 Parent(s): 4a4d7ef

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
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
- query = f'<img>{img_path}</img> {question} Answer: ' #Monkey-Chat has the same prompt format for both vqa and detailed caption.
 
 
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