WebUI/modules
Louis Del Valle c8732dfa6f
Update sub_quadratic_attention.py
1. Determine the number of query chunks.
2. Calculate the final shape of the res tensor.
3. Initialize the tensor with the calculated shape and dtype, (same dtype as the input tensors, usually)

Can initialize the tensor as a zero-filled tensor with the correct shape and dtype, then compute the attention scores for each query chunk and fill the corresponding slice of tensor.
2023-05-10 22:05:18 -05:00
..
api manual fixes for some C408 2023-05-10 11:55:09 +03:00
codeformer suggestions and fixes from the PR 2023-05-10 21:21:32 +03:00
hypernetworks suggestions and fixes from the PR 2023-05-10 21:21:32 +03:00
models/diffusion suggestions and fixes from the PR 2023-05-10 21:21:32 +03:00
textual_inversion suggestions and fixes from the PR 2023-05-10 21:21:32 +03:00
call_queue.py Fix up string formatting/concatenation to f-strings where feasible 2023-05-09 22:25:39 +03:00
cmd_args.py F401 fixes for ruff 2023-05-10 09:02:23 +03:00
codeformer_model.py fixes for B007 2023-05-10 11:37:18 +03:00
config_states.py ruff auto fixes 2023-05-10 11:05:02 +03:00
deepbooru_model.py Add option for float32 sampling with float16 UNet 2023-01-25 01:13:02 -05:00
deepbooru.py ruff auto fixes 2023-05-10 11:05:02 +03:00
devices.py ruff auto fixes 2023-05-10 11:05:02 +03:00
errors.py better support for xformers flash attention on older versions of torch 2023-01-23 16:40:20 +03:00
esrgan_model_arch.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
esrgan_model.py fixes for B007 2023-05-10 11:37:18 +03:00
extensions.py F401 fixes for ruff 2023-05-10 09:02:23 +03:00
extra_networks_hypernet.py manual fixes for ruff 2023-05-10 08:25:25 +03:00
extra_networks.py fixes for B007 2023-05-10 11:37:18 +03:00
extras.py autofixes from ruff 2023-05-10 07:52:45 +03:00
face_restoration.py codeformer support 2022-09-07 12:32:28 +03:00
generation_parameters_copypaste.py fixes for B007 2023-05-10 11:37:18 +03:00
gfpgan_model.py F401 fixes for ruff 2023-05-10 09:02:23 +03:00
hashes.py Fix up string formatting/concatenation to f-strings where feasible 2023-05-09 22:25:39 +03:00
images.py fixes for B007 2023-05-10 11:37:18 +03:00
img2img.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
import_hook.py add a comment for disable xformers hack 2022-12-24 07:57:56 +03:00
interrogate.py fixes for B007 2023-05-10 11:37:18 +03:00
localization.py add ability to create extensions that add localizations 2022-11-06 09:02:35 +03:00
lowvram.py Add support for the Variations models (unclip-h and unclip-l) 2023-03-25 21:03:07 -04:00
mac_specific.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
masking.py Fix non-square full resolution inpainting. 2022-10-30 15:33:02 -07:00
memmon.py attempt to fix memory monitor with multiple CUDA devices 2023-03-12 21:04:17 +03:00
modelloader.py add UI to edit defaults 2023-05-10 23:41:08 +03:00
ngrok.py Fix up string formatting/concatenation to f-strings where feasible 2023-05-09 22:25:39 +03:00
paths_internal.py Save/restore working webui/extension configs 2023-03-29 16:55:33 -05:00
paths.py F401 fixes for ruff 2023-05-10 09:02:23 +03:00
postprocessing.py Merge branch 'dev' into master 2023-04-29 17:02:14 +03:00
processing.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
progress.py Fix up string formatting/concatenation to f-strings where feasible 2023-05-09 22:25:39 +03:00
prompt_parser.py fixes for B007 2023-05-10 11:37:18 +03:00
realesrgan_model.py F401 fixes for ruff 2023-05-10 09:02:23 +03:00
safe.py fixes for B007 2023-05-10 11:37:18 +03:00
script_callbacks.py remove unwanted changes from #8789 2023-04-29 19:05:43 +03:00
script_loading.py F401 fixes for ruff 2023-05-10 09:02:23 +03:00
scripts_auto_postprocessing.py ruff auto fixes 2023-05-10 11:05:02 +03:00
scripts_postprocessing.py suggestions and fixes from the PR 2023-05-10 21:21:32 +03:00
scripts.py fixes for B007 2023-05-10 11:37:18 +03:00
sd_disable_initialization.py autofixes from ruff 2023-05-10 07:52:45 +03:00
sd_hijack_checkpoint.py add option to show/hide warnings 2023-01-18 23:04:24 +03:00
sd_hijack_clip_old.py Fix up string formatting/concatenation to f-strings where feasible 2023-05-09 22:25:39 +03:00
sd_hijack_clip.py suggestions and fixes from the PR 2023-05-10 21:21:32 +03:00
sd_hijack_inpainting.py manual fixes for some C408 2023-05-10 11:55:09 +03:00
sd_hijack_ip2p.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
sd_hijack_open_clip.py Add support Stable Diffusion 2.0 2022-11-26 16:10:46 +03:00
sd_hijack_optimizations.py ruff auto fixes 2023-05-10 11:05:02 +03:00
sd_hijack_unet.py Fix up string formatting/concatenation to f-strings where feasible 2023-05-09 22:25:39 +03:00
sd_hijack_utils.py Fix full previews, --no-half-vae 2023-01-26 01:43:35 -05:00
sd_hijack_xlmr.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
sd_hijack.py ruff auto fixes 2023-05-10 11:05:02 +03:00
sd_models_config.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
sd_models.py F401 fixes for ruff 2023-05-10 09:02:23 +03:00
sd_samplers_common.py rename CPU RNG to RNG source in settings, add infotext and parameters copypaste support to RNG source 2023-04-29 11:29:37 +03:00
sd_samplers_compvis.py ruff manual fixes 2023-05-10 11:19:16 +03:00
sd_samplers_kdiffusion.py ruff auto fixes 2023-05-10 11:05:02 +03:00
sd_samplers.py F401 fixes for ruff 2023-05-10 09:02:23 +03:00
sd_vae_approx.py modules/sd_vae_approx.py: fix VAE-approx path 2023-03-11 20:00:12 +08:00
sd_vae.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
shared_items.py remove unneeded return from #7583 2023-02-19 12:23:40 +03:00
shared.py suggestions and fixes from the PR 2023-05-10 21:21:32 +03:00
styles.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
sub_quadratic_attention.py Update sub_quadratic_attention.py 2023-05-10 22:05:18 -05:00
timer.py display correct timings after restarting UI 2023-03-12 21:25:22 +03:00
txt2img.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
ui_common.py bump gradio to 3.27 2023-04-29 09:17:35 +03:00
ui_components.py Allow user input for gradio theme selection 2023-04-29 12:52:09 +03:00
ui_extensions.py autofixes from ruff 2023-05-10 07:52:45 +03:00
ui_extra_networks_checkpoints.py save previews for extra networks in the selected format 2023-03-11 15:46:20 +03:00
ui_extra_networks_hypernets.py save previews for extra networks in the selected format 2023-03-11 15:46:20 +03:00
ui_extra_networks_textual_inversion.py save previews for extra networks in the selected format 2023-03-11 15:46:20 +03:00
ui_extra_networks.py fixes for B007 2023-05-10 11:37:18 +03:00
ui_loadsave.py add UI to edit defaults 2023-05-10 23:41:08 +03:00
ui_postprocessing.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00
ui_tempdir.py fixes for B007 2023-05-10 11:37:18 +03:00
ui.py add UI to edit defaults 2023-05-10 23:41:08 +03:00
upscaler.py fixes for B007 2023-05-10 11:37:18 +03:00
xlmr.py imports cleanup for ruff 2023-05-10 08:43:42 +03:00