Commit Graph

4746 Commits

Author SHA1 Message Date
DenOfEquity
f36fa7dc1a fix for sd2 2024-08-31 13:05:02 +01:00
DenOfEquity
7ffd124a9e add the new flux version
Ideally there would be an 'is_flux' bool to check; using `is not shared.sd_model.is_webui_legacy_model():` instead.
2024-08-29 16:41:47 +01:00
DenOfEquity
408054f7e5 add 'Lora hashes' to infotext that can be ignored
In *Settings -> Disregard fields from pasted infotext* there is a very long list of things that can optionally be ignored when parsing infotext. Now it is a slightly longer list, and includes `Lora hashes`.
2024-08-28 11:58:32 +01:00
layerdiffusion
15f41b2e5e we do not need initial model download now
since we do not load model when UI start
2024-08-27 17:59:56 -07:00
layerdiffusion
20cdcf05f5 experimental: allow some tabs to hide model bar 2024-08-27 17:45:44 -07:00
layerdiffusion
9c03493262 add some misc fix related to info text 2024-08-27 07:51:28 -07:00
DenOfEquity
3c4eb78cd1 Merge pull request #1531 from DenOfEquity/fix-the-hrfix-fix
Update txt2img.py: fix the hrfix fix
2024-08-27 00:55:42 +01:00
DenOfEquity
d7b8127438 Update txt2img.py: fix the hrfix fix
main issue: Upscaling would fail on single image when controlnet used.

minor issues: On the way to fixing my oversight of not accounting for control images in the gallery, I found that attempting to upscale a control image would fail due to trying to access infotext that doesn't exist. Then I handled a case previously caught by an assert more gracefully. Unhandled, these minor issues would lose the current gallery, so these extra fixes are good QoL.
Then I found another related minor issue if grids are not displayed.
2024-08-27 00:40:21 +01:00
layerdiffusion
18b356c0dc fix 2024-08-26 16:15:07 -07:00
cluder
e94130a82a Fix Checkpoint Merging #1359,#1095 (#1454)
- checkpoint_list[] contains the CheckpointInfo.title which is "checkpointname.safetensor [hash]"
  when a checkpoint is selected to be loaded during merge, we try to match it with just "checkpointname.safetensor".
  -> use checkpoint_aliases[] which already contains the checkpoint key in all possible variants.
