chendl commited on
Commit
3553543
1 Parent(s): 7f11231

update chat

Browse files
multimodal/open_flamingo/chat/conversation.py CHANGED
@@ -410,6 +410,7 @@ class Chat:
410
  out_image = None
411
 
412
  if len(boxes)>0:
 
413
  open_cv_image = np.array(image_ori)
414
  # Convert RGB to BGR
415
  open_cv_image = open_cv_image[:, :, ::-1].copy()
 
410
  out_image = None
411
 
412
  if len(boxes)>0:
413
+ width, height = image_ori.size
414
  open_cv_image = np.array(image_ori)
415
  # Convert RGB to BGR
416
  open_cv_image = open_cv_image[:, :, ::-1].copy()