weijiawu commited on
Commit
24ff5c7
1 Parent(s): 8ac8977

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ def chat_with_points(chat_input, click_state, state, mask,image_input):
99
  h,w = image_input.shape[:2]
100
 
101
  image = cv2.resize(image_input,(512,512))
102
- mask = cv2.resize(mask,(512,512)).astype(np.uint8)[:,:,0]
103
  print(image.shape,mask.shape)
104
  print("chat_input:",chat_input)
105
  image = pipe(prompt=chat_input, image=image, mask_image=mask).images[0]
 
99
  h,w = image_input.shape[:2]
100
 
101
  image = cv2.resize(image_input,(512,512))
102
+ mask = cv2.resize(mask,(512,512)).astype(np.uint8)
103
  print(image.shape,mask.shape)
104
  print("chat_input:",chat_input)
105
  image = pipe(prompt=chat_input, image=image, mask_image=mask).images[0]