Commit Graph

8493 Commits

Author SHA1 Message Date
Melyns
b20cb4bf0e temp fix for preprocessor_revision.py (#1860)
fix for #1420. Skip noise augmentation if model doesn't provide the method; allows Revision controlnet preprocessors to function.
2024-09-19 01:09:51 +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
cd244d29d7 add UI defaults for HiRes CFG (#1849) 2024-09-17 18:07:43 +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
Haoming
210af4f804 [Space] Add the ability to reinstall requirements specifically (#1783)
* reinstall

* force_download=False
2024-09-14 12:54:52 +01:00
Conor Nash
8bd7e0568f Get Flux working on Apple Silicon (#1264)
Co-authored-by: Conor Nash <conor@nbs.consulting>
2024-09-13 15:40:11 +01:00
DenOfEquity
cb412b290b CFG and Distilled CFG for hiresfix (#1810) 2024-09-13 15:01:40 +01:00
DenOfEquity
e55cde9b33 better (not 100%) generate forever
Now doesn't spam clicks, so cancel will stop.
So works correctly when swapping tabs within webui.
But still won't continue generating if switch browser tab or minimise browser. It's like the click doesn't get processed. Possibly related to notification sound not playing if tab not active.
2024-09-12 10:58:59 +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
Panchovix
c13b26ba27 Rephrase low GPU warning (#1761)
Make emphasis that it's performance degradation, and for this diffusion process.
2024-09-09 14:30:22 -03:00
layerdiffusion
efe6fed499 add a way to exchange variables between modules 2024-09-08 20:22:04 -07:00
layerdiffusion
85f08eacc4 update quicklist 2024-09-08 18:51:38 -07:00
layerdiffusion
9439319007 better way to load google files 2024-09-08 18:03:14 -07:00
layerdiffusion
f40930c55b fix 2024-09-08 17:24:53 -07:00
DenOfEquity
c2c3decab2 SelfAttentionGuidance updates (#1725)
* SAG updates

* restore settings from infotext
* bypass if model is Flux (would error during generation)
* bypass if CFG == 1 (would error during generation)
* add control of blur mask threshold (previously hardcoded)
* change to InputAccordion

* forge_sag.py: update title
2024-09-08 21:09:55 +01: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
44eb4ea837 Support T5&Clip Text Encoder LoRA from OneTrainer
requested by #1727
and some cleanups/licenses
PS: LoRA request must give download URL to at least one LoRA
2024-09-08 01:39:29 -07:00
layerdiffusion
c3366a7689 exclude torch jit objects from space memory management
todo: fix a bug that torch jit module offload does not work on some versions
2024-09-07 19:08:17 -07:00
layerdiffusion
3fbb8ebe30 Remove unnecessary base64 coding 2024-09-07 16:53:59 -07:00
DenOfEquity
ecb396e03f fix img2img aspect ratio preview (#1740)
* Update aspectRatioOverlay.js

fix finding the right element to draw the box on
add drawing box based on changes to number control, just not slider

* Update style.css

add margin equal to border, to draw the AR box in better position
2024-09-07 22:14:15 +01:00
layerdiffusion
ae9380bde2 update 2024-09-07 05:06:17 -07:00
layerdiffusion
f527b64ead update google blockly version 2024-09-07 02:07:11 -07:00
layerdiffusion
ed3dee7cba Add to readme about new sampler Flux Realistic 2024-09-07 01:57:27 -07:00
layerdiffusion
70db164318 revise space 2024-09-07 01:55:28 -07: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
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