basso4 commited on
Commit
8f609b6
Β·
verified Β·
1 Parent(s): c09dc2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -192,9 +192,8 @@ if __name__ == "__main__":
192
  mask_cv = 255-mask_cv
193
 
194
  img_C = cv2.seamlessClone(dict, img_cv, mask_cv, (192, 256), cv2.NORMAL_CLONE)
195
- img_C = img_C.astype(np.uint8)
196
  img_C = cv2.cvtColor(img_C, cv2.COLOR_BGR2RGB)
197
- img_C = to_pil_image(img_C)
198
 
199
  return img_C, mask_gray
200
 
 
192
  mask_cv = 255-mask_cv
193
 
194
  img_C = cv2.seamlessClone(dict, img_cv, mask_cv, (192, 256), cv2.NORMAL_CLONE)
 
195
  img_C = cv2.cvtColor(img_C, cv2.COLOR_BGR2RGB)
196
+ img_C = Image.fromarray(img_C, mode="RGB")
197
 
198
  return img_C, mask_gray
199