diff --git a/TODO.md b/TODO.md index 239cdc080..1b7df62f5 100644 --- a/TODO.md +++ b/TODO.md @@ -56,20 +56,3 @@ Tech that can be integrated as part of the core workflow... - Bunch of stuff: ### Pending Code Updates - -This is a massive one due to huge number of changes, but hopefully it will fo ok... - -- new **prompt parsers** - select in UI -> Settings -> Stable Diffusion - - **Full**: my new implementation - - **A1111**: for backward compatibility - - **Compel**: as used in ComfyUI and InvokeAI (a.k.a *Temporal Weighting*) - - **Fixed**: for really old backward compatibility -- added `--safe` command line flag mode which skips loading user extensions - please try to use it before opening new issue -- reintroduce `--api-only` mode to start server without ui -- monitor **extensions** install/startup and - log if they modify any packages/requirements - this is a *deep-experimental* python hack, but i think its worth it as extensions modifying requirements is one of most common causes of issues -- port *all* upstream code from [A1111](https://github.com/AUTOMATIC1111/stable-diffusion-webui) - up to today - commit hash `89f9faa` diff --git a/modules/textual_inversion/preprocess.py b/modules/textual_inversion/preprocess.py index 5d6f885b9..7c20b7f10 100644 --- a/modules/textual_inversion/preprocess.py +++ b/modules/textual_inversion/preprocess.py @@ -65,7 +65,9 @@ def save_pic_with_caption(image, index, params: PreprocessParams, existing_capti caption = existing_caption caption = caption.strip() if len(caption) > 0: - if params.process_caption_only and existing_caption_filename is not None: + if params.process_caption_only: + fn = os.path.join(params.dstdir, f"{filename_part}.txt") + elif existing_caption_filename is not None: fn = existing_caption_filename else: fn = os.path.join(params.dstdir, f"{basename}.txt")