Astridkraft commited on
Commit
8d979c1
·
verified ·
1 Parent(s): da5dad4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -890,7 +890,7 @@ def img_to_image(image, prompt, neg_prompt, strength, steps, guidance_scale,
890
  if bbox_x1 is not None and bbox_y1 is not None and bbox_x2 is not None and bbox_y2 is not None:
891
  print(f"🎯 BBox Koordinaten erhalten: [{bbox_x1}, {bbox_y1}, {bbox_x2}, {bbox_y2}]")
892
 
893
- # 1. MASKE AUF ORIGINAL-BILD ERSTELLEN (speichern für späteres Compositing)
894
  original_mask = create_face_mask(image, (bbox_x1, bbox_y1, bbox_x2, bbox_y2), mode)
895
 
896
  # 2. BILD UND MASKE GEMEINSAM SKALIEREN (mit Padding)
 
890
  if bbox_x1 is not None and bbox_y1 is not None and bbox_x2 is not None and bbox_y2 is not None:
891
  print(f"🎯 BBox Koordinaten erhalten: [{bbox_x1}, {bbox_y1}, {bbox_x2}, {bbox_y2}]")
892
 
893
+ # 1. MASKE in Abhängigkeit der BBox Koordinaten AUF ORIGINAL-BILD ERSTELLEN (speichern für späteres Compositing)
894
  original_mask = create_face_mask(image, (bbox_x1, bbox_y1, bbox_x2, bbox_y2), mode)
895
 
896
  # 2. BILD UND MASKE GEMEINSAM SKALIEREN (mit Padding)