Package Details: stable-diffusion-web-ui-git v1.6.0.r2.4afaaf8a-1

Git Clone URL: https://aur.archlinux.org/stable-diffusion-web-ui-git.git (read-only, click to copy)
Package Base: stable-diffusion-web-ui-git
Description: Stable Diffusion Web UI (AUTOMATIC1111)
Upstream URL: https://github.com/AUTOMATIC1111/stable-diffusion-webui
Keywords: ai, img2img, stable-diffusion, txt2img,
Licenses: AGPL3
Provides: stable-diffusion-ui
Submitter: bhill
Maintainer: bhill
Last Packager: bhill
Votes: 6
Popularity: 0.81
First Submitted: 2023-11-21 08:41 (UTC)
Last Updated: 2023-11-21 08:41 (UTC)

Required by (0)

Sources (1)

Pinned Comments

bhill commented on 2023-11-21 09:06 (UTC)

Make sure to consider your hardware before installing AI programs: They're very resource intense and require capable hardware just to run.

For example: If your intended device has less than 6 GB of VRAM, I would advise against installing this. Everything would download and the UI would boot, but once you try to generate an image, you'll receive an error saying there's not enough VRAM to generate images.

Latest Comments

1 2 Next › Last »

dreieck commented on 2024-03-26 11:48 (UTC)

You need to chhange the license identifier to be SPDX compliant (e.g. AGPL-3.0-or-later), and consider adding some optional dependencies or hard dependencies:

