antoyo123 commited on
Commit
c7a242e
1 Parent(s): 8edd020

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -36,6 +36,7 @@ def process_image(image, prompt):
36
 
37
  # Convert image to BGR format
38
  image = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
 
39
  # Convert mask to grayscale format
40
  mask_image = cv2.cvtColor(np.array(mask_image), cv2.COLOR_RGB2GRAY)
41
 
 
36
 
37
  # Convert image to BGR format
38
  image = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
39
+ imageio.imwrite("./data/data.png", image)
40
  # Convert mask to grayscale format
41
  mask_image = cv2.cvtColor(np.array(mask_image), cv2.COLOR_RGB2GRAY)
42