Update app.py
Browse files
app.py
CHANGED
|
@@ -452,13 +452,8 @@ def enhanced_composite_with_sam(original_image, inpaint_result, original_mask,
|
|
| 452 |
final_image.paste(edited_rgba, (bbox_coords[0], bbox_coords[1]), edited_rgba)
|
| 453 |
|
| 454 |
# Debug-Info
|
| 455 |
-
print(f"
|
| 456 |
-
|
| 457 |
-
print(f" Scale Factor: {scale_factor}")
|
| 458 |
-
print(f" Offsets: ({x_offset}, {y_offset})")
|
| 459 |
-
print(f" Inpaint Size: {inpaint_result.size}")
|
| 460 |
-
print(f"✅ Korrektes Compositing abgeschlossen. Finale Größe: {final_image.size}")
|
| 461 |
-
|
| 462 |
return final_image.convert("RGB")
|
| 463 |
|
| 464 |
|
|
|
|
| 452 |
final_image.paste(edited_rgba, (bbox_coords[0], bbox_coords[1]), edited_rgba)
|
| 453 |
|
| 454 |
# Debug-Info
|
| 455 |
+
print(f"✅ COMPOSITING: BBox={bbox_coords}, Final={final_image.size}")
|
| 456 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 457 |
return final_image.convert("RGB")
|
| 458 |
|
| 459 |
|