codic commited on
Commit
7cd6d34
·
verified ·
1 Parent(s): 1500537

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def process_image(image_path, depth_map_path=None):
21
  Image.Resampling.LANCZOS,
22
  )
23
 
24
- # Remove background using rembg
25
  foreground = remove(image_raw)
26
  foreground = Image.fromarray(np.array(foreground)).convert("RGB")
27
 
 
21
  Image.Resampling.LANCZOS,
22
  )
23
 
24
+ # Remove background using rembg and keep the background size
25
  foreground = remove(image_raw)
26
  foreground = Image.fromarray(np.array(foreground)).convert("RGB")
27