Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -275,7 +275,7 @@ def stereo_pipeline(image_pil, divergence_percent, convergence_plane):
|
|
| 275 |
# 5. Convert to numpy
|
| 276 |
right_rgb = (right_tensor.squeeze(0).permute(1,2,0).cpu().numpy() * 255).astype(np.uint8)
|
| 277 |
right_bgr = cv2.cvtColor(right_rgb, cv2.COLOR_RGB2BGR)
|
| 278 |
-
mask_np = occlusion_mask.squeeze(
|
| 279 |
|
| 280 |
# 6. Two-pass LaMa (perfect edges)
|
| 281 |
right_filled_bgr = run_lama_twice(right_bgr, mask_np)
|
|
|
|
| 275 |
# 5. Convert to numpy
|
| 276 |
right_rgb = (right_tensor.squeeze(0).permute(1,2,0).cpu().numpy() * 255).astype(np.uint8)
|
| 277 |
right_bgr = cv2.cvtColor(right_rgb, cv2.COLOR_RGB2BGR)
|
| 278 |
+
mask_np = occlusion_mask.squeeze().cpu().numpy()
|
| 279 |
|
| 280 |
# 6. Two-pass LaMa (perfect edges)
|
| 281 |
right_filled_bgr = run_lama_twice(right_bgr, mask_np)
|