ivelin commited on
Commit
186c0c1
1 Parent(s): e1b2bb3

fix: cleanup

Browse files

Signed-off-by: ivelin <ivelin.eth@gmail.com>

Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -15,6 +15,9 @@ model.to(device)
15
 
16
 
17
  def process_refexp(image: Image, prompt: str):
 
 
 
18
  # trim prompt to 80 characters and normalize to lowercase
19
  prompt = prompt[:80].lower()
20
 
@@ -50,6 +53,8 @@ def process_refexp(image: Image, prompt: str):
50
  bbox = processor.token2json(sequence)
51
  print(f"predicted bounding box: {bbox}")
52
 
 
 
53
  width, height = image.size
54
  print(f"image width, height: {width, height}")
55
  print(f"prompt: {sample['prompt']}")
 
15
 
16
 
17
  def process_refexp(image: Image, prompt: str):
18
+
19
+ print(f"(image, prompt): {image}, {prompt}")
20
+
21
  # trim prompt to 80 characters and normalize to lowercase
22
  prompt = prompt[:80].lower()
23
 
 
53
  bbox = processor.token2json(sequence)
54
  print(f"predicted bounding box: {bbox}")
55
 
56
+ print(f"image object: {image}")
57
+ print(f"image size: {image.size}")
58
  width, height = image.size
59
  print(f"image width, height: {width, height}")
60
  print(f"prompt: {sample['prompt']}")