stable-diffusion-webui/modules
Evgeniy a170e3d222
Python 3.8 typing compatibility
Solves problems with

```Traceback (most recent call last):
  File "webui.py", line 201, in <module>
    webui()
  File "webui.py", line 178, in webui
    create_api(app)
  File "webui.py", line 117, in create_api
    from modules.api.api import Api
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\api.py", line 9, in <module>
    from modules.api.models import *
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 194, in <module>
    class SamplerItem(BaseModel):
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 196, in SamplerItem
    aliases: list[str] = Field(title="Aliases")
TypeError: 'type' object is not subscriptable```

and

```Traceback (most recent call last):
  File "webui.py", line 201, in <module>
    webui()
  File "webui.py", line 178, in webui
    create_api(app)
  File "webui.py", line 117, in create_api
    from modules.api.api import Api
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\api.py", line 9, in <module>
    from modules.api.models import *
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 194, in <module>
    class SamplerItem(BaseModel):
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 197, in SamplerItem
    options: dict[str, str] = Field(title="Options")
TypeError: 'type' object is not subscriptable```
2022-11-05 17:06:56 +03:00
..
api Python 3.8 typing compatibility 2022-11-05 17:06:56 +03:00
codeformer
hypernetworks Merge pull request #4273 from Omegastick/ordered_hypernetworks 2022-11-05 16:16:18 +03:00
textual_inversion Fixed minor bug 2022-10-31 10:07:12 -04:00
artists.py
codeformer_model.py
deepbooru.py fix part2 2022-10-22 19:27:16 +03:00
devices.py MPS Upscalers Fix 2022-10-25 09:42:53 +03:00
errors.py
esrgan_model_arch.py fix typo in filename for ESRGAN arch 2022-10-09 15:08:27 +03:00
esrgan_model.py add resrgan 8x, allow use 1x and up to 8x extra models, move BSRGAN model, add nearest 2022-10-30 12:54:06 +01:00
extensions.py do not die when an extension's repo has no remote 2022-11-05 15:04:48 +03:00
extras.py extras - skip unnecessary second hash of image 2022-11-02 21:37:43 -05:00
face_restoration.py
generation_parameters_copypaste.py add initial version of the extensions tab 2022-10-31 17:37:02 +03:00
gfpgan_model.py
images.py Add PNG info to pngs only if option is enabled. 2022-10-31 17:29:04 -07:00
img2img.py Merge branch 'AUTOMATIC1111:master' into master 2022-11-02 14:09:33 +08:00
interrogate.py Added "--clip-models-path" switch to avoid using default "~/.cache/clip" and enable to run under unprivileged user without homedir 2022-10-31 00:14:07 +03:00
ldsr_model_arch.py
ldsr_model.py Removed duplicate definition model_path 2022-10-09 12:46:07 +03:00
localization.py localization support 2022-10-17 21:15:32 +03:00
lowvram.py Unload sd_model before loading the other 2022-11-01 04:01:49 -03:00
masking.py Fix non-square full resolution inpainting. 2022-10-30 15:33:02 -07:00
memmon.py
modelloader.py add resrgan 8x, allow use 1x and up to 8x extra models, move BSRGAN model, add nearest 2022-10-30 12:54:06 +01:00
ngrok.py Allow specifying the region of ngrok. 2022-10-16 09:56:33 +03:00
paths.py added guard for torch.load to prevent loading pickles with unknown content 2022-10-09 17:58:43 +03:00
processing.py change process_one virtual function for script to process_batch, add extra args and docs 2022-11-04 11:21:40 +03:00
prompt_parser.py Fix typo in prompt_parser.py 2022-10-19 11:52:12 +03:00
realesrgan_model.py Removed duplicate definition model_path 2022-10-09 12:46:07 +03:00
safe.py make launch.py run installers for extensions that have ones 2022-11-01 14:20:15 +03:00
safety.py
script_callbacks.py remove private underscore indicator 2022-11-04 16:02:25 +00:00
scripts.py change process_one virtual function for script to process_batch, add extra args and docs 2022-11-04 11:21:40 +03:00
scunet_model_arch.py chore: Fix typos 2022-10-08 22:42:30 +03:00
scunet_model.py MPS Upscalers Fix 2022-10-25 09:42:53 +03:00
sd_hijack_inpainting.py updated readme and some small stylistic changes to code 2022-10-21 09:00:39 +03:00
sd_hijack_optimizations.py Remove wrong self reference in CUDA support for invokeai 2022-10-19 09:35:53 +03:00
sd_hijack.py Unload sd_model before loading the other 2022-11-01 04:01:49 -03:00
sd_models.py fix one of previous merges breaking the program 2022-11-04 11:20:42 +03:00
sd_samplers.py do not unnecessarily run VAE one more time when saving intermediate image with hires fix 2022-11-02 12:45:03 +03:00
sd_vae.py Save VAE provided by cmd_opts.vae_path 2022-11-02 14:37:22 +07:00
shared.py Merge branch 'master' into feat/allow-origins 2022-11-05 16:20:40 +03:00
styles.py styles.csv encoding utf8 to utf-8-sig 2022-10-18 15:18:51 +03:00
swinir_model_arch_v2.py Add files via upload 2022-10-10 19:54:57 +03:00
swinir_model_arch.py chore: Fix typos 2022-10-08 22:42:30 +03:00
swinir_model.py MPS Upscalers Fix 2022-10-25 09:42:53 +03:00
txt2img.py Release processing resources after it finishes 2022-11-01 21:56:47 -03:00
ui_extensions.py Open extensions links in new tab 2022-11-04 12:14:32 -06:00
ui.py Fix errors from commit f2b697 with --hide-ui-dir-config 2022-11-05 04:24:42 +09:00
upscaler.py fix upscale loop erroneously applied multiple times 2022-11-04 22:56:18 +03:00