4805 Commits

Author SHA1 Message Date
layerdiffusion
c5853ef9f8 dep ver 2024-10-28 23:04:13 -07:00
lllyasviel
2d5b6cacef Merge pull request #2183 from graemeniedermayer/sd35_integration
sd3.5 integration (naive)
2024-10-28 21:54:10 -07:00
layerdiffusion
623778a3a3 dep ver 2024-10-28 21:50:29 -07:00
psydok
878c056576 Any exception is translated in http response (#2186)
* fix: get error in http request
2024-10-28 00:27:38 +00:00
DenOfEquity
70f3499d0f avoid potential unnecessary model load with hiresfix quickbutton (#2189) 2024-10-26 21:48:36 +01:00
altoiddealer
145a46907e Improve option handling (sd_model_checkpoint / forge_additional_modules) (#2181)
* Sort modules when checking for changes
* Compare consistent checkpoint values
2024-10-26 21:10:05 +01:00
grae
1363999fb1 sd3.5 integration 2024-10-25 18:39:45 -06:00
DenOfEquity
d4d8ad406e save (Hires) Distilled CFG to infotext (#2172)
changing hires model could lead to not writing
2024-10-24 20:37:34 +01:00
DenOfEquity
9a698e26d6 Properly load/save infotext for empty selection of hrfix additional modules (#2156)
empty selection for *Hires VAE / TE* means 'use modules built-in to the model file', same as top-row VAE / TE selection. But this must be written to infotext as something, to distinguish from the non-HiRes case.
2024-10-23 11:08:45 +01:00
DenOfEquity
0c97a5347a properly load/save 'Use same choices' infotext (#2147)
* save 'Use same choices' to infotext, and load
* reload models as needed for batch iterations
2024-10-22 16:34:40 +01:00
Kazancev Danil
518e3cdbd5 fix txt2img pydantic error (#2138)
Co-authored-by: kazanplova <kazanplova@mt-dev-gpu-hotel-01.novalocal>
2024-10-22 15:31:58 +01:00
DenOfEquity
e4ad1140c8 handle before_process scripts earlier (#2132)
this allows the built-in extension 'extra options section' to override correctly
2024-10-21 11:07:48 +01:00
DenOfEquity
aaa2fe761b Hires additional modules (#2116)
adds selection of none/same/different modules for hiresfix
('Use same choices' default option has priority over other selections made at same time.)
includes saving/loading from infotext
2024-10-21 11:03:12 +01:00
catboxanon
edc46380cc Automatically enable ztSNR when applicable (#2122) 2024-10-19 20:33:34 -04:00
catboxanon
aba35cde5f Fix Zero Terminal SNR option 2024-10-19 12:28:14 -04:00
DenOfEquity
1fae20d94f Clipskip override from infotext (#2099)
* support more infotext overrides
clip skip, model, and vae/te, and old VAE too
2024-10-18 16:47:49 +01:00
DenOfEquity
1ef5436833 add .avif to extensions for img2img batch (#2102) 2024-10-17 20:23:42 +01:00
DenOfEquity
a06cfc9634 Hiresfix checkpoint (#2100)
restores checkpoint selection for highres fix
2024-10-17 13:39:42 +01:00
altoiddealer
6dc71b7e1d prevent undoing refresh model load params (#2092)
Ensures `should_refresh_model_loading_params()` is called when needed. Improved code clarity.
2024-10-16 14:52:35 +01:00
DenOfEquity
9efa4eabfd prevent (Managed by Forge) settings from reverting to default (#2090)
* prevent (Managed by Forge) settings reverting to default
* save CLIP skip to config when changed, inconsistent / unpredictable saving behaviour otherwise
2024-10-16 14:10:26 +01:00
altoiddealer
2c543719e3 Improve options management (#2078)
- `/sdapi/v1/options` GET now calls `get_config()` from **sysinfo** module, instead of from its own version of the function.

- Defined a new, flexible and more robust `set_config()` function in **sysinfo** module, which:
  - obsoletes redundant code
  - skips updating values that are unchanged
  - has flexible args for both API and UI use

- `/sdapi/v1/options` POST and `override_settings` now use the new `set_config()` function.  `set_config()` could possibly obsolete additional functions, but I'm not going to get into that just yet.

- Options for `forge_additional_modules` can now be provided either as the file path, or just the module name.

- Most importantly, `refresh_model_loading_parameters()` is now only called ONCE per request, and **only** if necessary.

- It is now much easier to call `shared.opts.save()` as needed
2024-10-16 11:21:54 +01:00
altoiddealer
cce30d3340 Include Extra Images via API (#2066) 2024-10-15 13:52:08 +01:00
DenOfEquity
b4d2266dc6 Checkpoint vae+te metadata should be in new attribute (#2073)
* new metadata in new attribute
maintain compatibility with old webui by not reusing the vae metadata attribute
2024-10-15 13:40:15 +01:00
altoiddealer
77464215c3 Make SD Models work with Override Settings (#2054)
* Do refresh load params for modules
* Adjust call order for model mgmt/prompt cache
* new function `manage_model_and_prompt_cache()` to improve code clarity
2024-10-14 11:47:39 +01:00
altoiddealer
862c7a589e API Improvements: Modules Change AND Restore override_settings (#2027)
* Improve API modules change
* Restore override_settings and make it work
* Simplify some memory management
2024-10-13 12:29:02 +01:00
DenOfEquity
ae8187bf2d Unload all models control (#2038)
* make unload_model_weights do that
* rename Settings > Actions > unload checkpoint button to 'Unload all models'
* remove (comment out) reload button, as it does nothing and is unlikely to ever do anything since models are loaded on demand
2024-10-12 12:51:26 +01:00
Won-Kyu Park
c0a7438fd8 partial revert to fix compatible issue (#1892)
* partial revert to fix A1111 compatible issue
* fix for submit_extras()
2024-10-08 11:13:32 +01:00
layerdiffusion
e9d1736b9f [bot] dep ver 2024-10-07 20:52:55 -07:00
layerdiffusion
1d3f73b78d [bot] dep ver 2024-10-06 18:27:37 -07:00
layerdiffusion
4f7f815b9f [bot] sync 2024-10-05 20:04:57 -07:00
layerdiffusion
953e3f3983 [bot] sync 2024-10-04 21:45:43 -07:00
layerdiffusion
7d88741f57 fix 2024-10-04 13:00:22 -07:00
layerdiffusion
4e16689ea9 update dep ver 2024-10-04 12:20:33 -07:00
layerdiffusion
dc4f5e4119 remove some assets and dependences from repo 2024-10-03 21:17:51 -07:00
altoiddealer
f4d5e8cac1 Apply memory changes via API (#1954)
Actually apply memory related changes posted to `/sdapi/v1/options`:
- 'forge_inference_memory'
- 'forge_async_loading'
- 'forge_pin_shared_memory'
2024-10-01 21:34:11 +01:00
DenOfEquity
86d003266b Fix for comments in prompts with styles (#1948)
(#1862)
a fix for the 0.01% who use comments in prompts. Before this, styles could be considered part of a comment.

strips comments from prompts first, then from each applied style before merge
same process for extracting styles from prompts
updated tooltips for toolbuttons to apply styles
removed code made redundant by this change, from modules.processing_scripts.comments
2024-09-30 11:16:55 +01:00
DenOfEquity
22e2bc3bc0 handle old preference vae metadata (#1935) 2024-09-28 13:06:26 +01:00
DenOfEquity
2d3903db68 fix for null checkpoint with API (#1916)
#1915 API oversight
2024-09-26 09:28:04 +01:00
DenOfEquity
7876862c43 Vae/te preferences via cards (#1912)
Allows setting of preferred VAE and Text encoder(s) for checkpoints when selected via Checkpoint cards. No selection saved means no change to current toprow setting. 'Built in' option, if the only choice, means clear the toprow selection (therefore use vae/te built-in to checkpoint).
Also allows setting model type for checkpoints (SD1/SD2/SDXL/Flux/Unknown) (user set only, no attempt at autodetection), enabling filtering of the cards based on UI preset.
2024-09-25 20:45:11 +01:00
DenOfEquity
b1256b5fc9 More UI settings (#1903)
adds options for user-set defaults for Sampler and Scheduler to UI settings sd, xl, flux;
adds options for user-set defaults for GPU Weights to UI settings xl, flux;
necessitates change to .input event listener instead of .release for ui_forge_inference_memory, which may be more correct anyway.
2024-09-24 11:40:44 +01:00
DenOfEquity
a82d5d177c restore lora version filtering (#1885)
Added Flux to lora types in extra networks UI, so user can set.
Loras versioned first by user-set type, if any. Falls back to heuristics - these are much more reliable than the removed old A1111 tests and in case of no match default to Unknown (always displayed).
Filtering is done based on UI setting. 'all' setting does not filter. Filters lora lists on change.
Removed unused 'lora_hide_unknown_for_versions' setting.
2024-09-23 14:53:58 +01:00
DenOfEquity
93bcfd30fa opts for sigma_min and _max as Sliders (#1848)
Previously these were Numbers, and limited to integers, with no range check.
Some schedulers don't respect these values anyway, but that's a different issue.
2024-09-17 18:08:24 +01:00
DenOfEquity
791f04f71e autoset width and height (#1838)
* autoset width and height

When loading into img2img, added an option to autoset Width and Height from image (Settings -> img2img ->After loading into Img2img, automatically update Width and Height).
Also fixed scale_by display, now correctly rounded to multiple of 8
Also fixed img2img new width/height calculation, same way, (affects infotext)

* Update ui.py: hide progress animation on image size change
2024-09-16 19:14:31 +01:00
DenOfEquity
cb412b290b CFG and Distilled CFG for hiresfix (#1810) 2024-09-13 15:01:40 +01:00
DenOfEquity
720b80daea force clipskip to int (#1775)
#1760, original solution by cmdr2. extended to 2 other locations where setting is read. I could replicate the issue only by manually entering a decimal value.

Possibly also #1764. Though I don't know how the clipskip setting became a string.
2024-09-10 14:39:53 +01:00
layerdiffusion
9439319007 better way to load google files 2024-09-08 18:03:14 -07:00
DenOfEquity
7d5b31bb78 restore use of Settings for hiresfix options (#1706)
Re-enables *hires_fix_show_sampler* and *hires_fix_show_prompts* user-configurable settings.

Also corrects the reported result width x height; now rounded down to multiple of 8.

#1247
2024-09-08 21:08:44 +01:00
layerdiffusion
accf133a38 Upload "Google Blockly" prototyping tools 2024-09-07 01:43:40 -07:00
layerdiffusion
66211d9a06 add a way to add samplers dynamically 2024-09-07 01:43:12 -07:00
DenOfEquity
3dd5e19c83 Extras tab: gfpgan and cf fixes (#1722)
* fix GFPGAN to work with visibility < 1
* fix codeformer to work with visibility < 1
* try harder to download GFPGAN model. Old method would download only if there were no .pth models in the GFPGAN directory. If codeformer was used before GFPGAN, the supporting models are already downloaded into the GFPGAN directory.
2024-09-06 14:09:09 +01:00