Update controlnet_module.py
Browse files- controlnet_module.py +2 -2
controlnet_module.py
CHANGED
|
@@ -284,8 +284,8 @@ class ControlNetProcessor:
|
|
| 284 |
face_y = max(y1 + 10, min(face_y, y2 - 10)) # In BBox halten
|
| 285 |
|
| 286 |
# BEIDE Punkte kombinieren
|
| 287 |
-
input_points = [[[center_x, center_y], [face_x, face_y]]]
|
| 288 |
-
input_labels = [[1, 1]] # Beide sind positive Prompts
|
| 289 |
|
| 290 |
print(f" 🎯 SAM-Prompt: BBox [{x1},{y1},{x2},{y2}]")
|
| 291 |
print(f" 👁️ Punkte: Mitte ({center_x},{center_y}), Gesicht ({face_x},{face_y})")
|
|
|
|
| 284 |
face_y = max(y1 + 10, min(face_y, y2 - 10)) # In BBox halten
|
| 285 |
|
| 286 |
# BEIDE Punkte kombinieren
|
| 287 |
+
input_points = [[[[center_x, center_y], [face_x, face_y]]]] # ZWEI Punkte
|
| 288 |
+
input_labels = [[[1, 1]]] # Beide sind positive Prompts
|
| 289 |
|
| 290 |
print(f" 🎯 SAM-Prompt: BBox [{x1},{y1},{x2},{y2}]")
|
| 291 |
print(f" 👁️ Punkte: Mitte ({center_x},{center_y}), Gesicht ({face_x},{face_y})")
|