- replaced removed sd_models.read_state_dict() with sd_models.load_torch_file()
- replaced removed sd_vae.load_vae_dict() with sd_vae.load_torch_file()
- uncommented create_config() for now, since it calls a removed method: sd_models_config.find_checkpoint_config_near_filename()
2024-08-26 15:39:37 -07:00
altoiddealer
d55e6b5bfe Replace API sd-vae with sd-modules (#1463) 2024-08-26 15:08:02 -07:00
DenOfEquity
230e39110e Merge pull request #1492 from DenOfEquity/restore-postprocessing_focal_crop-script
Restore postprocessing_focal_crop script
2024-08-26 16:19:07 +01:00
DenOfEquity
a0e317518e update cmd_args.py: description
extra description for old clip argument
2024-08-26 11:27:35 +01:00
DenOfEquity
001f2305de Update cmd_args.py: add text-encoder-dir 2024-08-25 15:03:02 +01:00
DenOfEquity
fc9b80cf0e restore autocrop.py 2024-08-25 13:23:21 +01:00
altoiddealer
7dde12e5cf Correct commit_date type to 'int' 2024-08-24 21:17:08 -04:00
altoiddealer
86e3ccaa9d checkpoint change (#1427)
* checkpoint change

credit to @dermesut

https://github.com/lllyasviel/stable-diffusion-webui-forge/issues/1421

Enables `sd_model_checkpoint` parameter for API payloads

* Omit redundant .save()
2024-08-23 09:01:30 -07:00
layerdiffusion
df598c4df5 add "Diffusion in Low Bits" to info text 2024-08-22 23:23:14 -07:00
layerdiffusion
0bf68c5448 revise NGMS 2024-08-22 23:07:05 -07:00
Haoming
7b3b5fd0fd ngms (#1434) 2024-08-22 23:06:17 -07:00
altoiddealer
d169cd5881 Gets type (#1410) 2024-08-22 12:50:09 -07:00
layerdiffusion
08f7487590 revise "send distilled_cfg_scale when generating hires conds" 2024-08-22 06:35:13 -07:00
DenOfEquity
bfd7fb1d9f send distilled_cfg_scale when generating hires conds (#1403) 2024-08-22 06:33:48 -07:00
Igor Aherne
852e88564c Update api.py (#1389)
get_sd_models now also returning config - fixes the following error:

fastapi.exceptions.ResponseValidationError: 1 validation errors:
  {'type': 'missing', 'loc': ('response', 0, 'config'), 'msg': 'Field required', 'input': {'title': 'realisticVisionV51_v51VAE.safetensors', 'model_name': 'realisticVisionV51_v51VAE', 'hash': None, 'sha256': None, 'filename': 'C:\\Users\\Igor\\Documents\\StableProjectorz\\stable-diffusion-webui-forge\\webui\\models\\Stable-diffusion\\realisticVisionV51_v51VAE.safetensors'}, 'url': 'https://errors.pydantic.dev/2.8/v/missing'}
2024-08-21 22:47:40 -07:00
layerdiffusion
8b90bd88b5 fix #1367 2024-08-20 22:35:25 -07:00
DenOfEquity
a46cfa6a1d minor fixes related to Extras tab (#1312)
* update ui.js - correct index for extras tab

one character change

* Update postprocessing.py

fix missing attribute orig_name by using name instead
avoid duplication of postprocessing text. Previously written twice, to png sections postprocessing and extras.

* Update postprocessing.py

unnecessary line
2024-08-20 20:28:42 -07:00
DenOfEquity
b2353a4911 fix hires-fix button (#1360)
underlying gallery object changed with gradio update, old code broken, new code more simple
added check for attempt to upscale grid
removed redundant check already covered by second assert
2024-08-20 20:28:07 -07:00
DenOfEquity
c127e60cf0 Update sd_samplers_kdiffusion.py
add new samplers here
2024-08-20 15:01:58 +01:00
layerdiffusion
14ac95f908 fix 2024-08-20 01:37:01 -07:00
Panchovix
9f5a27ca4e Add Align Your Steps GITS, AYS 11 Steps and AYS 32 Steps Schedulers. 2024-08-19 16:57:58 -04:00
layerdiffusion
0b70b7287c gradio 2024-08-19 09:12:38 -07:00
layerdiffusion
584b6c998e #1294 2024-08-19 09:09:22 -07:00
layerdiffusion
96f264ec6a add a way to save models 2024-08-19 06:30:49 -07:00
layerdiffusion
d38e560e42 Implement some rethinking about LoRA system
1. Add an option to allow users to use UNet in fp8/gguf but lora in fp16.
2. All FP16 loras do not need patch. Others will only patch again when lora weight change.
3. FP8 unet + fp16 lora are available (somewhat only available) in Forge now. This also solves some “LoRA too subtle” problems.
4. Significantly speed up all gguf models (in Async mode) by using independent thread (CUDA stream) to compute and dequant at the same time, even when low-bit weights are already on GPU.
5. View “online lora” as a module similar to ControlLoRA so that it is moved to GPU together with model when sampling, achieving significant speedup and perfect low VRAM management simultaneously.
2024-08-19 04:31:59 -07:00
layerdiffusion
22a19943d2 fix lcm 2024-08-18 19:23:12 -07:00
DenOfEquity
93bfd7f85b invalidate cond cache if distilled CFG changed (#1240)
* Update processing.py

add distilled_cfg_scale to params that invalidate cond cache

* Update ui.py

distilled CFG and CFG step size 0.1 (from 0.5)
2024-08-17 19:34:11 -07:00
layerdiffusion
0f266c48bd make clear_prompt_cache a function 2024-08-17 19:00:13 -07:00
lllyasviel
93b40f355e Forge Space and BiRefNet 2024-08-17 08:29:08 -07:00
layerdiffusion
1bd6cf0e0c Support LoRAs for Q8/Q5/Q4 GGUF Models
what a crazy night of math
2024-08-15 05:34:46 -07:00
layerdiffusion
447f261154 fix 2024-08-15 01:56:21 -07:00
layerdiffusion
3acb50c40e integrate llama3's GGUF 2024-08-15 01:45:29 -07:00
layerdiffusion
d8b83a9501 gguf preview 2024-08-15 00:03:32 -07:00
David Martin Rius
dad6e9ad02 Fix type error in BLIP model generation by converting configuration values to integers. (#1113)
- Cast `num_beams` and `min_length` to integers in `interrogate.py` when passing them to the BLIP model's `generate` function.
- Resolves issues with type mismatches that caused crashes during the interrogation process.
2024-08-14 17:37:12 -07:00
David Martin Rius
4eadf1b5e6 Fix validation error by updating SDModelItem config field to be optional. Changed config field in SDModelItem model to Optional[str] with default value None. (#1096) 2024-08-14 17:35:17 -07:00
layerdiffusion
b09c24ef51 add fp16_fix 2024-08-14 17:10:03 -07:00
layerdiffusion
bb58520a4c completely solve 'NoneType' object is not iterable 2024-08-13 15:36:18 -07:00
lllyasviel
61f83dd610 support all flux models 2024-08-13 05:42:17 -07:00
layerdiffusion
d08c9c809c cleanup codes 2024-08-11 22:07:54 -07:00
layerdiffusion
cd8a181438 make flux inpaint and soft inpaint works 2024-08-11 18:18:16 -07:00
layerdiffusion
36250c78f5 fix flux img2img and highres.fix math 2024-08-11 18:07:50 -07:00