home · contact · privacy
Fix buggy output path generation.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 13 Oct 2024 01:52:05 +0000 (03:52 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 13 Oct 2024 01:52:05 +0000 (03:52 +0200)
stable.py

index 44833f623b318c3d7d9e45dc96807f92e7dc0ce4..542792ef0e2404df44149af580a4224277718f52 100755 (executable)
--- a/stable.py
+++ b/stable.py
@@ -134,6 +134,7 @@ def run():
     maker = None
     total = len(args.models) * args.quantity
     start_time = datetime.now()
+    path_idx = 0
     for i, model_name in enumerate(args.models):
         new_model_path = path_join(args.models_dir, model_name)
         if new_model_path != old_model_path:
@@ -153,7 +154,6 @@ def run():
         start_seed = start_seed if start_seed != 0 else randint(SEED_MIN,
                                                                 SEED_MAX)
         seed_corrector = 0
-        path_idx = 0
         for n in range(args.quantity):
             if 0 == start_seed + n + seed_corrector:
                 seed_corrector += 1