stable-diffusion-webui/modules
Max Audron 14c0884fd0 use python importlib to load and execute extension modules
previously module attributes like __file__ where not set correctly,
leading to scripts getting the directory of the stable-diffusion repo
location instead of their own script.

This causes problem when loading user data from an external location
using the --data-dir flag, as extensions would look for their own code
in the stable-diffusion repo location instead of the data dir location.

Using pythons importlib functions sets the modules specs correctly and
executes them. But this will break extensions if they build paths based
on the previously incorrect __file__ attribute.
2023-01-27 14:44:34 +01:00
..
api support detecting midas model 2023-01-27 11:54:19 +03:00
codeformer fix F541 f-string without any placeholders 2022-12-24 21:35:29 +02:00
hypernetworks enable compact view for train tab 2023-01-22 00:02:51 +03:00
models/diffusion Add instruct-pix2pix hijack 2023-01-25 08:53:23 -05:00
textual_inversion add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
call_queue.py big rework of progressbar/preview system to allow multiple users to prompts at the same time and do not get previews of each other 2023-01-15 18:51:04 +03:00
codeformer_model.py Set device for facelib/facexlib and gfpgan 2022-11-12 03:34:13 -05:00
deepbooru_model.py Add option for float32 sampling with float16 UNet 2023-01-25 01:13:02 -05:00
deepbooru.py added an option to filter out deepbooru tags 2022-12-24 16:22:47 +03:00
devices.py clarify the option to disable NaN check. 2023-01-27 13:08:00 +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 fix typo in filename for ESRGAN arch 2022-10-09 15:08:27 +03:00
esrgan_model.py Revert "MPS Upscalers Fix" 2022-11-17 00:08:21 -05:00
extensions.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
extra_networks_hypernet.py Lora support! 2023-01-21 16:15:53 +03:00
extra_networks.py extra networks UI 2023-01-21 08:36:07 +03:00
extras.py third time's the charm 2023-01-23 14:50:20 +03:00
face_restoration.py codeformer support 2022-09-07 12:32:28 +03:00
generation_parameters_copypaste.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
gfpgan_model.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
hashes.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
images.py handling sub grids and merging into one 2023-01-24 02:24:32 -05:00
img2img.py bump gradio to 3.16.2 2023-01-18 13:59:45 +03:00
import_hook.py add a comment for disable xformers hack 2022-12-24 07:57:56 +03:00
interrogate.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
localization.py add ability to create extensions that add localizations 2022-11-06 09:02:35 +03:00
lowvram.py unload depth model if medvram/lowvram enabled 2022-12-10 11:02:47 -05:00
masking.py Fix non-square full resolution inpainting. 2022-10-30 15:33:02 -07:00
memmon.py add additional memory states 2022-12-30 19:36:36 -05:00
modelloader.py add more stuff to ignore when creating model from config 2023-01-10 16:51:04 +03:00
ngrok.py Correct singleton comparisons 2022-12-14 20:59:33 +02:00
paths.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
postprocessing.py a possible fix for broken image upscaling 2023-01-23 17:59:58 +03:00
processing.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
progress.py add progress bar to modelmerger 2023-01-19 09:25:37 +03:00
prompt_parser.py add BREAK keyword to end current text chunk and start the next 2023-01-15 22:29:53 +03:00
realesrgan_model.py Fix unable to find Real-ESRGAN model info error (AttributeError: 'NoneType' object has no attribute 'data_path') #6841 #5170 2023-01-17 13:57:55 +03:00
safe.py Merge pull request #5992 from yuvalabou/F541 2022-12-25 09:16:08 +03:00
script_callbacks.py Lora support! 2023-01-21 16:15:53 +03:00
script_loading.py use python importlib to load and execute extension modules 2023-01-27 14:44:34 +01:00
scripts_auto_postprocessing.py add an option to enable sections from extras tab in txt2img/img2img 2023-01-26 23:31:32 +03:00
scripts_postprocessing.py add an option to enable sections from extras tab in txt2img/img2img 2023-01-26 23:31:32 +03:00
scripts.py add an option to enable sections from extras tab in txt2img/img2img 2023-01-26 23:31:32 +03:00
sd_disable_initialization.py fix missing field for aesthetic embedding extension 2023-01-22 08:20:48 +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 CLIP hijack rework 2023-01-07 01:46:13 +03:00
sd_hijack_clip.py add BREAK keyword to end current text chunk and start the next 2023-01-15 22:29:53 +03:00
sd_hijack_inpainting.py remove the need to place configs near models 2023-01-27 11:28:12 +03:00
sd_hijack_ip2p.py Add instruct-pix2pix hijack 2023-01-25 08:53:23 -05:00
sd_hijack_open_clip.py Add support Stable Diffusion 2.0 2022-11-26 16:10:46 +03:00
sd_hijack_optimizations.py Add UI setting for upcasting attention to float32 2023-01-25 01:13:04 -05:00
sd_hijack_unet.py fix for unet hijack breaking the train tab 2023-01-25 20:11:01 +03:00
sd_hijack_utils.py Fix full previews, --no-half-vae 2023-01-26 01:43:35 -05:00
sd_hijack_xlmr.py alt-diffusion integration 2022-12-31 18:06:35 +03:00
sd_hijack.py write a comment for fix_checkpoint function 2023-01-19 20:39:10 +03:00
sd_models_config.py support detecting midas model 2023-01-27 11:54:19 +03:00
sd_models.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
sd_samplers.py fix prompt editing break after first batch in img2img 2023-01-25 23:25:40 +03:00
sd_vae_approx.py Fix Approx NN on devices other than CUDA 2023-01-15 08:13:33 -05:00
sd_vae.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
shared_items.py remove the need to place configs near models 2023-01-27 11:28:12 +03:00
shared.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
styles.py change style dropdowns to multiselect 2023-01-14 14:56:39 +03:00
sub_quadratic_attention.py Add UI setting for upcasting attention to float32 2023-01-25 01:13:04 -05:00
timer.py remove the need to place configs near models 2023-01-27 11:28:12 +03:00
txt2img.py bump gradio to 3.16.2 2023-01-18 13:59:45 +03:00
ui_common.py fix open directory button failing 2023-01-23 15:50:32 +03:00
ui_components.py add an option to enable sections from extras tab in txt2img/img2img 2023-01-26 23:31:32 +03:00
ui_extensions.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
ui_extra_networks_hypernets.py add a slider for default value of added extra networks 2023-01-22 00:02:52 +03:00
ui_extra_networks_textual_inversion.py fix broken textual inversion extras tab 2023-01-22 00:16:26 +03:00
ui_extra_networks.py make clicking extra networks button one more time close the extra networks UI 2023-01-25 19:55:31 +03:00
ui_postprocessing.py rework extras tab to use script system 2023-01-23 09:24:43 +03:00
ui_tempdir.py add support for running with gradio 3.9 installed 2023-01-03 14:18:48 +03:00
ui.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
upscaler.py add data-dir flag and set all user data directories based on it 2023-01-27 14:44:30 +01:00
xlmr.py fix bugs 2022-11-30 14:56:12 +08:00