stable-diffusion-web-ui-git E: AGPL3 is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.
stable-diffusion-web-ui-git E: Dependency perl detected and not included (programs ['perl'] needed in scripts ['opt/stable-diffusion-web-ui/.git/hooks/fsmonitor-watchman.sample'])
stable-diffusion-web-ui-git E: Dependency python-transformers detected and not included (python modules ['transformers.XLMRobertaModel', 'transformers.CLIPModel', 'transformers.models.xlm_roberta.configuration_xlm_roberta.XLMRobertaConfig', 'transformers.logging', 'transformers.BertConfig', 'transformers.XLMRobertaTokenizer', 'transformers.utils.hub', 'transformers.BertPreTrainedModel'] needed in files ['opt/stable-diffusion-web-ui/modules/xlmr_m18.py', 'opt/stable-diffusion-web-ui/modules/xlmr.py', 'opt/stable-diffusion-web-ui/modules/sd_models.py', 'opt/stable-diffusion-web-ui/modules/sd_disable_initialization.py'])
stable-diffusion-web-ui-git E: Dependency python-anyio detected and not included (python modules ['anyio'] needed in files ['opt/stable-diffusion-web-ui/modules/api/api.py'])
stable-diffusion-web-ui-git E: Dependency python-pytz detected and not included (python modules ['pytz'] needed in files ['opt/stable-diffusion-web-ui/modules/images.py'])
stable-diffusion-web-ui-git E: Dependency multibootusb detected and not included (python modules ['scripts.hypertile_xyz.add_axis_options'] needed in files ['opt/stable-diffusion-web-ui/extensions-builtin/hypertile/scripts/hypertile_script.py'])
stable-diffusion-web-ui-git E: Dependency python-numpy detected and not included (python modules ['numpy'] needed in files ['opt/stable-diffusion-web-ui/modules/images.py', 'opt/stable-diffusion-web-ui/modules/safe.py', 'opt/stable-diffusion-web-ui/modules/img2img.py', 'opt/stable-diffusion-web-ui/scripts/postprocessing_upscale.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_common.py', 'opt/stable-diffusion-web-ui/modules/sd_models.py', 'opt/stable-diffusion-web-ui/scripts/outpainting_mk_2.py', 'opt/stable-diffusion-web-ui/modules/face_restoration_utils.py', 'opt/stable-diffusion-web-ui/modules/upscaler_utils.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/sd_hijack_ddpm_v1.py', 'opt/stable-diffusion-web-ui/modules/rng_philox.py', 'opt/stable-diffusion-web-ui/scripts/img2imgalt.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_timesteps_impl.py', 'opt/stable-diffusion-web-ui/extensions-builtin/soft-inpainting/scripts/soft_inpainting.py', 'opt/stable-diffusion-web-ui/scripts/xyz_grid.py', 'opt/stable-diffusion-web-ui/modules/ui.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/autocrop.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/image_embedding.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/dataset.py', 'opt/stable-diffusion-web-ui/modules/deepbooru.py', 'opt/stable-diffusion-web-ui/modules/processing.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/vqvae_quantize.py', 'opt/stable-diffusion-web-ui/scripts/postprocessing_codeformer.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/ldsr_model_arch.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/sd_hijack_autoencoder.py', 'opt/stable-diffusion-web-ui/test/test_face_restorers.py', 'opt/stable-diffusion-web-ui/scripts/postprocessing_gfpgan.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/textual_inversion.py', 'opt/stable-diffusion-web-ui/modules/models/diffusion/ddpm_edit.py'])
stable-diffusion-web-ui-git E: Dependency python-psutil detected and not included (python modules ['psutil'] needed in files ['opt/stable-diffusion-web-ui/modules/api/api.py', 'opt/stable-diffusion-web-ui/modules/sysinfo.py', 'opt/stable-diffusion-web-ui/modules/sd_hijack_optimizations.py'])
stable-diffusion-web-ui-git E: Dependency python-fastapi detected and not included (python modules ['fastapi.security.HTTPBasic', 'fastapi.encoders.jsonable_encoder', 'fastapi.Depends', 'fastapi.staticfiles', 'fastapi.FastAPI', 'fastapi.Response', 'fastapi.security.HTTPBasicCredentials', 'fastapi.exceptions.HTTPException', 'fastapi.responses.JSONResponse', 'fastapi.responses.PlainTextResponse', 'fastapi.APIRouter', 'fastapi.Request'] needed in files ['opt/stable-diffusion-web-ui/modules/api/api.py', 'opt/stable-diffusion-web-ui/extensions-builtin/Lora/scripts/lora_script.py', 'opt/stable-diffusion-web-ui/webui.py', 'opt/stable-diffusion-web-ui/modules/ui_extra_networks.py', 'opt/stable-diffusion-web-ui/modules/script_callbacks.py', 'opt/stable-diffusion-web-ui/modules/ui.py'])
stable-diffusion-web-ui-git E: Dependency python-pillow detected and not included (python modules ['PIL.ImageFont', 'PIL.UnidentifiedImageError', 'PIL.ImageFilter', 'PIL.ImageColor', 'PIL.PngImagePlugin', 'PIL', 'PIL.ImageDraw', 'PIL.Image', 'PIL.ImageOps', 'PIL.ImageEnhance'] needed in files ['opt/stable-diffusion-web-ui/modules/images.py', 'opt/stable-diffusion-web-ui/modules/masking.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_common.py', 'opt/stable-diffusion-web-ui/scripts/outpainting_mk_2.py', 'opt/stable-diffusion-web-ui/modules/api/api.py', 'opt/stable-diffusion-web-ui/modules/upscaler_utils.py', 'opt/stable-diffusion-web-ui/scripts/processing_autosized_crop.py', 'opt/stable-diffusion-web-ui/modules/ui_tempdir.py', 'opt/stable-diffusion-web-ui/scripts/xyz_grid.py', 'opt/stable-diffusion-web-ui/scripts/sd_upscale.py', 'opt/stable-diffusion-web-ui/modules/ui.py', 'opt/stable-diffusion-web-ui/scripts/poor_mans_outpainting.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/autocrop.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/image_embedding.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/dataset.py', 'opt/stable-diffusion-web-ui/modules/upscaler.py', 'opt/stable-diffusion-web-ui/scripts/postprocessing_codeformer.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/ldsr_model_arch.py', 'opt/stable-diffusion-web-ui/scripts/postprocessing_gfpgan.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/textual_inversion.py', 'opt/stable-diffusion-web-ui/extensions-builtin/SwinIR/scripts/swinir_model.py', 'opt/stable-diffusion-web-ui/modules/img2img.py', 'opt/stable-diffusion-web-ui/scripts/postprocessing_upscale.py', 'opt/stable-diffusion-web-ui/extensions-builtin/soft-inpainting/scripts/soft_inpainting.py', 'opt/stable-diffusion-web-ui/extensions-builtin/ScuNET/scripts/scunet_model.py', 'opt/stable-diffusion-web-ui/scripts/postprocessing_create_flipped_copies.py', 'opt/stable-diffusion-web-ui/modules/infotext_utils.py', 'opt/stable-diffusion-web-ui/modules/processing.py', 'opt/stable-diffusion-web-ui/modules/txt2img.py', 'opt/stable-diffusion-web-ui/test/test_face_restorers.py', 'opt/stable-diffusion-web-ui/modules/postprocessing.py'])
stable-diffusion-web-ui-git E: Dependency python-starlette detected and not included (python modules ['starlette.responses.FileResponse', 'starlette.middleware.cors.CORSMiddleware', 'starlette', 'starlette.responses.JSONResponse', 'starlette.middleware.gzip.GZipMiddleware'] needed in files ['opt/stable-diffusion-web-ui/modules/api/api.py', 'opt/stable-diffusion-web-ui/modules/initialize_util.py', 'opt/stable-diffusion-web-ui/modules/ui_extra_networks.py'])
stable-diffusion-web-ui-git E: Dependency python-tqdm detected and not included (python modules ['tqdm.tqdm', 'tqdm.trange', 'tqdm'] needed in files ['opt/stable-diffusion-web-ui/modules/sd_samplers_extra.py', 'opt/stable-diffusion-web-ui/modules/hypernetworks/hypernetwork.py', 'opt/stable-diffusion-web-ui/modules/extras.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/dataset.py', 'opt/stable-diffusion-web-ui/modules/models/diffusion/uni_pc/uni_pc.py', 'opt/stable-diffusion-web-ui/modules/config_states.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/learn_schedule.py', 'opt/stable-diffusion-web-ui/modules/upscaler_utils.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/sd_hijack_ddpm_v1.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_timesteps_impl.py', 'opt/stable-diffusion-web-ui/scripts/img2imgalt.py', 'opt/stable-diffusion-web-ui/modules/logging_config.py', 'opt/stable-diffusion-web-ui/modules/shared_total_tqdm.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/textual_inversion.py', 'opt/stable-diffusion-web-ui/modules/models/diffusion/ddpm_edit.py'])
stable-diffusion-web-ui-git E: Dependency python-packaging detected and not included (python modules ['packaging.version'] needed in files ['opt/stable-diffusion-web-ui/modules/mac_specific.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/sd_hijack_autoencoder.py', 'opt/stable-diffusion-web-ui/modules/launch_utils.py', 'opt/stable-diffusion-web-ui/modules/infotext_versions.py', 'opt/stable-diffusion-web-ui/modules/sd_hijack_unet.py', 'opt/stable-diffusion-web-ui/modules/errors.py'])
stable-diffusion-web-ui-git E: Dependency python-safetensors detected and not included (python modules ['safetensors.torch'] needed in files ['opt/stable-diffusion-web-ui/extensions-builtin/LDSR/ldsr_model_arch.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/textual_inversion.py', 'opt/stable-diffusion-web-ui/modules/sd_models.py', 'opt/stable-diffusion-web-ui/modules/extras.py'])
stable-diffusion-web-ui-git E: Dependency uvicorn detected and not included (python modules ['uvicorn'] needed in files ['opt/stable-diffusion-web-ui/modules/api/api.py'])
stable-diffusion-web-ui-git E: Dependency python-pytorch-opt-rocm detected and not included (python modules ['torch.utils.collect_env', 'torch.utils.data.Dataset', 'torch.utils.data.DataLoader', 'torch.Tensor', 'torch.nn.init.normal_', 'torch.nn.functional.silu', 'torch.utils.data.Sampler', 'torch.utils.tensorboard.SummaryWriter', 'torch.nn.init.kaiming_normal_', 'torch.nn.init.xavier_uniform_', 'torch.nn.functional', 'torch.hub.download_url_to_file', 'torch.nn', 'torch.nn.init.kaiming_uniform_', 'torch.mps.empty_cache', 'torch.optim.lr_scheduler.LambdaLR', 'torch.utils.checkpoint.checkpoint', 'torch.nn.init.xavier_normal_', 'torch', 'torch.einsum', 'torch.hub', 'torch.nn.init.zeros_'] needed in files ['opt/stable-diffusion-web-ui/modules/lowvram.py', 'opt/stable-diffusion-web-ui/modules/rng.py', 'opt/stable-diffusion-web-ui/modules/sd_models.py', 'opt/stable-diffusion-web-ui/modules/sd_models_config.py', 'opt/stable-diffusion-web-ui/modules/models/diffusion/uni_pc/sampler.py', 'opt/stable-diffusion-web-ui/modules/upscaler_utils.py', 'opt/stable-diffusion-web-ui/scripts/img2imgalt.py', 'opt/stable-diffusion-web-ui/test/test_torch_utils.py', 'opt/stable-diffusion-web-ui/modules/extras.py', 'opt/stable-diffusion-web-ui/extensions-builtin/Lora/networks.py', 'opt/stable-diffusion-web-ui/modules/models/diffusion/uni_pc/uni_pc.py', 'opt/stable-diffusion-web-ui/modules/sd_models_xl.py', 'opt/stable-diffusion-web-ui/modules/modelloader.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_lcm.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/textual_inversion.py', 'opt/stable-diffusion-web-ui/modules/safe.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_kdiffusion.py', 'opt/stable-diffusion-web-ui/modules/xlmr_m18.py', 'opt/stable-diffusion-web-ui/modules/sd_hijack.py', 'opt/stable-diffusion-web-ui/modules/face_restoration_utils.py', 'opt/stable-diffusion-web-ui/modules/sd_disable_initialization.py', 'opt/stable-diffusion-web-ui/extensions-builtin/soft-inpainting/scripts/soft_inpainting.py', 'opt/stable-diffusion-web-ui/modules/deepbooru_model.py', 'opt/stable-diffusion-web-ui/modules/errors.py', 'opt/stable-diffusion-web-ui/modules/mac_specific.py', 'opt/stable-diffusion-web-ui/extensions-builtin/Lora/network_oft.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/vqvae_quantize.py', 'opt/stable-diffusion-web-ui/modules/sd_hijack_open_clip.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_cfg_denoiser.py', 'opt/stable-diffusion-web-ui/modules/initialize_util.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/sd_hijack_autoencoder.py', 'opt/stable-diffusion-web-ui/modules/sd_hijack_unet.py', 'opt/stable-diffusion-web-ui/modules/sd_unet.py', 'opt/stable-diffusion-web-ui/modules/gfpgan_model.py', 'opt/stable-diffusion-web-ui/modules/models/diffusion/ddpm_edit.py', 'opt/stable-diffusion-web-ui/modules/sysinfo.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_common.py', 'opt/stable-diffusion-web-ui/modules/api/api.py', 'opt/stable-diffusion-web-ui/extensions-builtin/Lora/lora_patches.py', 'opt/stable-diffusion-web-ui/modules/initialize.py', 'opt/stable-diffusion-web-ui/modules/sd_vae_taesd.py', 'opt/stable-diffusion-web-ui/modules/ui.py', 'opt/stable-diffusion-web-ui/modules/hypernetworks/hypernetwork.py', 'opt/stable-diffusion-web-ui/modules/devices.py', 'opt/stable-diffusion-web-ui/modules/sd_hijack_checkpoint.py', 'opt/stable-diffusion-web-ui/modules/sd_hijack_xlmr.py', 'opt/stable-diffusion-web-ui/modules/sub_quadratic_attention.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/dataset.py', 'opt/stable-diffusion-web-ui/modules/torch_utils.py', 'opt/stable-diffusion-web-ui/extensions-builtin/Lora/lyco_helpers.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/image_embedding.py', 'opt/stable-diffusion-web-ui/modules/prompt_parser.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/ldsr_model_arch.py', 'opt/stable-diffusion-web-ui/modules/npu_specific.py', 'opt/stable-diffusion-web-ui/modules/interrogate.py', 'opt/stable-diffusion-web-ui/modules/xpu_specific.py', 'opt/stable-diffusion-web-ui/modules/sd_vae_approx.py', 'opt/stable-diffusion-web-ui/extensions-builtin/Lora/network.py', 'opt/stable-diffusion-web-ui/modules/shared_init.py', 'opt/stable-diffusion-web-ui/extensions-builtin/SwinIR/scripts/swinir_model.py', 'opt/stable-diffusion-web-ui/extensions-builtin/Lora/network_lora.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/sd_hijack_ddpm_v1.py', 'opt/stable-diffusion-web-ui/extensions-builtin/Lora/network_lokr.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_timesteps_impl.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_timesteps.py', 'opt/stable-diffusion-web-ui/modules/sd_hijack_clip.py', 'opt/stable-diffusion-web-ui/modules/sd_emphasis.py', 'opt/stable-diffusion-web-ui/modules/deepbooru.py', 'opt/stable-diffusion-web-ui/extensions-builtin/hypertile/hypertile.py', 'opt/stable-diffusion-web-ui/modules/processing.py', 'opt/stable-diffusion-web-ui/modules/codeformer_model.py', 'opt/stable-diffusion-web-ui/modules/memmon.py', 'opt/stable-diffusion-web-ui/modules/sd_hijack_optimizations.py', 'opt/stable-diffusion-web-ui/modules/xlmr.py', 'opt/stable-diffusion-web-ui/modules/sd_samplers_extra.py'])
stable-diffusion-web-ui-git E: Dependency python-torchvision-rocm detected and not included (python modules ['torchvision.transforms.functional', 'torchvision', 'torchvision.transforms.functional_tensor', 'torchvision.transforms.functional.normalize', 'torchvision.transforms', 'torchvision.transforms.functional.InterpolationMode', 'torchvision.utils.make_grid'] needed in files ['opt/stable-diffusion-web-ui/extensions-builtin/LDSR/ldsr_model_arch.py', 'opt/stable-diffusion-web-ui/modules/interrogate.py', 'opt/stable-diffusion-web-ui/extensions-builtin/LDSR/sd_hijack_ddpm_v1.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/dataset.py', 'opt/stable-diffusion-web-ui/modules/import_hook.py', 'opt/stable-diffusion-web-ui/modules/face_restoration_utils.py', 'opt/stable-diffusion-web-ui/modules/models/diffusion/ddpm_edit.py'])
stable-diffusion-web-ui-git E: Dependency python-lark-parser detected and not included (python modules ['lark'] needed in files ['opt/stable-diffusion-web-ui/modules/prompt_parser.py'])
stable-diffusion-web-ui-git E: Dependency python-setuptools detected and not included (python modules ['pkg_resources.parse_version', 'pkg_resources'] needed in files ['opt/stable-diffusion-web-ui/modules/sysinfo.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/autocrop.py'])
stable-diffusion-web-ui-git E: Dependency python-pydantic detected and not included (python modules ['pydantic.create_model', 'pydantic.Field', 'pydantic.BaseModel'] needed in files ['opt/stable-diffusion-web-ui/modules/progress.py', 'opt/stable-diffusion-web-ui/modules/api/models.py', 'opt/stable-diffusion-web-ui/modules/ui.py'])
stable-diffusion-web-ui-git E: Dependency python-requests detected and not included (python modules ['requests'] needed in files ['opt/stable-diffusion-web-ui/modules/api/api.py', 'opt/stable-diffusion-web-ui/modules/launch_utils.py', 'opt/stable-diffusion-web-ui/modules/textual_inversion/autocrop.py', 'opt/stable-diffusion-web-ui/test/test_extras.py', 'opt/stable-diffusion-web-ui/test/test_img2img.py', 'opt/stable-diffusion-web-ui/test/test_txt2img.py', 'opt/stable-diffusion-web-ui/test/test_utils.py'])
stable-diffusion-web-ui-git E: Dependency python-rich detected and not included (python modules ['rich.console.Console', 'rich.logging.RichHandler'] needed in files ['opt/stable-diffusion-web-ui/modules/api/api.py', 'opt/stable-diffusion-web-ui/modules/logging_config.py'])

