codic commited on
Commit
fa76fbb
·
verified ·
1 Parent(s): af85c1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def process_image(image_path, depth_map_path=None):
77
  mask_blurred_resized = cv2.resize(mask_blurred, (depth_image.shape[1], depth_image.shape[0]), interpolation=cv2.INTER_LINEAR)
78
 
79
  # Blend depth_image with mask_blurred_resized for smoother transition
80
- blended_depth_image = cv2.addWeighted(depth_image, 0.8, mask_blurred_resized, 0.2, 0)
81
 
82
  # Inpaint background where main subject was removed
83
  background = remove(image_raw, only_mask=True)
 
77
  mask_blurred_resized = cv2.resize(mask_blurred, (depth_image.shape[1], depth_image.shape[0]), interpolation=cv2.INTER_LINEAR)
78
 
79
  # Blend depth_image with mask_blurred_resized for smoother transition
80
+ blended_depth_image = cv2.addWeighted(depth_image, 0.9, mask_blurred_resized, 0.1, 0)
81
 
82
  # Inpaint background where main subject was removed
83
  background = remove(image_raw, only_mask=True)