From dbd3cb8c1cabf1fd3a76f71a3a6e80bae4878541 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 5 Oct 2026 16:56:07 +0200 Subject: Keep the first attempt's log when retrying on low VRAM Co-Authored-By: Claude Opus 5.5 --- fanfictioner | 1 + 1 file changed, 1 insertion(+) diff --git a/fanfictioner b/fanfictioner index db801bc..4386f57 100755 --- a/fanfictioner +++ b/fanfictioner @@ -490,6 +490,7 @@ def generate(d, profile, prompt, size, refs=()): # ponytail: fixed 5 GB budget, fits a Qwen edit beside the desktop but streams weights, # ~12 min per candidate; closing VRAM-heavy apps avoids this path. print("out of VRAM, retrying with a 5 GB budget (slow) ...", flush=True) + log = d / f"{seed}_retry.log" # keep the first attempt's log err = run_sd(args + ["--max-vram", "vulkan0=5"], log, preview) files = [d / f"{seed}_{i}.png" for i in (1, 2, 3)] if not err and not all(f.exists() for f in files): -- cgit v1.2.3