ironjr commited on
Commit
1ebba8d
1 Parent(s): 24d3a0e

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -381,8 +381,8 @@ class StreamMultiDiffusion(nn.Module):
381
  question = 'Question: What are in the image? Answer:'
382
  inputs = self.i2t_processor(image, question, return_tensors='pt')
383
  out = self.i2t_model.generate(**{k: v.to(self.i2t_model.device) for k, v in inputs.items()}, max_new_tokens=77)
384
- print(out)
385
  prompt = self.i2t_processor.decode(out[0], skip_special_tokens=True).strip()
 
386
  return prompt
387
 
388
  @torch.no_grad()
 
381
  question = 'Question: What are in the image? Answer:'
382
  inputs = self.i2t_processor(image, question, return_tensors='pt')
383
  out = self.i2t_model.generate(**{k: v.to(self.i2t_model.device) for k, v in inputs.items()}, max_new_tokens=77)
 
384
  prompt = self.i2t_processor.decode(out[0], skip_special_tokens=True).strip()
385
+ print(prompt)
386
  return prompt
387
 
388
  @torch.no_grad()