From 28a9f6249a74fc130f540a31e1e013eb2dd6c709 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Sun, 13 Oct 2024 03:52:05 +0200
Subject: [PATCH] Fix buggy output path generation.

---
 stable.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stable.py b/stable.py
index 44833f6..542792e 100755
--- 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
-- 
2.30.2