Update app.py
Browse files
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 |
|