v4.2.8rc2 brings Prompt Templates to Invoke, plus a number of minor fixes and enhancements.
This second RC fixes an issue where the default prompt templates were not packaged correctly, causing an error on startup.
Prompt Templates
We've added the ability to create, import and export prompt templates. These are saved prompts that you may add to your existing prompt.
How it Works
Add a positive and/or negative prompt to your template. Use the {prompt}
placeholder in the template to indicate where your prompt should be inserted into the template:
- Template:
highly detailed photo of {prompt}, award-winning, nikon dslr
- Prompt:
a super cute fennec fox cub
- Result:
highly detailed photo of a super cute fennec fox cub, award-winning, nikon dslr
If you omit the placeholder, the template will be appended to the end of your prompt:
- Template:
turtles
- Prompt:
i like
- Result:
i like turtles
Creating a Prompt Template
You can create a prompt templates from within Invoke in two ways:
- Directly, by providing the name, positive prompt and negative prompt. You can upload an image to be the preview image for the template.
- Via metadata from an image generated with Invoke. We'll use the positive and negative prompts from the image's metadata, and that image will be the preview image for that template.
Default Prompt Templates
We're shipping a number of templates with the app. We'll update these as we continue developing Invoke with improvements and new templates.
Import and Export
You can import templates from other SD apps. We support CSV and JSON files with these columns/keys:
name
prompt
orpositive_prompt
negative_prompt
Export your prompt templates to share with others. When you export prompt templates, only your own templates are exported.
Preview and Flatten
Use the Preview button to see the prompt that will be used for generation. Flatten the prompt template to bake it into your prompts.
Thanks to @maryhipp for implementing Prompt Templates!
Other Changes
- Enhancement: Added
DPM++ 3M
,DPM++ 3M Karras
,DEIS Karras
,KDPM 2 Karras
,KDPM 2 Ancestral Karras
andUniPC Karras
schedulers @StAlKeR7779 - Enhancement: Updated translations - Italian is 100%! Thanks @Harvester62!
- Enhancement: Grounded SAM node (text prompt image segmentation) @RyanJDick
- Enhancement: Update DepthAnything to V2 (small variant only) @blessedcoolant
- Fix: Image downloads with correct filename
- Fix: Delays with events (progress images will be smoother)
- Fix: Jank with board selection when hiding or deleting boards
- Fix: Error deleting images on systems without a "trash bin"
- Fix: Upscale metadata included in SDXL Multidiffusion upscales @maryhipp
- Fix:
invoke.sh
works with symlinks @max-maag - Internal: Continued work on the modular backend refactor @StAlKeR7779
Installation and Updating
To install or update to v4.2.8rc2, download the installer and follow the installation instructions.
To update, select the same installation location. Your user data (images, models, etc) will be retained.
Missing models after updating from v3 to v4
See this FAQ.
Error during installation ModuleNotFoundError: No module named 'controlnet_aux'
See this FAQ
What's Changed
- Modular backend - Seamless by @StAlKeR7779 in #6651
- Modular backend - T2I Adapter by @StAlKeR7779 in #6662
- fix(ui): deleting a board or hiding archived should reset selected & auto-add boards by @psychedelicious in #6694
- Modular backend - inpaint by @StAlKeR7779 in #6643
- update delete board modal to be more descriptive by @chainchompa in #6690
- Add more karras schedulers by @StAlKeR7779 in #6695
- Fix gradient mask values range by @StAlKeR7779 in #6688
- Modular backend - LoRA/LyCORIS by @StAlKeR7779 in #6667
- add base prop for destination to direct users to different tabs on initial load by @chainchompa in #6706
- Add Grounded SAM support (text prompt image segmentation) by @RyanJDick in #6701
- fix(ui): include upscale metadata for SDXL multidiffusion by @maryhipp in #6704
- feat(app): delete images without send2trash by @psychedelicious in #6713
- build: exclude matplotlib 3.9.1 by @psychedelicious in #6718
- feat(ui): restore optional upper limit on upscale resolution size by @maryhipp in #6721
- ui: translations update from weblate by @weblate in #6684
- Depth Anything V2 by @blessedcoolant in #6674
- LyCORIS - LoKR and Norm layers by @StAlKeR7779 in #6724
- fix(ui): show warning for maxUpscaleDimension if model tab is disabled by @maryhipp in #6733
- chore(ui): bump deps by @psychedelicious in #6734
- fix(api): image downloads with correct filename by @psychedelicious in #6735
- fix(app): delays in events by @psychedelicious in #6716
- fix(ui): combobox scroll by @psychedelicious in #6738
- feat(ui, api): prompt templates by @maryhipp in #6729
- ui: translations update from weblate by @weblate in #6727
- feat(api,ui): import prompt template CSV by @maryhipp in #6743
- feat: add base prop for selectedWorkflow to allow loading a workflow on launch by @chainchompa in #6742
- ui: translations update from weblate by @weblate in #6746
- feat(ui, api): prompt template export by @maryhipp in #6745
- Fix invoke.sh not detecting symlinks by @max-maag in #6731
- chore: bump version to v4.2.8rc1 by @psychedelicious in #6748
- fix: bundle style preset defaults, bump version to v4.2.8rc2 by @psychedelicious in #6750
New Contributors
Full Changelog: v4.2.7...v4.2.8rc2