Update app.py
Browse files
app.py
CHANGED
|
@@ -187,7 +187,7 @@ def create_face_mask(image, bbox_coords, mode):
|
|
| 187 |
- padding_info: Dictionary mit Skalierungsinfo für späteres Compositing
|
| 188 |
"""
|
| 189 |
|
| 190 |
-
# Herunterskalierung
|
| 191 |
def scale_image_and_mask_together(image, mask, target_size=512, bbox_coords=None, mode=None):
|
| 192 |
if image is None or mask is None:
|
| 193 |
raise ValueError("Bild oder Maske ist None")
|
|
|
|
| 187 |
- padding_info: Dictionary mit Skalierungsinfo für späteres Compositing
|
| 188 |
"""
|
| 189 |
|
| 190 |
+
# Herunterskalierung von Bild und BBox auf 512x512 für ControlnetInpaint-Pipeline
|
| 191 |
def scale_image_and_mask_together(image, mask, target_size=512, bbox_coords=None, mode=None):
|
| 192 |
if image is None or mask is None:
|
| 193 |
raise ValueError("Bild oder Maske ist None")
|