TongkunGuan commited on
Commit
743d37f
·
verified ·
1 Parent(s): 05ef035

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -81,6 +81,7 @@ def process_image(model, tokenizer, transform, device, check_type, image, text):
81
 
82
  vit_embeds, size1 = model.forward_tokenocr(pixel_values.to(torch.bfloat16).to(device))
83
  print("vit_embeds",vit_embeds)
 
84
  print("target_ratio",target_ratio)
85
  print("check_type",check_type)
86
  vit_embeds, size2 = post_process(vit_embeds, target_ratio, check_type)
 
81
 
82
  vit_embeds, size1 = model.forward_tokenocr(pixel_values.to(torch.bfloat16).to(device))
83
  print("vit_embeds",vit_embeds)
84
+ print("vit_embeds,shape",vit_embeds.shape)
85
  print("target_ratio",target_ratio)
86
  print("check_type",check_type)
87
  vit_embeds, size2 = post_process(vit_embeds, target_ratio, check_type)