Update app.py
Browse files
app.py
CHANGED
|
@@ -426,7 +426,7 @@ def enhanced_composite_with_sam(original_image, inpaint_result, original_mask,
|
|
| 426 |
|
| 427 |
|
| 428 |
# Binarisieren für klare Alpha-Werte (nur 0 oder 255)
|
| 429 |
-
threshold =
|
| 430 |
alpha_mask = soft_mask.point(lambda x: 255 if x > threshold else 0)
|
| 431 |
print(f"🔍 Alpha-Mask unique values: {np.unique(np.array(alpha_mask))}")
|
| 432 |
|
|
|
|
| 426 |
|
| 427 |
|
| 428 |
# Binarisieren für klare Alpha-Werte (nur 0 oder 255)
|
| 429 |
+
threshold = 1
|
| 430 |
alpha_mask = soft_mask.point(lambda x: 255 if x > threshold else 0)
|
| 431 |
print(f"🔍 Alpha-Mask unique values: {np.unique(np.array(alpha_mask))}")
|
| 432 |
|