czczup commited on
Commit
a807c4a
1 Parent(s): ff870df

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -5
README.md CHANGED
@@ -202,16 +202,16 @@ generation_config = dict(
202
  )
203
 
204
  # single-round single-image conversation
205
- question = "请详细描述图片"
206
  response = model.chat(tokenizer, pixel_values, question, generation_config)
207
  print(question, response)
208
 
209
  # multi-round single-image conversation
210
- question = "请详细描述图片"
211
  response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None, return_history=True)
212
  print(question, response)
213
 
214
- question = "请根据图片写一首诗"
215
  response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history, return_history=True)
216
  print(question, response)
217
 
@@ -220,11 +220,11 @@ pixel_values1 = load_image('./examples/image1.jpg', max_num=6).to(torch.bfloat16
220
  pixel_values2 = load_image('./examples/image2.jpg', max_num=6).to(torch.bfloat16).cuda()
221
  pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
222
 
223
- question = "详细描述这两张图片"
224
  response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None, return_history=True)
225
  print(question, response)
226
 
227
- question = "这两张图片的相同点和区别分别是什么"
228
  response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history, return_history=True)
229
  print(question, response)
230
 
 
202
  )
203
 
204
  # single-round single-image conversation
205
+ question = "请详细描述图片" # Please describe the picture in detail
206
  response = model.chat(tokenizer, pixel_values, question, generation_config)
207
  print(question, response)
208
 
209
  # multi-round single-image conversation
210
+ question = "请详细描述图片" # Please describe the picture in detail
211
  response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None, return_history=True)
212
  print(question, response)
213
 
214
+ question = "请根据图片写一首诗" # Please write a poem according to the picture
215
  response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history, return_history=True)
216
  print(question, response)
217
 
 
220
  pixel_values2 = load_image('./examples/image2.jpg', max_num=6).to(torch.bfloat16).cuda()
221
  pixel_values = torch.cat((pixel_values1, pixel_values2), dim=0)
222
 
223
+ question = "详细描述这两张图片" # Describe the two pictures in detail
224
  response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=None, return_history=True)
225
  print(question, response)
226
 
227
+ question = "这两张图片的相同点和区别分别是什么" # What are the similarities and differences between these two pictures
228
  response, history = model.chat(tokenizer, pixel_values, question, generation_config, history=history, return_history=True)
229
  print(question, response)
230