Astridkraft commited on
Commit
0ac2546
·
verified ·
1 Parent(s): f1f853a

Update controlnet_module.py

Browse files
Files changed (1) hide show
  1. controlnet_module.py +1 -1
controlnet_module.py CHANGED
@@ -1297,7 +1297,7 @@ class ControlNetProcessor:
1297
 
1298
  # Prüfe Maskendichte
1299
  white_pixels = np.sum(mask_array > 128)
1300
- coverage_ratio = white_pixels / heur_bbox_area if heur_bbox_area > 0 else 0
1301
  print(f" 📊 Aktuelle Abdeckung: {white_pixels:,}px / {heur_bbox_area:,}px = {coverage_ratio:.1%}")
1302
 
1303
  if coverage_ratio < 0.9:
 
1297
 
1298
  # Prüfe Maskendichte
1299
  white_pixels = np.sum(mask_array > 128)
1300
+ coverage_ratio = white_pixels / bbox_area if bbox_area > 0 else 0
1301
  print(f" 📊 Aktuelle Abdeckung: {white_pixels:,}px / {heur_bbox_area:,}px = {coverage_ratio:.1%}")
1302
 
1303
  if coverage_ratio < 0.9: