emirhanbilgic commited on
Commit
97acead
1 Parent(s): 6692fdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ def inpaint_hair(image, prompt):
79
 
80
  # Convert to PIL image for the inpainting pipeline
81
  image_pil = Image.fromarray(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))
82
- mask_pil = Image.fromarray(cv2.cvtColor(mask, cv2.COLOR_RGBA2RGB))
83
 
84
  # Prepare the inpainting condition
85
  image_np = np.array(image_pil).astype(np.float32) / 255.0
 
79
 
80
  # Convert to PIL image for the inpainting pipeline
81
  image_pil = Image.fromarray(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))
82
+ mask_pil = Image.fromarray(mask[:, :, :3])
83
 
84
  # Prepare the inpainting condition
85
  image_np = np.array(image_pil).astype(np.float32) / 255.0