aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.yml21
-rw-r--r--.github/workflows/on_pull_request.yaml43
-rw-r--r--.github/workflows/run_tests.yaml6
-rw-r--r--README.md1
-rw-r--r--extensions-builtin/LDSR/ldsr_model_arch.py13
-rw-r--r--extensions-builtin/LDSR/scripts/ldsr_model.py3
-rw-r--r--extensions-builtin/LDSR/sd_hijack_autoencoder.py28
-rw-r--r--extensions-builtin/LDSR/sd_hijack_ddpm_v1.py66
-rw-r--r--extensions-builtin/Lora/lora.py15
-rw-r--r--extensions-builtin/Lora/scripts/lora_script.py2
-rw-r--r--extensions-builtin/ScuNET/scripts/scunet_model.py16
-rw-r--r--extensions-builtin/ScuNET/scunet_model_arch.py11
-rw-r--r--extensions-builtin/SwinIR/scripts/swinir_model.py7
-rw-r--r--extensions-builtin/SwinIR/swinir_model_arch.py6
-rw-r--r--extensions-builtin/SwinIR/swinir_model_arch_v2.py58
-rw-r--r--html/extra-networks-card.html2
-rw-r--r--html/licenses.html26
-rw-r--r--javascript/extraNetworks.js31
-rw-r--r--javascript/hints.js63
-rw-r--r--javascript/ui_settings_hints.js93
-rw-r--r--launch.py108
-rw-r--r--modules/Roboto-Regular.ttfbin0 -> 305608 bytes
-rw-r--r--modules/api/api.py159
-rw-r--r--modules/api/models.py7
-rw-r--r--modules/cmd_args.py5
-rw-r--r--modules/codeformer/codeformer_arch.py24
-rw-r--r--modules/codeformer/vqgan_arch.py44
-rw-r--r--modules/codeformer_model.py6
-rw-r--r--modules/config_states.py6
-rw-r--r--modules/deepbooru.py3
-rw-r--r--modules/devices.py2
-rw-r--r--modules/esrgan_model.py10
-rw-r--r--modules/esrgan_model_arch.py7
-rw-r--r--modules/extensions.py22
-rw-r--r--modules/extra_networks.py2
-rw-r--r--modules/extra_networks_hypernet.py2
-rw-r--r--modules/extras.py18
-rw-r--r--modules/generation_parameters_copypaste.py12
-rw-r--r--modules/gfpgan_model.py2
-rw-r--r--modules/hypernetworks/hypernetwork.py29
-rw-r--r--modules/hypernetworks/ui.py6
-rw-r--r--modules/images.py29
-rw-r--r--modules/img2img.py8
-rw-r--r--modules/interrogate.py7
-rw-r--r--modules/mac_specific.py5
-rw-r--r--modules/masking.py2
-rw-r--r--modules/modelloader.py9
-rw-r--r--modules/models/diffusion/ddpm_edit.py52
-rw-r--r--modules/models/diffusion/uni_pc/__init__.py2
-rw-r--r--modules/models/diffusion/uni_pc/sampler.py3
-rw-r--r--modules/models/diffusion/uni_pc/uni_pc.py82
-rw-r--r--modules/ngrok.py4
-rw-r--r--modules/paths.py4
-rw-r--r--modules/paths_internal.py12
-rw-r--r--modules/processing.py56
-rw-r--r--modules/progress.py15
-rw-r--r--modules/prompt_parser.py27
-rw-r--r--modules/realesrgan_model.py8
-rw-r--r--modules/safe.py6
-rw-r--r--modules/script_callbacks.py46
-rw-r--r--modules/script_loading.py1
-rw-r--r--modules/scripts.py10
-rw-r--r--modules/scripts_auto_postprocessing.py2
-rw-r--r--modules/scripts_postprocessing.py8
-rw-r--r--modules/sd_disable_initialization.py2
-rw-r--r--modules/sd_hijack.py23
-rw-r--r--modules/sd_hijack_clip.py2
-rw-r--r--modules/sd_hijack_inpainting.py10
-rw-r--r--modules/sd_hijack_ip2p.py7
-rw-r--r--modules/sd_hijack_optimizations.py47
-rw-r--r--modules/sd_hijack_xlmr.py2
-rw-r--r--modules/sd_models.py47
-rw-r--r--modules/sd_models_config.py1
-rw-r--r--modules/sd_samplers.py10
-rw-r--r--modules/sd_samplers_common.py35
-rw-r--r--modules/sd_samplers_compvis.py12
-rw-r--r--modules/sd_samplers_kdiffusion.py50
-rw-r--r--modules/sd_vae.py11
-rw-r--r--modules/sd_vae_taesd.py88
-rw-r--r--modules/shared.py190
-rw-r--r--modules/styles.py9
-rw-r--r--modules/sub_quadratic_attention.py17
-rw-r--r--modules/textual_inversion/autocrop.py208
-rw-r--r--modules/textual_inversion/dataset.py4
-rw-r--r--modules/textual_inversion/image_embedding.py13
-rw-r--r--modules/textual_inversion/learn_schedule.py6
-rw-r--r--modules/textual_inversion/preprocess.py6
-rw-r--r--modules/textual_inversion/textual_inversion.py32
-rw-r--r--modules/txt2img.py9
-rw-r--r--modules/ui.py186
-rw-r--r--modules/ui_extensions.py41
-rw-r--r--modules/ui_extra_networks.py36
-rw-r--r--modules/ui_loadsave.py208
-rw-r--r--modules/ui_postprocessing.py2
-rw-r--r--modules/ui_tempdir.py4
-rw-r--r--modules/upscaler.py8
-rw-r--r--modules/xlmr.py8
-rw-r--r--pyproject.toml32
-rw-r--r--requirements.txt3
-rw-r--r--requirements_versions.txt9
-rw-r--r--scripts/custom_code.py2
-rw-r--r--scripts/img2imgalt.py14
-rw-r--r--scripts/loopback.py8
-rw-r--r--scripts/outpainting_mk_2.py6
-rw-r--r--scripts/poor_mans_outpainting.py6
-rw-r--r--scripts/postprocessing_upscale.py6
-rw-r--r--scripts/prompt_matrix.py9
-rw-r--r--scripts/prompts_from_file.py9
-rw-r--r--scripts/sd_upscale.py10
-rw-r--r--scripts/xyz_grid.py19
-rw-r--r--style.css26
-rw-r--r--test/basic_features/utils_test.py86
-rw-r--r--webui-macos-env.sh2
-rw-r--r--webui.py102
114 files changed, 1823 insertions, 1243 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 7d435297..3a8b9953 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -48,6 +48,15 @@ body:
validations:
required: true
- type: dropdown
+ id: py-version
+ attributes:
+ label: What Python version are you running on ?
+ multiple: false
+ options:
+ - Python 3.10.x
+ - Python 3.11.x (above, no supported yet)
+ - Python 3.9.x (below, no recommended)
+ - type: dropdown
id: platforms
attributes:
label: What platforms do you use to access the UI ?
@@ -60,6 +69,18 @@ body:
- Android
- Other/Cloud
- type: dropdown
+ id: device
+ attributes:
+ label: What device are you running WebUI on?
+ multiple: true
+ options:
+ - Nvidia GPUs (RTX 20 above)
+ - Nvidia GPUs (GTX 16 below)
+ - AMD GPUs (RX 6000 above)
+ - AMD GPUs (RX 5000 below)
+ - CPU
+ - Other GPUs
+ - type: dropdown
id: browsers
attributes:
label: What browsers do you use to access the UI ?
diff --git a/.github/workflows/on_pull_request.yaml b/.github/workflows/on_pull_request.yaml
index a168be5b..d42965b1 100644
--- a/.github/workflows/on_pull_request.yaml
+++ b/.github/workflows/on_pull_request.yaml
@@ -18,22 +18,29 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v3
- - name: Set up Python 3.10
- uses: actions/setup-python@v4
+ - uses: actions/setup-python@v4
with:
- python-version: 3.10.6
- cache: pip
- cache-dependency-path: |
- **/requirements*txt
- - name: Install PyLint
- run: |
- python -m pip install --upgrade pip
- pip install pylint
- # This lets PyLint check to see if it can resolve imports
- - name: Install dependencies
- run: |
- export COMMANDLINE_ARGS="--skip-torch-cuda-test --exit"
- python launch.py
- - name: Analysing the code with pylint
- run: |
- pylint $(git ls-files '*.py')
+ python-version: 3.11
+ # NB: there's no cache: pip here since we're not installing anything
+ # from the requirements.txt file(s) in the repository; it's faster
+ # not to have GHA download an (at the time of writing) 4 GB cache
+ # of PyTorch and other dependencies.
+ - name: Install Ruff
+ run: pip install ruff==0.0.265
+ - name: Run Ruff
+ run: ruff .
+
+# The rest are currently disabled pending fixing of e.g. installing the torch dependency.
+
+# - name: Install PyLint
+# run: |