Regards!

dreieck commented on 2024-03-26 11:36 (UTC)

You need to strip off the leading v from $pkgver as required by the Arch Linux VCS package guidelines.

Regards and thanks for the package!

taylor85345 commented on 2024-02-29 03:38 (UTC)

Please consider changing:

cd "$_apphome" && ./webui.sh

to

cd "$_apphome" && ./webui.sh \$@

in the PKGBUILD, to allow passing arguments to webui.sh.

oioi555 commented on 2024-02-15 03:47 (UTC) (edited on 2024-02-15 03:48 (UTC) by oioi555)

My AMD Radeon RX6650XT required some additional configuration work, but I was able to install it.

https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs#install-on-amd-and-arch-linux

dreieck commented on 2024-02-08 14:48 (UTC) (edited on 2024-02-08 14:49 (UTC) by dreieck)

It fails with Could not find a version that satisfies the requirement setuptools>=40.8.0 while downloading it's own python packages:


################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################
[...]
################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
[...]
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      Looking in indexes: https://download.pytorch.org/whl/rocm5.4.2
      ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
      ERROR: No matching distribution found for setuptools>=40.8.0
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
  File "/opt/stable-diffusion-web-ui/launch.py", line 48, in <module>
    main()
  File "/opt/stable-diffusion-web-ui/launch.py", line 39, in main
    prepare_environment()
  File "/opt/stable-diffusion-web-ui/modules/launch_utils.py", line 378, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/opt/stable-diffusion-web-ui/modules/launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/opt/stable-diffusion-web-ui/venv/bin/python3" -m pip install torch==2.0.1+rocm5.4.2 torchvision==0.15.2+rocm5.4.2 --index-url https://download.pytorch.org/whl/rocm5.4.2
