jennysun commited on
Commit
92eada7
Β·
1 Parent(s): 3c64996

print statements to understand phrase list in inference function

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -195,6 +195,8 @@ def inference(task, language_instruction, grounding_instruction, inpainting_boxe
195
  if task == 'Grounded Inpainting':
196
  alpha_sample = 1.0
197
 
 
 
198
  instruction = dict(
199
  prompt = language_instruction,
200
  phrases = phrase_list,
@@ -285,6 +287,7 @@ Please draw boxes accordingly on the sketch pad.""".format(len(boxes), len(groun
285
 
286
  boxes = (np.asarray(boxes) / 512).tolist()
287
  grounding_instruction = json.dumps({obj: box for obj,box in zip(grounding_texts, boxes)})
 
288
 
289
  image = None
290
  actual_mask = None
 
195
  if task == 'Grounded Inpainting':
196
  alpha_sample = 1.0
197
 
198
+ print("phrase list before declaring instruction", phrase_list)
199
+
200
  instruction = dict(
201
  prompt = language_instruction,
202
  phrases = phrase_list,
 
287
 
288
  boxes = (np.asarray(boxes) / 512).tolist()
289
  grounding_instruction = json.dumps({obj: box for obj,box in zip(grounding_texts, boxes)})
290
+ print("GROUNDING instruction -- should be separated text semicolon", grounding_instruction)
291
 
292
  image = None
293
  actual_mask = None