Commit Graph

8467 Commits

Author SHA1 Message Date
layerdiffusion
8aa8e441c4 cleanup 2024-09-07 01:42:32 -07:00
Haoming
68559eb180 space requirement (#1721) 2024-09-06 23:45:51 -04: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
DenOfEquity
d1e403619d Add files via upload (#1689) 2024-09-05 19:20:21 +01:00
DenOfEquity
e9373d379b Update style.css (#1708) 2024-09-05 19:19:56 +01:00
DenOfEquity
c030fed30b Revert "Revert "Update style.css (#1698)" (#1699)" (#1700)
This reverts commit 268bade528.
2024-09-05 14:17:25 +01:00
DenOfEquity
268bade528 Revert "Update style.css (#1698)" (#1699)
This reverts commit 090367d492.
2024-09-05 14:08:50 +01:00
DenOfEquity
090367d492 Update style.css (#1698)
The previous change to the width of the input box, to prevent overlap between long checkpoint names and the dropdown arrow, also reduced the clickable region of the input box - showing up the arrow as the purely visual element that it is.
This PR restores width, tweaks position of the arrow, and makes the arrow background solid to avoid inference with text. The latter two changes also affect the vae/te and diffusion in low bits menus.
2024-09-05 14:05:54 +01:00
DenOfEquity
668e87f920 keep user drawn foreground in img2img sub-tabs (#1666)
preserve (flatten) user-drawn foregrounds from Sketch and Inpaint sketch tabs when copying
2024-09-02 22:32:20 +01:00
DenOfEquity
8e4a6fcc22 Merge pull request #1665 from wcole3/controlllite-dtype
Set controlllite module dtype to model dtype
2024-09-02 18:09:51 +01:00
wcole3
05bdc3e44f Remove dtype field 2024-09-02 13:06:30 -04:00
wcole3
ef112ae8d2 Cleanup 2024-09-02 12:38:31 -04:00
wcole3
dee7a3c287 Use computation_dtype instead of storage_dtype 2024-09-02 12:23:17 -04:00
wcole3
350018eff5 Set controlllite module dtype to model dtype 2024-09-02 09:52:13 -04:00
cluder
4f64f6daa4 Fix model loading during Checkpoint Merging #1359,#1095 (#1639)
* Fix Checkpoint Merging #1359,#1095

- 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()

* Follow up merge fix for #1359 #1095

- read_state_dict() does nothing, replaced 2 occurrences with load_torch_file()
- now merging actually merges again
2024-08-31 17:09:06 -07:00
DenOfEquity
69ffe37f14 Merge pull request #1538 from Haoming02/inpaint-brush-option
Reimplement Brush Color Settings
2024-08-31 22:19:43 +01:00
DenOfEquity
87abf98815 Update ui.py
hide the color/opacity/softness controls on the inpaint tab:
consistent with high contrast option + 
they don't offer real control anyway (color irrelevant to mask, mask gets thresholded to binary)
2024-08-31 22:16:47 +01:00
DenOfEquity
3f44988b24 Merge pull request #1640 from DenOfEquity/controlnet-BatchUpload-fix
fix for controlnet Batch Upload
2024-08-31 22:04:57 +01:00
DenOfEquity
2c907b24c9 fix for Batch Upload (gallery)
now needs to check for None
2024-08-31 21:52:10 +01:00
layerdiffusion
a8a81d3d77 fix offline quant lora precision 2024-08-31 13:12:23 -07:00
layerdiffusion
79b25a8235 move codes 2024-08-31 11:31:02 -07:00
layerdiffusion
33963f2d19 always compute on-the-fly lora weights when offload 2024-08-31 11:24:23 -07:00
layerdiffusion
3a9cf1f8e5 Revert partially "use safer codes" 2024-08-31 11:07:28 -07:00
layerdiffusion
70a555906a use safer codes 2024-08-31 10:55:19 -07:00
layerdiffusion
1f91b35a43 add signal_empty_cache 2024-08-31 10:20:22 -07:00
DenOfEquity
33b5b9d247 Merge pull request #1582 from DenOfEquity/tae-flux
add the new Tiny AutoEncoder for flux by madebyollin
2024-08-31 13:15:10 +01:00
DenOfEquity
f36fa7dc1a fix for sd2 2024-08-31 13:05:02 +01:00
layerdiffusion
3b9b2f653e sapiens normal
- 100% reproduce all author results and demos
- 0.3b/0.6b/1b/2b models, all pass 2GB VRAM (powered by Forge backend memory system
- perfect memory management for quick shifting between other spaces or forge main UI
2024-08-30 17:34:30 -07:00
layerdiffusion
a537b8b795 add utils to download files 2024-08-30 17:15:11 -07:00
layerdiffusion
447a4a7fba expose more parameters to space 2024-08-30 17:00:31 -07:00
layerdiffusion
8e9b124456 revise space 2024-08-30 16:48:11 -07:00
layerdiffusion
ec7917bd16 fix 2024-08-30 15:37:15 -07:00
layerdiffusion
d1d0ec46aa Maintain patching related
1. fix several problems related to layerdiffuse not unloaded
2. fix several problems related to Fooocus inpaint
3. Slightly speed up on-the-fly LoRAs by precomputing them to computation dtype
2024-08-30 15:18:21 -07:00
Will Cole
a8483a3f79 Adjust Checkpoint input style (#1588)
* Adjust Checkpoint input style

* Remove right align and fix input area

* Allow popup to overflow to max element
2024-08-30 10:17:43 -07:00
layerdiffusion
5a1c711e80 add info 2024-08-30 10:04:04 -07:00
layerdiffusion
f04666b19b Attempt #1575 2024-08-30 09:41:36 -07:00
DenOfEquity
1e0e861b0d Merge pull request #1604 from DenOfEquity/smol-sampler-fix
Update sampling.py
2024-08-30 14:49:08 +01:00
DenOfEquity
b57056b056 Update sampling.py
shuffle lines so DPM++2M SDE and DPM++3M SDE work with steps == 1
2024-08-30 14:42:34 +01:00
layerdiffusion
4c9380c46a Speed up quant model loading and inference ...
... based on 3 evidences:
1. torch.Tensor.view on one big tensor is slightly faster than calling torch.Tensor.to on multiple small tensors.
2. but torch.Tensor.to with dtype change is significantly slower than torch.Tensor.view
3. “baking” model on GPU is significantly faster than computing on CPU when model load.

mainly influence inference of Q8_0, Q4_0/1/K and loading of all quants
2024-08-30 00:49:05 -07:00
layerdiffusion
3d62fa9598 reduce prints 2024-08-29 20:17:32 -07:00
layerdiffusion
c239200705 fix 2024-08-29 19:18:40 -07:00
layerdiffusion
95e16f7204 maintain loading related
1. revise model moving orders
2. less verbose printing
3. some misc minor speedups
4. some bnb related maintain
2024-08-29 19:05:48 -07:00
Panchovix
c70fb38b0a Merge pull request #1581 from altoiddealer/update_readme_api
Update README.md
2024-08-29 20:09:54 -04:00
DenOfEquity
32cb4a1e62 Merge pull request #1579 from DenOfEquity/iterative-hrfix-quickbutton
allow repeated use of hrfix quickbutton
2024-08-29 21:53:55 +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
altoiddealer
249446ca58 Update README.md
API is working normally after recent commits.

Flux usage is limited by inability to set Text Encoders.
2024-08-29 11:00:29 -04:00
DenOfEquity
2b14bcbc6e allow repeated use of hrfix quickbutton
as discussed in #1535
2024-08-29 13:41:32 +01:00
DenOfEquity
948e91458a Merge pull request #1570 from DenOfEquity/latentmodifier
fix issue 258 (latent modifier built-in extension)
2024-08-29 00:54:04 +01:00
DenOfEquity
ea6d03bde1 fix #258
fix longstanding bug with Dyn Cfg Augmentation and batch >= 2 (#258)
2024-08-29 00:45:52 +01:00
layerdiffusion
d339600181 fix 2024-08-28 09:56:18 -07:00