Error code: 1

(The Arch package python-setuptools version 1:69.0.3-1 is installed.)

Regards!

rabcor commented on 2023-12-31 10:20 (UTC) (edited on 2023-12-31 10:29 (UTC) by rabcor)

Tip: You can control which browser the autolaunch uses by setting the BROWSER variable.

E.g. to autolaunch with electron:

BROWSER=/usr/bin/electron stable-diffusion-webui-server

If you want to do it permanently, in webui-user.sh, add:

# Browser to use with autolaunch (if you don't want to use the default system browser)
export BROWSER="/usr/bin/electron"

tiziodcaio commented on 2023-11-23 21:01 (UTC)

I should suggest the integration of this guide, especially for python -m venv venv --system-site-packages command.

bhill commented on 2023-11-21 09:23 (UTC) (edited on 2023-11-21 09:39 (UTC) by bhill)

Another issue you may have when installing is that on first boot, pip will install dependencies into the Python Virtual Environment. Normally, this isn't an issue; but if you have a Swap partition mounted, then the temporary directories built for these dependencies will be placed in the Swap space. If your swap partition is smaller than 10 GB, then you'll run out of Swap space and the dependency installations will fail. This could potentially prevent the UI from booting on the first run.

To fix this, do the following in your terminal:

# Delete the venv folder
rm -r /opt/stable-diffusion-web-ui/venv

# Create a temporary folder in a partition with at least 10GB of space
mkdir -p /path/to/your/temporary/directory

# Run the UI server with the TMPDIR environment variable set to your improvised temporary folder's path 
TMPDIR=/path/to/your/temporary/directory stable-diffusion-web-ui-server

# Don't forget to delete the temporary files when you're done!
rm -rf /path/to/your/temporary/directory

The problem will go away once you've done this, and the UI should boot normally from then on.