[object Object]

← back to Wallco Ai

Fix variants montage 0/90: count PASS rows from both i2i + original ControlNet generator tags (img2img pivot 7d5a23e dropped the 4 pre-pivot cells)

d99cb6755ccfd8b4e5e307b2ed07efc8657aa92c · 2026-06-12 09:29:35 -0700 · Steve Abrams

Files touched

Diff

commit d99cb6755ccfd8b4e5e307b2ed07efc8657aa92c
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Fri Jun 12 09:29:35 2026 -0700

    Fix variants montage 0/90: count PASS rows from both i2i + original ControlNet generator tags (img2img pivot 7d5a23e dropped the 4 pre-pivot cells)
---
 scripts/variants-9roots.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/scripts/variants-9roots.py b/scripts/variants-9roots.py
index bac1053..f440a32 100644
--- a/scripts/variants-9roots.py
+++ b/scripts/variants-9roots.py
@@ -48,6 +48,10 @@ edgeverify = import_module('verify-edge-seamless')
 LEDGER = os.path.join(ROOT, 'data', 'variants-9roots.jsonl')
 CONTACT = '/tmp/variants_9roots.png'
 GEN_TAG = 'variants-i2i-cleanup'
+# Accept PASS rows from BOTH the current i2i path and the original ControlNet
+# path ('variants-9roots') so the montage + done-cell skip count the 4 cells
+# generated before the img2img pivot (commit 7d5a23e) instead of dropping them.
+ACCEPT_TAGS = {GEN_TAG, 'variants-9roots'}
 
 # 9 Wave-1 roots, ground recorded per root (metadata only — img2img keeps the
 # root's OWN ground; we do NOT swap in a fibre ground, that would destroy the
@@ -127,7 +131,7 @@ def done_cells():
             for line in f:
                 try:
                     r = json.loads(line)
-                    if r.get('ok') and r.get('generator') == GEN_TAG:
+                    if r.get('ok') and r.get('generator') in ACCEPT_TAGS:
                         done.add((int(r['root_id']), int(r['variant_n'])))
                 except Exception:
                     pass
@@ -145,7 +149,7 @@ def build_contact():
                     r = json.loads(line)
                 except Exception:
                     continue
-                if r.get('ok') and r.get('generator') == GEN_TAG and r.get('out') and os.path.exists(r['out']):
+                if r.get('ok') and r.get('generator') in ACCEPT_TAGS and r.get('out') and os.path.exists(r['out']):
                     cells[(int(r['root_id']), int(r['variant_n']))] = r['out']
     except FileNotFoundError:
         return

← cbb6d9e Add seam-joint-heal-loop: autonomous yolo-runner over the 9  ·  back to Wallco Ai  ·  element_copy_heal v2: wrap-edge-only crisp palette-reconcile 0fdef02 →