diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-05 16:56:07 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-05 16:56:07 +0200 |
| commit | dbd3cb8c1cabf1fd3a76f71a3a6e80bae4878541 (patch) | |
| tree | fde31d9a45a8d411fe3632fdced30fce12a1a54f | |
| parent | 871084b1dbf0fdc6e0a93860747252155b5e51f1 (diff) | |
| download | fanfictioner-dbd3cb8c1cabf1fd3a76f71a3a6e80bae4878541.tar.gz fanfictioner-dbd3cb8c1cabf1fd3a76f71a3a6e80bae4878541.zip | |
Keep the first attempt's log when retrying on low VRAM
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rwxr-xr-x | fanfictioner | 1 |
1 files changed, 1 insertions, 0 deletions
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): |
