Patrefans
Aitrepreneur from patreon
Aitrepreneur patreon

1-Click INSTALL Stable Diffusion Auto1111

🕑 Added 2023-07-31 09:01:11 +0000 UTC
1-Click INSTALL Stable Diffusion Auto1111

Comments

amanda b

Struggled with this: Receiving Error: Torch is not able to use the GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Daniel Wilson

I've got the UI up and running, but I'm running on AMD and it's giving me "RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed"

Aitrepreneur

Go inside the main folder, click on the folder path, type “cmd” press enter, this will bring the command prompt window and inside you’re gonna type: git config --global --add safe.directory 'D:/Stable Diffusion/stable-diffusion-webui/repositories/stable-diffusion-webui-assets' Then press enter Then you can relaunch the webui

carmen goodwin

Could you please help me out with this....I have followed the exact steps and have encountered the following error: Error code: 128 stderr: fatal: detected dubious ownership in repository at 'D:/Stable Diffusion/stable-diffusion-webui/repositories/stable-diffusion-webui-assets' 'D:/Stable Diffusion/stable-diffusion-webui/repositories/stable-diffusion-webui-assets' is on a file system that does not record ownership To add an exception for this directory, call: git config --global --add safe.directory 'D:/Stable Diffusion/stable-diffusion-webui/repositories/stable-diffusion-webui-assets'

Aitrepreneur

Try this: Go to the A1111 folder open click on the folder path type cmd press enter type venv\scripts\activate press enter When you see (venv) X:\path-to-webui\stable-diffusion-webui> type: pip install insightface press enter pip install --upgrade pydantic==1.10.14 press enter pip install --upgrade albumentations==1.4.2 press enter close the cmd and relaunch the webui

Lance Fanger

when i try to add controlnet extension I get this error: Warning: Failed to install handrefinerportable. Some processors will not work. Installing sd-webui-controlnet requirement: depth_anything Installing sd-webui-controlnet requirement: depth_anything_v2 Installing sd-webui-controlnet requirement: dsine

Aitrepreneur

what is your current python version? You need the python 3.10.11. First, you need to uninstall your current python installation and reinstall it correctly. Go to the add and remove programs, search for python and uninstall both the current python version and the python install program. Once this is done, go here and download this installer: https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe Run it and check the “Add python 3.10 to Path” checkbox and continue with the installation. You can check that the right python version is installed by opening a new command prompt window and typing: python --version and it should give you the 3.10.11 version Then just relaunch the 1-click installer in a new folder and try again.

Sébastien Chapelier

Problem when i launch the Webui : "RuntimeError: Couldn't install torch. Command: "C:\SDXL\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.1.2 torchvision==0.16.2 --extra-index-url https://download.pytorch.org/whl/cu121 Error code: 1" Ive tried to edit the webui user.bat to set the Python path. No luck... Thanks

Aitrepreneur

yes it's because the installer automatically installs the latest version so it doesn't need to "update"

Jerry

I used a previous installation of Stable Diffusion you posted, and it updated various things at the start. You could visibly see the updates. Does this one do the same? I don't think I saw the same dialogs. Thanks for the help!

Aitrepreneur

yes it always dl the latest version of the Auto 1111 webUI

Aitrepreneur

what do you mean? what exactly happens?

Ken L. Black

Latecomer here to your Patreon page. @Gustavo Coelho's question above leads me to ask if these are still up to date with the latest version of Automatic111, for those of use who would like to get started on it now.

Gustavo Coelho

I could not get it to work... the .BAT file paths are all blank!

Aitrepreneur

what's your GPU? have you tried loading other models?

Ian Brumley

venv "C:\NonPrograms\SDXL\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Version: v1.9.4 Commit hash: feee37d75f1b168768014e4634dcb156ee649c05 Launching Web UI with arguments: no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Loading weights [a78b9fb8ff] from C:\NonPrograms\SDXL\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors loading stable diffusion model: SafetensorError Traceback (most recent call last): File "C:\Users\jdawg\AppData\Local\Programs\Python\Python310\lib\threading.py", line 973, in _bootstrap self._bootstrap_inner() File "C:\Users\jdawg\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\jdawg\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\initialize.py", line 149, in load_model shared.sd_model # noqa: B018 File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\shared_items.py", line 175, in sd_model return modules.sd_models.model_data.get_sd_model() File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 620, in get_sd_model load_model() File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 705, in load_model state_dict = get_checkpoint_state_dict(checkpoint_info, timer) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 330, in get_checkpoint_state_dict res = read_state_dict(checkpoint_info.filename) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 304, in read_state_dict pl_sd = safetensors.torch.load_file(checkpoint_file, device=device) File "C:\NonPrograms\SDXL\stable-diffusion-webui\venv\lib\site-packages\safetensors\torch.py", line 308, in load_file with safe_open(filename, framework="pt", device=device) as f: safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer Stable diffusion model failed to load Applying attention optimization: Doggettx... done. Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Startup time: 32.3s (prepare environment: 8.8s, import torch: 10.6s, import gradio: 2.6s, setup paths: 3.1s, initialize shared: 1.3s, other imports: 2.1s, load scripts: 2.4s, create ui: 1.1s, gradio launch: 0.4s). Loading weights [a78b9fb8ff] from C:\NonPrograms\SDXL\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors loading stable diffusion model: SafetensorError Traceback (most recent call last): File "C:\Users\jdawg\AppData\Local\Programs\Python\Python310\lib\threading.py", line 973, in _bootstrap self._bootstrap_inner() File "C:\Users\jdawg\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\NonPrograms\SDXL\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run result = context.run(func, *args) File "C:\NonPrograms\SDXL\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper response = f(*args, **kwargs) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\ui.py", line 1154, in update_image_cfg_scale_visibility = lambda: gr.update(visible=shared.sd_model and shared.sd_model.cond_stage_key == "edit") File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\shared_items.py", line 175, in sd_model return modules.sd_models.model_data.get_sd_model() File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 620, in get_sd_model load_model() File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 705, in load_model state_dict = get_checkpoint_state_dict(checkpoint_info, timer) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 330, in get_checkpoint_state_dict res = read_state_dict(checkpoint_info.filename) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 304, in read_state_dict pl_sd = safetensors.torch.load_file(checkpoint_file, device=device) File "C:\NonPrograms\SDXL\stable-diffusion-webui\venv\lib\site-packages\safetensors\torch.py", line 308, in load_file with safe_open(filename, framework="pt", device=device) as f: safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer Stable diffusion model failed to load changing setting sd_model_checkpoint to sd_xl_base_1.0_0.9vae.safetensors [a78b9fb8ff]: AttributeError Traceback (most recent call last): File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\options.py", line 165, in set option.onchange() File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\call_queue.py", line 13, in f res = func(*args, **kwargs) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\initialize_util.py", line 181, in shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: sd_models.reload_model_weights()), call=False) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 860, in reload_model_weights sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 793, in reuse_model_from_already_loaded send_model_to_cpu(sd_model) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 662, in send_model_to_cpu if m.lowvram: AttributeError: 'NoneType' object has no attribute 'lowvram' changing setting sd_model_checkpoint to sd_xl_refiner_1.0_0.9vae.safetensors: AttributeError Traceback (most recent call last): File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\options.py", line 165, in set option.onchange() File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\call_queue.py", line 13, in f res = func(*args, **kwargs) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\initialize_util.py", line 181, in shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: sd_models.reload_model_weights()), call=False) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 860, in reload_model_weights sd_model = reuse_model_from_already_loaded(sd_model, checkpoint_info, timer) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 793, in reuse_model_from_already_loaded send_model_to_cpu(sd_model) File "C:\NonPrograms\SDXL\stable-diffusion-webui\modules\sd_models.py", line 662, in send_model_to_cpu if m.lowvram: AttributeError: 'NoneType' object has no attribute 'lowvram'

Aitrepreneur

3.10.6 or 3.10.11 are pretty much the same but some tools now prefer using the 3.10.11 so now I recommend using that version instead

Samuel

Oh because in the video you are talking about the python 3.10.6 version

Aitrepreneur

This looks like a bad initial python install, you need to uninstall any of your current python installations and reinstall it correctly. Go to the add and remove programs, search for python and uninstall both the current python version and the python install program. Once this is done, go here and download this installer: https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe Run it and check the “Add python 3.10 to Path” checkbox and continue with the installation. You can check that the right python version is installed by opening a new command prompt window and typing: python --version and it should give you the 3.10.11 version Then just relaunch the 1-click installer in a new folder and try again.

Samuel

Couldn't launch python exit code: 9009 stderr: Python konnte nicht gefunden werden. F³hren Sie die Verkn³pfung ohne Argumente aus, um sie ³ber den Microsoft Store zu installieren, oder deaktivieren Sie diese Verkn³pfung unter Launch unsuccessful. Exiting.

PropForge

im unsure how but i have seemed to have fixed it

PropForge

i thought i share this, i was having an issue with the .bat file closing instantly and not doing anything, after about 20 mins i thought to turn off my anti virus and it ran no issue. however i am now getting ERROR: Could not find a version that satisfies the requirement torch==2.1.2 (from versions: 2.2.0, 2.2.0+cu121, 2.2.1, 2.2.1+cu121, 2.2.2, 2.2.2+cu121, 2.3.0, 2.3.0+cu121) ERROR: No matching distribution found for torch==2.1.2

Aitrepreneur

could a multitude of reasons, first open a command prompt window and drag and drop the installer file inside the window, then press enter, this should avoid the window from closing and it will at least give us an error code we can use to troubleshoot the error, make also sure that you have disabled any antivirus/firewall from running and blocking the file/connection. This could also be a bad initial python install, you need to uninstall your current python installation and reinstall it correctly. Go to the add and remove programs, search for python and uninstall both the current python version and the python install program. Once this is done, go here and download this installer: https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe Run it and check the “Add python 3.10 to Path” checkbox and continue with the installation. You can check that the right python version is installed by opening a new command prompt window and typing: python --version and it should give you the 3.10.6 version

Daniel Herbert

Well, that was unfortunate. I installed manually from the video the first time and worked through everything and got it functional. On a new PC, I tried the first batch file and it fails with no prompts or anything... I'll continue to dive deeper.

Aitrepreneur

of course as long as you have the right python version and that it's installed correctly

Starseed.1111

Is it possible for this to work if you've already got Python and git installed?

Aitrepreneur

could a multitude of reasons, first open a command prompt window and drag and drop the installer file inside the window, then press enter, this should avoid the window from closing and it will at least give us an error code we can use to troubleshoot the error, make also sure that you have disabled any antivirus/firewall from running and blocking the file/connection. This could also be a bad initial python install, you need to uninstall your current python installation and reinstall it correctly. Go to the add and remove programs, search for python and uninstall both the current python version and the python install program. Once this is done, go here and download this installer: https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe Run it and check the “Add python 3.10 to Path” checkbox and continue with the installation.

Daniel G

Hi! It is normal that i get the black window downloading python and suddenly it close? Was the first time opening the installer. Just openned again, hopefuly this time works.

Aitrepreneur

watch the install video if you are a beginner: https://youtu.be/rtUpIY9Opjs open the webui-user.bat file once it's installed

Risky KC

where do i go to use it? ive downloaded clicked all the webuis and dont see anything

Aitrepreneur

There probably was an issue during install, try reinstalling in a new folder, disable any antivirus and firewall before reinstalling just in case

Leon Jeppesen

i have this problem ModuleNotFoundError: No module named 'packaging'

Aitrepreneur

make sure to also use something like --xformers for better results and if you want to avoid getting out of memory errors make sure that you have installed the latest nvidia drivers and that system memory fallback is activated by default

DTar5478

Disregard the above. I found a method to change the arguments in the webui.bat to indicate low vram and limit pytorch.

DTar5478

I have been using SDXL successfully on my desktop PC for 4-5 months. Thank you! I am now a 3 out of 10 in expertise (my wild guess). I tried loading SDXL on my laptop and I am getting a CUDA error message, not enough memory. My laptop graphics card is a NVIDIA RTX 3050 Ti Laptop GPU. This GPU only has 4GB of memory. The CPU is a core I9 12900HK. It appears PyTorch is allocating 3.3GB of the GPU memory. The error message suggests "try setting max_split_size_md to avoid fragmentation". Any thoughts or suggestions on this or am I chasing a dead rabbit? Thanks!

DTar5478

Hello! I am enjoying your Patreon site. I have SDXL Automatic 1111 installed on my PC and have been working with it for 4-5 months now. I am getting pretty good, but my assessment is I am a 3 out of 10. Anyway, I decided to try to install it on my laptop as well and I am running into out of memory issues with my laptop graphic card. I am getting a "OutOfMemoeryError: CUDA out of memory." There is a suggestion, "try setting max_split_size_mb to avoid fragmentation". Any thoughts on how to do this? Thanks!

Aitrepreneur

you are loading the wrong model, this is the refiner not the base model

Emu

. Loading weights [8d0ce6c016] from D:\SDXL\stable-diffusion-webui\models\Stable-diffusion\sd_xl_refiner_1.0_0.9vae.safetensors Creating model from config: D:\SDXL\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_refiner.yaml changing setting sd_model_checkpoint to sd_xl_refiner_1.0_0.9vae.safetensors [8d0ce6c016]: RuntimeError Traceback (most recent call last): File "D:\SDXL\stable-diffusion-webui\modules\options.py", line 165, in set option.onchange() File "D:\SDXL\stable-diffusion-webui\modules\call_queue.py", line 13, in f res = func(*args, **kwargs) File "D:\SDXL\stable-diffusion-webui\modules\initialize_util.py", line 174, in shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: sd_models.reload_model_weights()), call=False) File "D:\SDXL\stable-diffusion-webui\modules\sd_models.py", line 877, in reload_model_weights load_model(checkpoint_info, already_loaded_state_dict=state_dict) File "D:\SDXL\stable-diffusion-webui\modules\sd_models.py", line 749, in load_model load_model_weights(sd_model, checkpoint_info, state_dict, timer) File "D:\SDXL\stable-diffusion-webui\modules\sd_models.py", line 394, in load_model_weights model.load_state_dict(state_dict, strict=False) File "D:\SDXL\stable-diffusion-webui\modules\sd_disable_initialization.py", line 223, in module_load_state_dict = self.replace(torch.nn.Module, 'load_state_dict', lambda *args, **kwargs: load_state_dict(module_load_state_dict, *args, **kwargs)) File "D:\SDXL\stable-diffusion-webui\modules\sd_disable_initialization.py", line 221, in load_state_dict original(module, state_dict, strict=strict) File "D:\SDXL\stable-diffusion-webui\modules\sd_disable_initialization.py", line 223, in module_load_state_dict = self.replace(torch.nn.Module, 'load_state_dict', lambda *args, **kwargs: load_state_dict(module_load_state_dict, *args, **kwargs)) File "D:\SDXL\stable-diffusion-webui\modules\sd_disable_initialization.py", line 221, in load_state_dict original(module, state_dict, strict=strict) File "D:\SDXL\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 2152, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for DiffusionEngine: While copying the parameter named "model.diffusion_model.output_blocks.1.0.in_layers.0.weight", whose dimensions in the model are torch.Size([3072]) and whose dimensions in the checkpoint are torch.Size( Man I suck at this

Littlebitofthat

Having issues myself, it says simple. But when i download it, it doesn't do it automatically like mentioned EDIT : NVM

Aitrepreneur

it is installed in the same folder as where you run the installer

Dario van Houwelingen

Great work on the installer! Is there a way to choose where stable diffusion will be installed? Now it gets a bit buried in windows/system32. Thanks

Aitrepreneur

what python version you have? You need the python 3.10 version (I use 3.10.6)

Aitrepreneur

you have the wrong python version, uninstall python from your computer and then relaunch the installer

MemeL0rd420

won't run no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Traceback (most recent call last): File "F:\AI\SUPERSD\Stable Diffusion\stable-diffusion-webui\launch.py", line 48, in main() File "F:\AI\SUPERSD\Stable Diffusion\stable-diffusion-webui\launch.py", line 44, in main start() File "F:\AI\SUPERSD\Stable Diffusion\stable-diffusion-webui\modules\launch_utils.py", line 465, in start import webui File "F:\AI\SUPERSD\Stable Diffusion\stable-diffusion-webui\webui.py", line 13, in initialize.imports() File "F:\AI\SUPERSD\Stable Diffusion\stable-diffusion-webui\modules\initialize.py", line 36, in imports shared_init.initialize() File "F:\AI\SUPERSD\Stable Diffusion\stable-diffusion-webui\modules\shared_init.py", line 40, in initialize from modules import styles File "F:\AI\SUPERSD\Stable Diffusion\stable-diffusion-webui\modules\styles.py", line 9, in class PromptStyle(typing.NamedTuple): File "F:\AI\SUPERSD\Stable Diffusion\stable-diffusion-webui\modules\styles.py", line 11, in PromptStyle prompt: str | None TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' Press any key to continue . . . What do I do?

Sako Alrhman

please help: Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] Version: v1.8.0 Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121 ERROR: Could not find a version that satisfies the requirement torch==2.1.2 (from versions: 2.2.0, 2.2.0+cu121, 2.2.1, 2.2.1+cu121) ERROR: No matching distribution found for torch==2.1.2 [notice] A new release of pip is available: 23.2.1 -> 24.0 [notice] To update, run: E:\AI-Projects\Image_Generator\SD-webui\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip Traceback (most recent call last): File "E:\AI-Projects\Image_Generator\SD-webui\stable-diffusion-webui\launch.py", line 48, in main() File "E:\AI-Projects\Image_Generator\SD-webui\stable-diffusion-webui\launch.py", line 39, in main prepare_environment() File "E:\AI-Projects\Image_Generator\SD-webui\stable-diffusion-webui\modules\launch_utils.py", line 380, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "E:\AI-Projects\Image_Generator\SD-webui\stable-diffusion-webui\modules\launch_utils.py", line 115, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install torch. Command: "E:\AI-Projects\Image_Generator\SD-webui\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.1.2 torchvision==0.16.2 --extra-index-url https://download.pytorch.org/whl/cu121 Error code: 1 Press any key to continue . . .

Aitrepreneur

you can if you want to altough it's not recommended if it updates automatically there is often the chance that an update can break the webui (it's rare but it happened often in the past) if you want to you can just edit the webui-user.bat file and after the line set command line, create a new line and put: git pull So it looks like this: @echo off set PYTHON= set GIT= set VENV_DIR= set COMMANDLINE_ARGS=--xformers --theme dark --autolaunch git pull call webui.bat save the file and relaunch the webui, this time it will automatically update to the latest version each time you launch it

Jessica Gould

Does this auto check for updates? Or is that something we need to do manually?

Aitrepreneur

dm me more info, when does that happen, does the sd models are located inside the models\Stable-diffusion folder?

euphobie

Stable diffusion model failed to load Loading weights [e6bb9ea85b] from E:\imag generator\Nouveau dossier\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors Creating model from config: E:\imag generator\Nouveau dossier\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml Loading weights [e6bb9ea85b] from E:\imag generator\Nouveau dossier\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors Appuyez sur une touche pour continuer... what is wrong ?

Aitrepreneur

hi, sdxl is a model like the 1.5 that needs to be run inside the webui, it's not a special webui version or something like that

antonde slovenia

Hello. THanks for your work. I will now give it a try. But could you kindly suggest if SDXL supports models, that were created with DreamBooth and 1.5 version? Or i have to create a new model to use with SDXL ?

Olyvion

Ah yes your right the firewall was blocking the install. As for the python I managed to find the issue. I had to edit the webui-user.bat to include the python.exe path. Other then that thank you for the support everything is green!

Aitrepreneur

you might have a firewall/ antivirus blocking the connection, try disabling them and try again. There might also be a bad python install, dm me more info so I can easily follow the discussion

Olyvion

Downloading Python 3.10.6... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate. Failed to download Python installer.

Aitrepreneur

not really the log though, try to open a new command prompt window and drag and drop the installer inside the window and press enter, it will at least give you an error that we can use

Olyvion

Got the log files when trying to run it would close immediately : @echo off echo Downloading Python 3.10.6... curl -L -o python-3.10.6-amd64.exe https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe if %errorlevel% NEQ 0 ( echo Failed to download Python installer. exit /b ) echo Installing Python... start /wait python-3.10.6-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 del python-3.10.6-amd64.exe echo Downloading Git... curl -L -o Git-2.42.0-64-bit.exe https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.1/Git-2.42.0-64-bit.exe if %errorlevel% NEQ 0 ( echo Failed to download Git installer. exit /b ) echo Installing Git... start /wait Git-2.42.0-64-bit.exe /VERYSILENT del Git-2.42.0-64-bit.exe echo Cloning stable-diffusion-webui repository... git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git if %errorlevel% NEQ 0 ( echo Failed to clone repository. exit /b ) echo Listing the contents of the cloned repository... dir .\stable-diffusion-webui\ echo Changing directory to the cloned repository... cd .\stable-diffusion-webui\ echo Downloading models... curl -L -o .\models\Stable-diffusion\sd_xl_refiner_1.0_0.9vae.safetensors https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0_0.9vae.safetensors if %errorlevel% NEQ 0 ( echo Failed to download model sd_xl_refiner_1.0_0.9vae.safetensors. exit /b ) curl -L -o .\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0_0.9vae.safetensors if %errorlevel% NEQ 0 ( echo Failed to download model sd_xl_base_1.0_0.9vae.safetensors. exit /b ) echo Models downloaded successfully! echo Running webui-user.bat... call webui-user.bat echo Done! pause

Aitrepreneur

probably because you installed it with a different user, but you can try this: open a command prompt window and type this: git config --global --add safe.directory C:/stable-diffusion-webui then press enter, then you can relaunch the webui-user.bat file

Rey

whe i execute the webui-user.bat i got this error: venv "C:\stable-diffusion-webui\venv\Scripts\Python.exe" fatal: detected dubious ownership in repository at 'C:/stable-diffusion-webui' 'C:/stable-diffusion-webui' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-4022657936-3755423042-3748107276-1001' To add an exception for this directory, call: git config --global --add safe.directory C:/stable-diffusion-webui fatal: detected dubious ownership in repository at 'C:/stable-diffusion-webui' 'C:/stable-diffusion-webui' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-4022657936-3755423042-3748107276-1001' To add an exception for this directory, call: git config --global --add safe.directory C:/stable-diffusion-webui Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: 1.7.0 Commit hash: Couldn't determine Stable Diffusion's hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf, attempting autofix... Fetching all contents for Stable Diffusion fatal: detected dubious ownership in repository at 'C:/stable-diffusion-webui/repositories/stable-diffusion-stability-ai' 'C:/stable-diffusion-webui/repositories/stable-diffusion-stability-ai' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-4022657936-3755423042-3748107276-1001' To add an exception for this directory, call: git config --global --add safe.directory C:/stable-diffusion-webui/repositories/stable-diffusion-stability-ai Traceback (most recent call last): File "C:\stable-diffusion-webui\launch.py", line 48, in main() File "C:\stable-diffusion-webui\launch.py", line 39, in main prepare_environment() File "C:\stable-diffusion-webui\modules\launch_utils.py", line 408, in prepare_environment git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash) File "C:\stable-diffusion-webui\modules\launch_utils.py", line 178, in git_clone current_hash = run_git(dir, name, 'rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}", live=False).strip() File "C:\stable-diffusion-webui\modules\launch_utils.py", line 166, in run_git git_fix_workspace(dir, name) File "C:\stable-diffusion-webui\modules\launch_utils.py", line 153, in git_fix_workspace run(f'"{git}" -C "{dir}" fetch --refetch --no-auto-gc', f"Fetching all contents for {name}", f"Couldn't fetch {name}", live=True) File "C:\stable-diffusion-webui\modules\launch_utils.py", line 116, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't fetch Stable Diffusion. Command: "git" -C "C:\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" fetch --refetch --no-auto-gc Error code: 128 Press any key to continue . . .

Aitrepreneur

you don't launch that file, just the webui-user.bat

Aitrepreneur

are you sure you launched the right file? You need to launch the webui-user.bat file not the webui.bat, it's not the same file, many people do this mistake. If it worked before and you could see the webui, it means everything was indeed installed correctly.

Rey

i also try to execute the lanch.py and i got this error: fatal: detected dubious ownership in repository at 'C:/Windows/System32/stable-diffusion-webui' 'C:/Windows/System32/stable-diffusion-webui' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-4022657936-3755423042-3748107276-1001' To add an exception for this directory, call: git config --global --add safe.directory C:/Windows/System32/stable-diffusion-webui fatal: detected dubious ownership in repository at 'C:/Windows/System32/stable-diffusion-webui' 'C:/Windows/System32/stable-diffusion-webui' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-4022657936-3755423042-3748107276-1001' To add an exception for this directory, call: git config --global --add safe.directory C:/Windows/System32/stable-diffusion-webui Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: 1.7.0 Commit hash:

Rey

when i try to execute webui-user i got this error Access is denied. Couldn't launch python exit code: 1 Everything installed correctly and I was able to see the window http://127.0.0.1:7860/ but after I closed it I was not able to open it again

Aitrepreneur

if python and git are correctly installed then you can try this installer: https://we.tl/t-vRfiFs3LAx make sure you don't have any antivirus or firewall running

Rey

im trying to install sd_auto_install + sdxl.bat file and dosnt work, the window close after star installing Git

Aitrepreneur

you can try this one: https://we.tl/t-ARHLqSIfv6

driver1998

i have downloaded the sd_auto_install + sdxl.bat file. The only process it installs is Phyton 3.10.6 . there is no other installations. what do i need to do

Aitrepreneur

You need to edit the webui-user.bat file and add on the line command line args the --xformers argument So that it looks like this: set COMMANDLINE-ARGS=--xformers Save the file then relaunch the webui-user.bat file

Eyes_Wide_Shut

Thank you for this 1click solution however, I am getting the message. Launching Web UI with arguments: no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Is not having xformers going to be a issue?

Aitrepreneur

Send me a dm with some screenshots and the full error log

Alexandru C.

Hello, I get an error message after the install as follows: "Failed to create model quickly; will retry using slow method. loading stable diffusion model: JSONDecodeError Traceback (most recent call last):" and many lines after this I had installed (using the classic method not 1click installer) SD on my laptop (i5 7300, NVIDIA 1050ti 4GB VRAM), and had no problems, but on my PC (i7 11700k, NVIDIA 3060 12 VRAM), on windows 11 (but I installed a 10 as well, still not working) have this issue. When I try to generate it always ends with "JSONDecodeError: Expecting value: line 1 column 1 (char 0)" L.E. if it is useful I can send a screenshot \ entire error msg Every time I open it the messages end with: "Stable diffusion model failed to load" L.L.E. - 1. I installed SD_AUTO_INSTALL + SDXL in the laptop (i5 7300, NVIDIA 1050ti 4GB VRAM) and it is working, slow but working, so the error sounds like it is related to the new PC 2. Also I installed TEXT-GEN_INSTALLER-WIN-WSL on the PC (i7 11700k, NVIDIA 3060 12 VRAM) and it is working properly.

Aitrepreneur

what gpu do you have?

Boni Supermarkt

I got a error: "RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check" what do i need to do?

Aitrepreneur

gonna need a bit more info there, dm me the full error log

lone wolf

not working

lone wolf

unkwon error

Aitrepreneur

Uninstall python completely using the installer: https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe and reinstall it using that same python installer and don't forget to check the "Add to path" checkbox before installing it.

Max Robinson

After everything installs i get the following error: "Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0x00004274 (most recent call first): ". Do you know what could be causing this?

Aitrepreneur

Disable your antivirus and firewall, sometimes those security systems on your pc stops the file and connection from running correctly

Kubrows

so, tried out the auto install and the one with sdxl, when it goes to download and install git.. ---->>when trying to install Git it says cannot find file then closes the installation. then it cancells out and stops working. .... (For future peoples with this issue, make sure to have python uninstalled and it should work)

Aitrepreneur

Just copy and paste that url into your browser or edit the webui-user.bat file and on line 6 add the following argument: --autolaunch Save the file then relaunch the webui-user.bat file again, it should automatically launch now

Justin

When I ctrl+click the local url after the installer finishes running, nothing pop up. Like I see a blue loading circle flash near my mouse but nothing happens. Help?

Aitrepreneur

It's BETTER to use Nvidia, nvidia is king for Ai applications

liamisgreat22 22

can i use nvidia?

Aitrepreneur

Always talking about gpu, the CPU brand doesn't matter

paul robion

Sorry for the dumb question, but is the AMD-SD auto install for AMD CPU or GPU ? I have an AMD CPU and a NVIDIA GPU

Aitrepreneur

depends what you mean by long while and the resolution of the images you are trying to generate + parameters

Aitrepreneur

hi what's your GPU?

Extro

Is it abnormal for generation to take a long while? Or is there something I might be doing wrong, intel i9 13900k, rtx 3090, 32gb ddrr5

Willy Lauret

Hello, after installing the .bat, (thank you for that by the way :) ), i try to generate an image and i have a picture in low resolution during the process and at the end i have a big green square as a result. Can you help me to fix it please ?

Aitrepreneur

this usually happens because you have an antivirus and/or firewall blocking the file, disable them and try again

St Lask

Im having an issue where the batch file launch and popup for a millisecond before closing and nothing else happens. Its happened for all three of them.

Aitrepreneur

hmm sometimes this might mean that your GPU is faulty so I hope it's the latter, just upgrade to the lastest nvidia drivers and try again

Aitrepreneur

just select the sdxl model in the checkpoint selector, or dl any other model, put it inside the models/stable-diffusion folder and select it in the checkpoint

Lucas Ramos

Hello! Im trying to create images but I always get the following error: RuntimeError: CUDA error: an illegal memory access was encountered CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions. My Specs: Ryzen 7 2700X RTX 2060 6gb 16gb DDR4 What can I do to resolve this?

PuraVida

Hello Aitrepreneur! I have the following situation: At home i have a very poor internet connection. So I ran the one cklick installation on my laptop at university and downloaded everything. Are there any problems if I just copy paste the created folders onto my desktop at home. The python and git version are installed on my machine. Thank you for this easy download option! Keep up the good content - well worth my 5 bugs :D!

wind

hello, my checkpoint is showing something called "v1-5-pruned-emaonly.safetensors [6ce0161689]" and not the sdxl checkpoint you have in the video. what do I need to do? please help

Aitrepreneur

hi dm me your pc specs

Eric Fuchs

HEy, Automatic 1111/sdxl ist just using my cpu instead of my gpu. Do you know how I could fix that? Thanke you in advance!

Aitrepreneur

dm me some screenshots I don't quite understand what you mean by crops into itself

Manuel Gaus

Installed and reinstalled everything properly three times now, if I use any other but the standard Model everything crops into itself. First Istall it would generate something properly at all. Next try both SDXL models u recomended were installed and in the Model folder already and the generated promts kind of grew into themself. Third try I needed to manualy Install the Models Before I used them my Prompts were able to generate really slowly. When I used the refiner or base model from ur video evrything cropped into itself again. Also my Interface Looks diffrent then the one u had. Would really appreciate any advie ty!

Aitrepreneur

In your case, you need to uninstall completely all previous python versions before launching the installer

Beto Matias

Hello, I have python 3.10.11 installed and changed the environment path on windows to it, but even thought when I open the webui-user it throw me an error saying "This program is tested with 3.10.6 Python, but you have 3.9.5." In before I was using AUTO11, and it was taking the correct version, but I've tried to make a full instalation using the 1 click, and now I have this message, any idea why?

Aitrepreneur

if you have python and git installed correctly then try this one: https://we.tl/t-cFCSWyshFd

Chase Anderegg

I am unable to load it crashes right after it gets permission from git, both my firewall and antivirus are disabled :/

Aitrepreneur

here: https://we.tl/t-BN4DplwoXn

Aitrepreneur

First of all, don't, there is not need. Just go to https://civitai.com/ and download any model you like from there

Aitrepreneur

that's usually a problem with your internet connection that stopped during install. try manually downloading torch: https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-win_amd64.whl then put that file inside the stable-diffusion-webui\venv\Scripts folder then inside the scripts folder you're gonna click on the folder path, type cmd then press enter, this will bring the command prompt window in that folder and inside you're gonna type pip install downloaded_filename.whl then press enter

Michael Coimbra

Hi can you please send the mac link whenever you get a chance :) Much appreciated!

ab

I'm new to Stable Diffusion, but I'm enjoying learning more. Due to problems with my setup, I would like to test version 1.6.0. Wouldn't you have the "1 click to install" option for this version?

Duncan

I keep getting an error when it gets to installing torch. Any idea how i resolve this? Thnx. RuntimeError: Couldn't install torch. Command: "C:\SDXL\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118 Error code:1

Aitrepreneur

This means you don't have enough Vram to run the operation, just make sure that you have updated your Nvidia drivers to their latest version, this should already get rid of the error since it will offload some work onto your ram. if you want more speed, disable system memory fallback: https://nvidia.custhelp.com/app/answers/detail/a_id/5490/~/system-memory-fallback-for-stable-diffusion then edit the webui-user.bat file and on the line command line args put --xformers so it looks like that: set COMMANDLINE_ARGS=--xformers if it gives you the same error, then add this additional argument: --medvram so in the end it looks like this: set COMMANDLINE_ARGS=--xformers --medvram

Pauline Fannes

Hello, I receive this, what can I do to finally generate images : OutOfMemoryError: CUDA out of memory. Tried to allocate 80.00 MiB (GPU 0; 8.00 GiB total capacity; 6.97 GiB already allocated; 0 bytes free; 7.27 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Aitrepreneur

this computer doesn't have a gpu so that won't really work no

cyka

I have a windows surface pro , im not sure if it works for this. However, when i tried the download links it would download but not give me the link

Aitrepreneur

dm me the full error log and pc specs

Mau M

I keep getting "The system cannot find the file specified when I try running it...

Aitrepreneur

here: https://we.tl/t-4BwKXCLySp

Jack

Hi, can you share the mac installer again?

Aitrepreneur

if it "crashes" that's indeed usually because the antivirus is blocking the file from running further, you can also try this one: https://we.tl/t-tNIXvmrNnv make sure you have git and python installed correctly though

CG00

unable to load it crashes right after it gets permission from git, both my firewall and antivirus are disabled

Aitrepreneur

here's a new link to it: https://we.tl/t-vkQfSTlXJP I can't make a video about that since I don't have a Mac

Ruben

The mac instal link no longer working, any chance you can do a video about how to run SDXL 1.0 on a mac book?

Aitrepreneur

yes as I explained in my video and as the message says you have a space in one of your folder name, remove that space or install it in another folder that doesn't have any spaces

Bob Praetorius

Thank you for your quick response. I tried the batch file and it ended with an error. I uninstalled python & other programs that were added yesterday. This is the message I received in the black window Cloning the oobabooga text-generation-webui repository... Cloning into 'text-generation-webui'... iremote: Enumerating objects: 14798, done. remote: Counting objects: 100% ( 122/122), done. remote: Compressing objects: 100% (78/78), done. remote: Total 14798 (delta 84), reused 61 (delta 44), pack-reused 14676 Receiving objects: 100 % (14798/14798), 25.85 MiB | 36.92 MiB/s, done. Resolving deltas: 100% (10233/10233), done. This script relies on Miniconda which can not be silently installed under a path with spaces. Press any key to continue.

Aitrepreneur

try this one then: https://we.tl/t-bbvmPTHQ5T

Bob Praetorius

I have an older computer but powerful one. Lenovo Ideacentre A10-Y910-27ish , Intel I7-6700 CPU,@ 3.40 GH 16 gb ram ssd drive 250 gb+ 2T hard drive. . it has NViDia GEforce GTX1070, 8 GB GDDR5.I joined your discord tried installing and it keeps failing. with your script, it installs python and git the the black windows just ends and nothing else happens. Each time it fails I remove the git and python programs. and try again I tried installing all files manually and ran the last batch file but it couldn't find python directory at times other times it was something wrong with torch. I deleted my installed AI directory and all other installed programs and tried again. I tried fixing path but nothing worked. How can I get your script to run all the way through

Aitrepreneur

it should give you a local url

Jean Lou

Hey, i choose the sdxl package to instal it how do i know if everything has been instaled well what should be the alst message of the comand instalation?

Aitrepreneur

looks like you are missing some windows dependency, apparently for this you need to install (or activate depending on your OS) the Media Feature Pack. So on Windows 10 N: Select the Start button, then select Settings > Apps > Apps and Features > Optional features > Add a feature. Find the Media Feature Pack in the list of available optional features. You can also follow this guide: https://www.minitool.com/news/media-feature-pack-not-showing.html

Kinex Design

I get this error when starting the webui-user batch file: 'importerror: dll load failed while importing cv2: the specified module can't be found'

Aitrepreneur

I mean do you get any errors? Are you correctly putting this model inside the models/stable diffusion folder?

KHU

Help~ I'm unable to load this on SDA https://civitai.com/models/34553/aingdiffusion it just goes back to the sd_xl_base

Aitrepreneur

I have a separate installer for Linux, and another for AMD but not for Linux & AMD, I might make one if you really need it

Aris Leou

i set up a pc with linux because amd graphics do not work under windows. will the installer work with linux?

Aitrepreneur

Send me a Dm with the full error log and pc specs

Silas

AttributeError: 'NoneType' object has no attribute 'cond_stage_model'

Aitrepreneur

I have a specific installer for Mac: https://we.tl/t-xr2iizrKkL but since I don't have any apple products I can't give any tech support for it but try it out

Daniel Chattman

Does this work on a MacBook Pro M1?

Dimitris Kaouris

I tried running the bat file again but the cmd closes after gatting permission to install git

Dimitris Kaouris

Models downloaded successfully! Running webui-user.bat... exit code: 1 stderr: C:\Users\USER\AppData\Local\Programs\Python\Python310\python.exe: No module named pip Launch unsuccessful. Exiting. Press any key to continue . . . what do i do??

Aitrepreneur

what error do you get? Also the new img to vid is only available in comfyui as of right now

Russ Ader

I installed this and it worked okay until I tried image to image to make some tweaks to the originally generated image. So txt 2 image works for me but not img 2 img. Also, is there any way to do an auto install for the new img to vid?

Aitrepreneur

you can

Brunovsky

Would have love to have it installed on somewhere else than my windows main drive, as example "E:\Stable Diffusion\"

Aitrepreneur

you need to put the --xformers argument inside the webui-user.bat file after the set command line args line

Master Shredders

tried it and it works though it doesn't use xformers? anyway on how to install xformers after an install like this?

Aitrepreneur

Send me a Dm with the issue

David Leyva

doosent work for me too

Aitrepreneur

Send me a Dm with the issue

Michael woods

2nd computer same not working

Aitrepreneur

you can try this exe file, sometimes it works better for some people: https://bit.ly/3SM5eRR

Andrea

not working for me too. Disabled Avast, added exception but can't install GIT. Please note that is a new PC with nothing installed. I'll go to install SD in the old fashioned ways

Aitrepreneur

Again that's usually the antivirus blocking the file from running any further, for some antivirus you might need to add an exception to allow the file to run

Donald

so I'm trying to install using the script I get to install git and it closes. my firewall and antivirus are off but it crashes at installing git every time.

Aitrepreneur

yes I might do it if people ask for it

Mark

Hi Altrepreneur love your vids just joined your patreon ,thanks for setting up the linux installer for llama ive been trying for ages will you be adding a one click linux installer for stable diffusion too?

Aitrepreneur

No it simply install auto111 without the sdxl model for those that just want the webui

Credence

I take it the non sdxl is SD 1.5?

RenderComics

Also had Python 3.11 installed with pip there, had to uninstall 3.11 and install pip in 3.10.

RenderComics

Under Windows, I had to add GIT and the GIT.exe path to my Env variables

cool1

I've got most of it installed I think. It didn't install al the models (maybe there was a connection failure) but I can do that manually. Running webui.bat is installing python into that folder (even though python is already installed in another folder eg. for oobabooga). I installed git manually when it wouldn't install it. One thing I'm a bit concerned about is in AVG it shows in "network inspector" - "list of monitored networks" and one says "network | public netowrk" and another says "network 2". Has anything to do with the installation (including of git) added anything that could have created the "network 2" and should I be concerned about it security wise?

cool1

Thanks. I'll check that other installer. I know python is installed mostly okay as I've tried running IDLE and also have the oobabooga web ui running, which uses python. If I commented out that bit where it installs python the install of git fails. One site says it could be because of having AVG running so maybe I could see if setting something in AVG could allow it to run as I have AVG installed.

Aitrepreneur

if you are sure that python is already correctly installed on your computer and that it's added to path correctly, you can try using this installer instead: https://go.wetransfer.com/t-fIoLvifNQH otherwise I would suggest uninstalling python completely and relaunching the installer, it will reinstall python correctly and add it to path automatically

cool1

when I put the sd_auto_install + SDXL.bat file into a new empty folder and go to the command prompt and run it it says (after I commented out the echo off): ... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate. then says: Failed to download Python installer. do you know what I need to do to fix it? Also I already have Python installed in a different folder.

Robert Bersch

Just got a new video card on my desktop so decided to give this a try (works on my laptop). I ran the bat and it downloaded everything but stopped with trying to start SD A1111 with this error. Running webui-user.bat... Couldn't launch python exit code: 9009 stderr: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. Launch unsuccessful. Exiting. Press any key to continue . . . I need to add a path dir to something.. lol looking at Python docs and they written for people that use it regulary not noobs like me. Hmm says I should delete python and then reinstall making sure path box is checked.. lets try that. Yup that did it. :D

Aitrepreneur

what's your GPU?

Phillip Gimmi

When i use this I cant turn on xformers or select GPU it chooses CPU

Aitrepreneur

You need to disable your antivirus and firewall, on some machines it blocks the installer

ARAXA

I took a screenshot but I cant paste it anywhere, can you assist me?

ARAXA

how do i fix this?

ARAXA

After downloading this it says installing GIT then the whole cmd box just closes out, Ive done this 3x

Aitrepreneur

make sure that you are using the amd installer and then add all these arguments in webui-user.bat file: --medvram --precision full --no-half --no-half-vae --opt-sdp-attention --disable-nan-check --autolaunch so it should look something like this: set COMMANDLINE_ARGS=--medvram --precision full --no-half --no-half-vae --opt-sdp-attention --disable-nan-check --autolaunch

Lizzy brown

Lenovo - Yoga AIO 7 27" Touch-Screen All-In-One - AMD Ryzen 7 - 16GB Memory - AMD Radeon RX 6600M - 512GB SSD - Cloud Grey with Moon White

Aitrepreneur

what's your GPU?

Lizzy brown

Hi i need help. its giving a error code saying Runtime Error: Could not allocate tensor with 19660960 bytes. There is not enough GPU video memory available. i have a lot of space lefted on the computer so im lost. also for the Stable Diffusion checkpoint v1-5-pruned-emaonly.safetensors [6ce0161689] on your video you have f34 for the last degits how do i upgrade that?

Aitrepreneur

you can't really use auto1111 for amd, you need to use another repo, I have another installer for that

Aitrepreneur

send me a screenshot in dm

James

Do you plan on making a bat file for AMD users who want to use SHARK? The 7900 XTX gains about 400% the performance, and the 6900 XT has an even larger 1100% performance increase. Auto1111 performance is just so poor, it would be greatly appreciated if you could do that!

Jorge Octavio Álvarez Gómez

First time worked like a charm, but affter that, everytime I open webui-user.bat, it just says: Access is denied. Couldn't launch python exit code: 1 Running on win11

Aitrepreneur

try this one: https://we.tl/t-az0yIxjCsG Open the terminal then navigate to the folder where you put the file, then run chmod +x MAC_SD_AUTO_INSTALL.sh to make the script executable and then run ./MAC_SD_AUTO_INSTALL.sh to execute the script.

Sivark

Does this work for Mac?

Aitrepreneur

if you are on edge, if you click on the 3 dots you have an option to keep the file and save it on the computer

AngwySquid

i am also running into the same problem. i turned off firewall for windows but i still cant seem to download it as it says " the file isnt commonly downloaded make sure you trust the file before you open it" ill resend as a comment in case it didnt show up in relpies'

David Fairweather

Nevermind. I missed the Windows Defender Permission alerts. Gotta click yes for the installer to continue.

David Fairweather

Mine is hanging on "Installing Python". I've disabled Windows Defender and Malwarebytes. I get as far as "installing Python . . . " with a blinking cursor. I have a very fast computer with Nvidial 3090ti. Seems like nothing is happening.

Aitrepreneur

yes it should work fine

Steve Sawford

Thank you, worked perfectly, but I would like to move to another location on my drive, can I just move the folder?

Aitrepreneur

disable the antivirus and firewall before launching the installer (don't run as admin) they are usually blocking the file

Peter Rossa

it doesnt work, console shows for a second and then vanishes

Aitrepreneur

send me a dm with more info

Aitrepreneur

yes I added the AMD installer to the post

Skitarii66

Alexandre

is there an auto install + SDXL for AMD GPU ?

Eric TUALLE

thanks for that men ! time saver !! :D

Aitrepreneur

click on the folder path, type cmd then press enter, this will rbing the command prompt window and in the command prompt window type git pull then press enter, wait for the update to download and install and you are done :)

CJ

how do we update SD to the latest version from your install?

Aitrepreneur

what's your GPU?

Flipytrick

I feel like if I had a fresh start this would work, but I don't know where to begin. I've used both installs, and for each one I've been getting the same error code: raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install torch. Command: "C:\Users\flipy\Downloads\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118 Error code: 2

Aitrepreneur

What is your GPU?

Otniel Ocampo

I run the Ui and tells me that Torch can use the GPU so it ask me to Add Text somewhre But I don't know where

Runaja

does only downloa pyton...wich i alredy have

Aitrepreneur

the installation was not completed correctly, you can first try this: go inside your stable diffusion webui folder, click on the folder path then type cmd and press enter, this will bring the command prompt window and inside paste this command: stable-diffusion-webui\venv\Scripts\python.exe -m ensurepip --upgrade then press enter. once this is done downloading, try relaunching the webui-user.bat file again

Italian Man978

I get this error stderr: Error: Command '['C:\\Users\\zaid3\\Downloads\\stable-diffusion-webui\\venv\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

Aitrepreneur

make sure that your firewall and antivirus are off when launching the file sometimes they are blocking the file from running

Anna

As stated, don't run in elevated, but if you have problems, check you haven't missed a windows elevation prompt during the script, the installers need them.

sommiel

when I click the file, my command prompt opens up for a second then immediately closes? anyone else having a similiar thing happen? no error message, just nothing happening

Aitrepreneur

I do have one yes, here: https://we.tl/t-wJDEN2NKbr I don't have a mac so I can't guarantee it will work but try it out. to use it : Open the terminal then navigate to the folder where you put the file, then run chmod +x MAC_SD_AUTO_INSTALL.sh to make the script executable and then run ./MAC_SD_AUTO_INSTALL.sh to execute the script.

Aitrepreneur

send me the error log in dm

Stephen Berry

do you have a Mac OS version of the one click installer?

Clint

Hi, I just installed SDXL , I rebooted my pc and now I'm unable to launch it Not sure how to launch it but I tried to run webui.bat and webui-user.bat and both got error message Access is denied couldn't launch Python

Aitrepreneur

yes that's where you are supposed to install stable diffusion models, by default I made it so that it only installs the newest sdxl, but if you want to install more, you can go to a site called civitai and download more from there and put them in that folder

Aitrepreneur

disable your firewall and antivirus before launching the file, also do not launch with admin rights just double click it

Oggie Doggie

oh I just looked in the stable diffusion directory and it only has the xl safetensors and no sd 1.5

Oggie Doggie

mine ran until it called python and then io got an error saying python is not installed. so i assume it just didnt add python to the path. so I reinstalled python but not sure what models were supposed to be installed. it installed 5 model directories and i do not see stable diffusion xl. it installed deepbooru,karlo,stable diffusion,vae, and vae-approx. so what else do i need to install to finish. do i need any extensions or other models? thanks in advanced. I was playing with Fooocus and while it was a fast simple way to get started it did not have a lot of variety

Larry Erickson

whenever I run it it gets to installing git then closes

Aitrepreneur

what error you get?

Daniel LeMunyan

Neither link works for me .. running windows 10

Aitrepreneur

this is your cpu, I'm asking for your gpu, it's the "brand", it will be either an Nvidia or AMD

Kamil Wołczek

I have 12th Gen Intel(R) Core(TM) i5-12400 2.50 GHz but unfortunetly I don't know what AMD is.

Aitrepreneur

what's your gpu? If you have an AMD you need another installer let me know

Kamil Wołczek

I tried but got this :RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check Press any key to continu

Aitrepreneur

What's the issue?

RenovatioEx

Aitrepreneur

this is a bug inside the webui, I have it too, the way I solve it is each time I launch the webui, I generate a random image with a random prompt 512x512 resolution, it takes a few seconds, and then I can start generating other images, try it out

RenovatioEx

Hello; I keep on having the following statement. Stable Diffusion was working fine before; and now I am having this error; tried what they suggest with no luck is there a way to fix this issue? NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.

Aitrepreneur

this means your gpu doesn't have enough vram to do the operation, try using the --xformers --medvram arguments inside the webui-user.bat file as I showed in my stable diffusion installation video

Skitarii66

Dude it says "OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 8.00 GiB total capacity; 1.70 GiB already allocated; 10.21 MiB free; 1.77 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF" I don't understand what its saying

Aitrepreneur

It's definitely not even downloading the exe files, meaning that again either the antivirus or firewall is blocking the connection and the download

ForgotttenMemory

Hello! Excuse me I subbed to use the bat file, but at the beginning one it gets to the "installing github" it says "Error file not found". I recorded and converted to a gif format to show my error (antivirus turned off, executed as administrator) https://s11.gifyu.com/images/S4vWU.gif

Aitrepreneur

around 15gb and more if you want to download other models

Exmaxlura

Hello! How much disk space is approximately needed for me to intstall the setup?

Aitrepreneur

The only thing to delete is simply the stable diffusion webui folder it created, you can also uninstall python and git you really want to but that's not gonna save a lot of space

Mary Bee

Hi! Thank you for this, but unfortunately the files were way to big for my computer. It did not finish and completely filled my C drive haaa lol. I have uninstalled the programs but I can't for the life of me find the large files that were downloaded with them to delete and make some space again. Can you please tell me what folders / files to look for to delete? Thank you!

Aitrepreneur

send me the image, can't really say without seeing it first

Sébastien

Hello, a quick question. I installed SDXL with SD_AUTO_INSTALL + SDXL.bat. I followed the YouTube video precisely, but I've noticed that the output I generate is of lower quality than the YouTube video, for example, the cat in space. I've tried to use the same settings that I see in the video and the result is far from what I have in your video. Where could the problem be coming from? Thanks.

ai collectiveq

im getting the error 19:30:35-823427 WARNING Torch reports CUDA not available

Aitrepreneur

that usually means your antivirus or firewall is blocking the file, disable them and try again

Jose Garcia

I double-clicked the auto install + SDXL file, Windows asked I wanted to allow it to run, I clicked "yes" I saw a command box pop up for a split second, then nothing. Any suggestions?

Aitrepreneur

the batch file is just to install the webui, you launch it by clicking on the webui-user.bat file

Marc

Do we need to run the batch file everythime to start

Aitrepreneur

it is yes, look at the command prompt see if it gives you a particular error

john

Is img2img just working atm? Cause whenever I try it gives me 'Error Connection errored out.' notification on the top right of the web UI and then nothing happens in the command line. I should also point out I was trying to use a 2048x2048 Photo as that's what I used to use on my other install (As I decided to to a fresh install when moving to SDXL)

Aitrepreneur

you can try using this installer I did, but since I don't have a mac I can't promise it will work: https://we.tl/t-Uf3BhngPMz Open Terminal and navigate to the folder where you put the file then run: chmod +x install_stable_diffusion_mac.sh to make the script executable and finally run ./install_stable_diffusion_mac.sh to execute the script. Again I haven't tested it myself but try it out and let me know if that works for you

Daniel G

Any plan of doing this for MacOS?

Aitrepreneur

the error is normal, for the cuda out of memory this means you don't have enough vram to do the operation but in your case with 8gb of vram you should try it with the --medvram argument, again put this on the same line as the other arguments inside the webui.user.bat file (the file you replaced) and try again

Patrice.R

Thank you for this last precision Thanks to it I could finally launch SD with 'xformers' but also in theme dark.... However, there were those following lines in the cmd window, shall I do something about it?: [notice] A new release of pip available: 22.2.2 -> 23.2.1 [notice] To update, run: D:\Automatic1111 + SDXL\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip Launching Web UI with arguments: --xformers --theme dark --autolaunch Loading weights [e6bb9ea85b] from D:\Automatic1111 + SDXL\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors Running on local URL: http://127.0.0.1:7860 I attempted to make a generation but once again an out of memory message was displayed: torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 128.00 MiB (GPU 0; 8.00 GiB total capacity; 6.98 GiB already allocated; 0 bytes free; 7.27 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF I know we are going back in circle despite the recent solving on my 'xformers' and you can't imagine how much I appreciate your assistance but this low memory issue (despite my 8Gb of Vram) is really puzzling me and is making the new experience pointless. Any potential last tricks coming out of hat??? ;)

Aitrepreneur

are you sure you've put it correctly? It says that it's launching with no arguments, you have probably either written it incorrectly or in the wrong place. It should be in the webui-user.bat file, line 6 set COMMANDLINE_ARGS=--xformers --theme dark --autolaunch

Patrice.R

yes but I still receive the following message when I launch webui.bat: venv "D:\Automatic1111 + SDXL\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] Version: v1.5.2 Commit hash: c9c8485bc1e8720aba70f029d25cba1c4abf2b5c Launching Web UI with arguments: no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Loading weights [e6bb9ea85b] from D:\Automatic1111 + SDXL\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors Running on local URL: http://127.0.0.1:7860

Aitrepreneur

this means you don't have enough memory to run the operation, are you using --xformers argument in the webui user bat file?

Patrice.R

Latest error message after attempting generation was the following: ========================================================================================= *** Error completing request *** Arguments: ('task(fjh8kl4padhfv7o)', 'portrait of a super hero like Witchblade, red hair, gold and black outfit, intricate, elegant, ((epic fighting pose)), highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration, art by H.R.giger, artgerm and greg rutkowski and alphonse mucha, 8 k', '((((ugly)))), (((duplicate))), ((morbid)), ((mutilated)), [out of frame], extra fingers, mutated hands, ((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))). out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck)))', [], 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 640, 512, False, 0.7, 2, 'Latent', 0, 0, 0, 0, '', '', [], , 0, False, False, 'positive', 'comma', 0, False, False, '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0) {} Traceback (most recent call last): File "D:\Automatic1111 + SDXL\stable-diffusion-webui\modules\processing.py", line 549, in decode_latent_batch devices.test_for_nans(sample, "vae") File "D:\Automatic1111 + SDXL\stable-diffusion-webui\modules\devices.py", line 155, in test_for_nans raise NansException(message) modules.devices.NansException: A tensor with all NaNs was produced in VAE. This could be because there's not enough precision to represent the picture. Try adding --no-half-vae commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Automatic1111 + SDXL\stable-diffusion-webui\modules\call_queue.py", line 58, in f res = list(func(*args, **kwargs)) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\modules\txt2img.py", line 62, in txt2img processed = processing.process_images(p) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\modules\processing.py", line 677, in process_images res = process_images_inner(p) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\modules\processing.py", line 796, in process_images_inner x_samples_ddim = decode_latent_batch(p.sd_model, samples_ddim, target_device=devices.cpu, check_for_nans=True) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\modules\processing.py", line 565, in decode_latent_batch sample = decode_first_stage(model, batch[i:i + 1])[0] File "D:\Automatic1111 + SDXL\stable-diffusion-webui\modules\processing.py", line 576, in decode_first_stage x = model.decode_first_stage(x.to(devices.dtype_vae)) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\venv\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\repositories\generative-models\sgm\models\diffusion.py", line 121, in decode_first_stage out = self.first_stage_model.decode(z) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\repositories\generative-models\sgm\models\autoencoder.py", line 315, in decode dec = self.decoder(z, **decoder_kwargs) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\repositories\generative-models\sgm\modules\diffusionmodules\model.py", line 732, in forward h = self.up[i_level].upsample(h) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\repositories\generative-models\sgm\modules\diffusionmodules\model.py", line 67, in forward x = self.conv(x) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\extensions-builtin\Lora\networks.py", line 376, in network_Conv2d_forward return torch.nn.Conv2d_forward_before_network(self, input) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\conv.py", line 463, in forward return self._conv_forward(input, self.weight, self.bias) File "D:\Automatic1111 + SDXL\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\conv.py", line 459, in _conv_forward return F.conv2d(input, weight, bias, self.stride, torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 160.00 MiB (GPU 0; 8.00 GiB total capacity; 6.92 GiB already allocated; 0 bytes free; 7.29 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Aitrepreneur

what pc specs you got?

Aitrepreneur

what error you get?

Aitrepreneur

have you input --xformers in the wbui-user bat file? also even if you get this error this should not inpact the generation, just the optimization

Fershio

Whenever i try to create an image i get the error RuntimeError: Tensor on device cuda:0 is not on the expected device meta!

Duron K Weathington

Trying to get the Auto SDXL to work but it isn't. Any help would be nice.

Patrice.R

The xformers error message is the following: Launching Web UI with arguments: no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Loading weights [e6bb9ea85b] from D:\Automatic1111 + SDXL\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors Running on local URL: http://127.0.0.1:7860

Fershio

Figured it out, i had to type python -m ensurepip, to install it

Fershio

Its saying no module named pip Launch unsuccesful

Aitrepreneur

xformers is not working? What's the error you get? Usually a 8gb vram card should be enough with --xformers and --medvram

Patrice.R

The install worked fine but when I load the webui.bat file my GPU is cranking up to 8Gb in seconds and I haven't had the chance to generate any images yet with SDXL. Obviously when I write a prompt and generate through the automatic1111 interface I have the message that I am out of memory. I tried the option of saving the command --medvram in the webusi-user.bat file but it still runs out of memories. My GPU is an Nvidia GTX 1070 with 8Gb dedicated. Lastly, xformers is not processed when loading the webui.

Aitrepreneur

the stable diffusion folder should have been created in the same location where you put the 1-click installer

worth bennett

I've run the 1-click, I did not remember to right click on the location. How do I find it on my computer? I searched 'stable' 'webui' 'automatic' to no avail.

Aitrepreneur

that's probably an antivirus blocking the bat file from running, disable the antivirus and firewall and try again

Gui

I'm clicking on the bat file and it quickly opens a window then closes and nothing happens... =/ installation is not working

Aitrepreneur

it's usually a bug inside auto111, I have it too for some reason, 1 simple fix is generating a simple image 512x512 resolution with basically no arguments and then once it's done, try again. or you can use the dev branch, that could also fix the issue

theRCB

Also I just got this error: modules.devices.NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check. ---

Aitrepreneur

I saw that you have a 4090 why even have all these arguments they don't even makes sense to use in your situation: set COMMANDLINE_ARGS=--xformers --opt-split-attention --medvram --api --no-half don't use --opt-split-attention --medvram and --no-half, you don't need this and it will mess use your generation. keep the --xformers --api (if you want to) --theme dark --autolaunch lose the rest...

theRCB

alright I'm back seems my Image generations are not at all detailed and are not even usable.

theRCB

I should note as well that inpainting and image2image seems to be causing issues, and inpainting doesn't seem to actually be inpainting what i want, its just making blurry spots, and depending on my settings sometimes is noise, and I am using models used for inpainting so, I don't know the issue there. And SDXL seems to just freeze my PC when trying image2image or anything else. Again, I have to wait to try it after your install, but I should note I have installed Stable many times before so I don't know if I got any hope in it working.

Aitrepreneur

what errors you got? Also try disabling your antivirus and firewall before running the installer

theRCB

hey this isn't working it just closes after installing git, also I'm using your koyha 1 click install and it doesn't seem to be moving.

Aitrepreneur

hey what's your gpu? this error usually means your don't have an nvidia gpu meaning you might need another installer

daishukiy

Hey I encountered this problem and not sure how to fix it, i uninstalled the whole thing except git and python, downloaded it without antivirus on as well, hope to hear a reply soon as i have an urgent project that i have to finish soon QwQ Traceback (most recent call last): File "C:\Users\User\Documents\Adobe\stable diffusion\stable-diffusion-webui\launch.py", line 39, in main() File "C:\Users\User\Documents\Adobe\stable diffusion\stable-diffusion-webui\launch.py", line 30, in main prepare_environment() File "C:\Users\User\Documents\Adobe\stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 314, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Aitrepreneur

what's your gpu?

Deepak

i have issue while install stable diffusion problem is Cancel venv "C:\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.5.2 Commit hash: c9c8485bc1e8720aba70f029d25cba1c4abf2b5c Traceback (most recent call last): File "C:\stable-diffusion-webui\launch.py", line 39, in main() File "C:\stable-diffusion-webui\launch.py", line 30, in main prepare_environment() File "C:\stable-diffusion-webui\modules\launch_utils.py", line 314, in prepare_environment raise RuntimeError( RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check Press any key to continue . . .

Sherome

I had to rename the file, removing the special characters worked

Aitrepreneur

probably an antivirus blocking the bat file, disable the antivirus and firewall and try again

Sherome

Hi, I've tried downloading and installing both, I've put the bat file in to a new folder as suggested but nothing happens, I don't get any pop ups or anything, command pronpt/powershell doesn't show up or anything

Aitrepreneur

when does that happen?

John Carton

I have issue "this system cannot find the file specified"

Aitrepreneur

have you put the --xformers argument inside the webui user bat file?

Snick3rs

Aitrepreneur

you installed the wrong version of python (you need the 3.10.6) and you probably haven't added to path, you should uninstall it then relaunching the installer, try the newest version I uploaded

Aitrepreneur

Glad to hear that :)

Snick3rs

Thanks for your answer, i tried install git and python 3.11 manually, i still have the following error : Running webui-user.bat... Couldn't launch python exit code: 9009 stderr: Launch unsuccessful. Exiting.

Snick3rs

Thanks for your help, but it fails to download git installer... Then it saids "Couldn't launch python exit code: 9009"

steve c

Install python manually. Then edit the bat file and remove this part - REM Check and install Python python --version > NUL 2>&1 if %errorlevel% NEQ 0 ( echo Downloading Python 3.10.6... powershell -Command "& {Invoke-WebRequest -Uri 'https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe' -OutFile 'python-3.10.6-amd64.exe'}" if %errorlevel% NEQ 0 ( echo Failed to download Python installer. pause exit /b ) echo Installing Python... start /wait python-3.10.6-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 if %errorlevel% NEQ 0 ( echo Failed to install Python. pause exit /b ) del python-3.10.6-amd64.exe ) else ( echo Python already installed. )

Hunter Roudebush

Same here, noticed there was a small patch earlier today so maybe something got broken. :(

Hunter Roudebush

It starts writing the web request, gets to about 280000 then I see this: Checking and installing necessary software... Downloading Python 3.10.6... Failed to download Python installer. Press any key to continue . . .

Doggoscape

failed to download the python installer. and then it only gives the option to press any key to continue and close. I see that it added python to the folder but doesn't do anything else.

Hunter Roudebush

Downloaded SD_AUTO_INSTALL + SDXL.bat added it to an empty folder, then ran it and it created a python-3.10.6-amd64.exe in the folder then said failed.. Any help much appreciated!

Jessica Timm

Hey, thank You for making this, worked perfectly.

Aitrepreneur

same what?

João Reis

Aitrepreneur

what happens exactly?

Waleed

You should fix this. It is the reason why I joined. The process does not continue....

Jazz

Nvm i just did it manually and it works. But I still couldnt find out why the BAT file doesn't work

Jazz

When i try running both BAT files, it just installs python and nothing more. What do i do?

Aitrepreneur

It's apparently an issue for some people : https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/12590 as of right now no real fixe has been found, so I suggest deleting the entire folder and relaunching the installer again in another folder see if that works

anthony trisvane

Error while deserializing header: metadataincompletebuffer

Aitrepreneur

what errors?

anthony trisvane

doesn;t work. gives me errors when trying to generate

Aitrepreneur

I would delete the entire folder, uninstall any existing versions of python and then relaunch the installer again in a new folder somewhere else, this is probably a conflict with a previous python install

Lev Israel

Any Help? Installing Python 3.10.6... Installing Git... The system cannot execute the specified program. The system cannot find the file Git-2.41.0.3-64-bit.exe. Cloning stable-diffusion-webui repository... Cloning into 'stable-diffusion-webui'... remote: Enumerating objects: 26446, done. remote: Counting objects: 100% (833/833), done. remote: Compressing objects: 100% (386/386), done. remote: Total 26446 (delta 539), reused 687 (delta 437), pack-reused 25613 Receiving objects: 100% (26446/26446), 31.92 MiB | 3.48 MiB/s, done. Resolving deltas: 100% (18499/18499), done. Listing the contents of the cloned repository... Volume in drive C is Windows Volume Serial Number is F85E-3189 Directory of C:\Users\levis\Downloads\stable-diffusion-webui 08/22/2023 04:46 PM . 08/22/2023 04:45 PM .. 08/22/2023 04:46 PM 51 .eslintignore 08/22/2023 04:46 PM 3,288 .eslintrc.js 08/22/2023 04:46 PM 56 .git-blame-ignore-revs 08/22/2023 04:46 PM .github 08/22/2023 04:46 PM 534 .gitignore 08/22/2023 04:46 PM 122 .pylintrc 08/22/2023 04:46 PM 17,076 CHANGELOG.md 08/22/2023 04:46 PM 657 CODEOWNERS 08/22/2023 04:46 PM configs 08/22/2023 04:46 PM embeddings 08/22/2023 04:46 PM 178 environment-wsl2.yaml 08/22/2023 04:46 PM extensions 08/22/2023 04:46 PM extensions-builtin 08/22/2023 04:46 PM html 08/22/2023 04:46 PM javascript 08/22/2023 04:46 PM 1,001 launch.py 08/22/2023 04:46 PM 35,240 LICENSE.txt 08/22/2023 04:46 PM localizations 08/22/2023 04:46 PM models 08/22/2023 04:46 PM modules 08/22/2023 04:46 PM 196 package.json 08/22/2023 04:46 PM 798 pyproject.toml 08/22/2023 04:46 PM 11,588 README.md 08/22/2023 04:46 PM 52 requirements-test.txt 08/22/2023 04:46 PM 343 requirements.txt 08/22/2023 04:46 PM 541 requirements_versions.txt 08/22/2023 04:46 PM 420,577 screenshot.png 08/22/2023 04:46 PM 4,899 script.js 08/22/2023 04:46 PM scripts 08/22/2023 04:46 PM 18,754 style.css 08/22/2023 04:46 PM test 08/22/2023 04:46 PM textual_inversion_templates 08/22/2023 04:46 PM 832 webui-macos-env.sh 08/22/2023 04:46 PM 92 webui-user.bat 08/22/2023 04:46 PM 1,380 webui-user.sh 08/22/2023 04:46 PM 2,223 webui.bat 08/22/2023 04:46 PM 17,574 webui.py 08/22/2023 04:46 PM 8,174 webui.sh 25 File(s) 546,226 bytes 15 Dir(s) 395,917,869,056 bytes free Changing directory to the cloned repository... Downloading models... The system cannot execute the specified program. The system cannot execute the specified program. Running webui-user.bat... Creating venv in directory C:\Users\levis\Downloads\stable-diffusion-webui\venv using python "C:\Program Files\Python310\python.exe" Unable to create venv in directory "C:\Users\levis\Downloads\stable-diffusion-webui\venv" exit code: 1 stderr: Error: Command '['C:\\Users\\levis\\Downloads\\stable-diffusion-webui\\venv\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1. Launch unsuccessful. Exiting.

Anto

Hello, I'm still struggling to install SD despite the 2 files haha. I run into issues getting it set up

Aitrepreneur

you can try adding this argument in the webui-user.bat file: --no-half in addition to --xformers

kam.if

Hi ! When i want to generate image, i have this error : RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' Does anyone know how to solve the problem? Thanks

Ghost

Howdy! I'm super glad to have found your content on YouTube and have found this Patreon and Discord community! Thank you for the work you're doing! As an AMD user, it would be awesome to get some instructions on how to use this installer with non-Nvidia hardware (if that's even possible). I'm currently receiving the following error when running the SD_AUTO_INSTALL + SDXL.bat "RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check Press any key to continue . . ." Hitting a key just closes the CMD prompt window. The prior file is "launch_utils.py" in the modules folder so I think that's the file I need to add the exception to. I'm new to Python and all of this so I'm currently researching how to solve this prompt. 😅 I've not found a handy guide or comment covering this yet, so this is a suggestion for future content. 😁

Dallas

Hey so i got to the point where the local url pops up and ive tried alt+left clicking on it like it said in your video but it doesnt work for me, how can i use it? I'm on a 65% keyboard if that matters, thx.

Brent Stevens

Downloaded the file and put it in an empty folder. Double clicked the batch file and it asks me to select an app to open the crdownload file. Any help?

Joel Smith

This is what I'm getting... Downloading models... Running webui-user.bat... venv "C:\Users\joels\Desktop\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.5.1 Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a Launching Web UI with arguments: no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. Calculating sha256 for C:\Users\joels\Desktop\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors: Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Startup time: 35.8s (launcher: 13.2s, import torch: 8.4s, import gradio: 3.3s, setup paths: 3.8s, other imports: 3.3s, setup codeformer: 0.2s, load scripts: 2.3s, create ui: 0.9s, gradio launch: 0.3s). e6bb9ea85bbf7bf6478a7c6d18b71246f22e95d41bcdd80ed40aa212c33cfeff Loading weights [e6bb9ea85b] from C:\Users\joels\Desktop\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors Press any key to continue . . . Terminate batch job (Y/N)? n Done! Press any key to continue . . . I've tried to copy and paste the link into an address bar and I get an error message. Does anyone see anything here that could tell me why it's not working?

Dallas

im currently having the same issue, not sure what to do, hopefully he responds soon

s0up

RMB to copy\paste in terminal

Joel Smith

I've been trying to do this for a few days now. When I get to the end I see the URL but I can't copy and paste (not even ctrl+v). I try to type the URL into an address bar (firefox) and nothing happens. I think that if I am able to copy and paste I could share more information on here. What should I do?

Aitrepreneur

that means you don't have enough vram to run the operation, with 8gb of VRAM you could maybe try running the webui with the --medvram argument with --xformers

manno

I'm having the following issue,(OutOfMemoryError: CUDA out of memory. Tried to allocate 160.00 MiB (GPU 0; 8.00 GiB total capacity; 6.91 GiB already allocated; 0 bytes free; 7.31 GiB reserved in total by PyTorch) The only thing is that if I'm not mistaken in the code it says that I only have 8GB of RAM, and I have 16GB of RAM. What can I do?

Aitrepreneur

yes 4gb of VRAM is wayyy too low for SDXL, even 1.5 is still gonna be pretty slow. You should definitely either use a google colab doc or rent a GPU or ...of course... buy a new GPU 🥲

Ernesto Idrovo

Hello please your help, I have this issue: I have an Nvidia Grforce RTX 3050 Laptop GPU With Dedicated GPU Memory 3.8/4.0 GB & Shared GPU Memory 1.1 / 15.9 GB At the moment I have this error: torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 26.00 MiB (GPU 0; 4.00 GiB total capacity; 3.30 GiB already allocated; 0 bytes free; 3.46 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF Stable diffusion model failed to load Applying attention optimization: Doggettx... done. Do you think my machine's specs are not enough to run the latest DSXL? Thank you!

Aitrepreneur

yes it's most probably done, the installation should not take longer than 10-15 mins for most people, you know it's finished once you have a local url

Si D

Aitrepreneur

everything should have been done automatically, that means you might have an older install of python that was not added to path when it was installed, you can try following this guide for that: https://realpython.com/add-python-to-path/

Homer

I am also getting the same error message as Milo. In an older thread on discord someone mentioned Python being "added to your path"... but I don't know what that means or how to do it. How do I do this? Thanks.

Aitrepreneur

this means it either did not install python correctly or you had a previous installation of python that is conflicting with the new one. go in the command prompt window and type python then press enter if it's installed it should say something like: Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> if not you need to relaunch the installer, it will install it automatically

Milo De Win

what could I do to solve this?

Milo De Win

I get this error: Couldn't launch python exit code: 9009 stderr: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. Launch unsuccessful. Exiting. Press any key to continue . . .

Aitrepreneur

I have this error too each time I launch it, it's a bug with the webui with sdxl, what I do is that I first generate a quick image of a random word with 512x512 resolution image, and then generate new images after that and it works

amazingghost

I keep getting errors about vae (A tensor with all NaNs was produced in VAE. Web UI will now convert VAE into 32-bit float and retry. To disable this behavior, disable the 'Automaticlly revert VAE to 32-bit floats' setting. To always start with 32-bit VAE, use --no-half-vae commandline flag.) when i generate I added--no-half-vae and they generate but does that remove using the vae for SDXL? what does this command mean?

amazingghost

yes

Antonio Lua

is 16 gigs of ram and 3060 RTX good enough?

JaMina

I got it!!! I uninstalled and reinstalled and it's working now.

JaMina

Hello I'm getting this after trying to download: Installing Python 3.10.6... Installing Git... Cloning stable-diffusion-webui repository... 'git' is not recognized as an internal or external command, operable program or batch file. Listing the contents of the cloned repository... The system cannot find the file specified. Changing directory to the cloned repository... The system cannot find the path specified. Downloading models... Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:4 + & {(New-Object System.Net.WebClient).DownloadFile('https://huggingfac ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:4 + & {(New-Object System.Net.WebClient).DownloadFile('https://huggingfac ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Running webui-user.bat... 'webui-user.bat' is not recognized as an internal or external command, operable program or batch file. Done! Press any key to continue . . .

Aitrepreneur

huh weird, 12GB is definitely enough for that... this might be a memory leak bug inside the webui..? This could be a number of things like a weird extension installed that is using too much vram for no reason... it's difficult to say I really suggest you to write your issue here just in case: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues you can also try the dev branch of the repository which sometimes works better than the main branch

Boxertwin

1024 x 1024 with no upscaling and only 1 image per batch

Aitrepreneur

yup that means you don't have enough VRAM do to the operation, what kind of resolution are you using when generating your images? The higher the number the more VRAM you're gonna use and SDXL uses more VRAM than SD 1.5

Boxertwin

OutOfMemoryError: CUDA out of memory. Tried to allocate 1024.00 MiB (GPU 0; 12.00 GiB total capacity; 8.53 GiB already allocated; 521.06 MiB free; 9.38 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Aitrepreneur

what exactly is the error you receive?

Aitrepreneur

what kind of errors you got?

Boxertwin

This is great and super easy to install. However I keep getting 'out of memory' errors after about the 3rd successful image generated and then it won't generate any more. I've got a 12gb Nvidia card so I'm guessing this is a memory management issue for me to sort out, but any of the online discussions are waaaay over my head. Any tips? (p.s. I don't have these limitations with SD1.5)

hanZ

Uses the script, ran into a lot of errors, after some restarts it worked- but I only get out of memory errors even with basic setting (3080 10gb) - what am I doing wrong? Adding --xformers and --medvram to the bat didn't helped.

Aitrepreneur

you should see a local url, you can also copy and paste the URL in the address bar

Aitrepreneur

when you get a local url, something like http://127.0.0.1:7860/

Joel Smith

Nothing happens when I click the URL as instructed in the video. Also, I don't see a folder or an .exe file. How do you know when this is installed correctly? How do I start it up?

Kilian

To everyone who is experiencing issues during installation. 1. Do NOT run as an Administrator, this will install the AI Folder in System32! 2. Do right-click on the .bat file, edit. Press CTRL + A, then return. Do paste this code in: @echo off echo Checking and installing necessary software... REM Check and install Python python --version > NUL 2>&1 if %errorlevel% NEQ 0 ( echo Installing Python 3.10.6... powershell -Command "& {Invoke-WebRequest -Uri 'https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe' -OutFile 'python-3.10.6-amd64.exe'}" if %errorlevel% NEQ 0 ( echo Failed to download Python installer. exit /b ) start /wait python-3.10.6-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 del python-3.10.6-amd64.exe ) else ( echo Python already installed. ) REM Check and install Git git --version > NUL 2>&1 if %errorlevel% NEQ 0 ( echo Installing Git... powershell -Command "& {Invoke-WebRequest -Uri 'https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.3/Git-2.41.0.3-64-bit.exe' -OutFile 'Git-2.41.0.3-64-bit.exe'}" if %errorlevel% NEQ 0 ( echo Failed to download Git installer. exit /b ) start /wait Git-2.41.0.3-64-bit.exe /VERYSILENT del Git-2.41.0.3-64-bit.exe ) else ( echo Git already installed. ) echo Cloning stable-diffusion-webui repository... git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git if %errorlevel% NEQ 0 ( echo Failed to clone repository. exit /b ) echo Listing the contents of the cloned repository... dir .\\stable-diffusion-webui\\ echo Changing directory to the cloned repository... cd .\\stable-diffusion-webui\\ echo Downloading models... powershell -Command "& {(New-Object System.Net.WebClient).DownloadFile('https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0_0.9vae.safetensors', '.\\models\\Stable-diffusion\\sd_xl_refiner_1.0_0.9vae.safetensors')}" if %errorlevel% NEQ 0 ( echo Failed to download models. exit /b ) echo Setup completed successfully! """ Removed redundancy by defining a base directory and using it for all subsequent paths. Organized the commands in a clear sequence for better readability. Used SET to define the base directory and the repository path, making it easier to manage and change in the future. Implemented checks to verify if Python and Git are present on the system. If not found, the script exits with an appropriate message. Added a line to launch a Python script (launch.py) after setting up the environment. It's crucial to have error-handling mechanisms in place, especially when dealing with operations like cloning repositories. Ensuring appropriate permissions on the folders and files is vital to avoid "Access Denied" issues. This can be set manually via the folder properties or by using tools/scripts. Always ensure that necessary Python modules (like fastapi) are installed before executing scripts that rely on them. When dealing with Git, be cautious of file systems that don't record ownership, as this can cause "dubious ownership" errors. This was addressed by setting specific directories as safe. Resolving "Access Denied" in Windows: - File/Folder Permissions: - Right-click on the affected folder or drive. - Choose "Properties" and then the "Security" tab. - Add the necessary user and assign the required permissions. Or / and close the current Command Prompt. Search for "Command Prompt" in the Windows search bar. Right-click and select "Run as administrator". Navigate to your folder and copy/paste git config --global --add safe.directory D:/AI/ Replace the path with your path.

Dustin Wayde Mills

Thank you so much! My only question is how do I know when it is finished?

Aitrepreneur

This error is normal and will not impact the installation or usage

Luis Bereciartu

everything loaded properly, while installing I got the following, should I do it?: [notice] A new release of pip available: 22.2.1 -> 23.2.1 [notice] To update, run: D:\2D-3D-ML\LLM\Stable Diffusion\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip

Canal Resumo de Livros

i know, but the error is in the internet, something like firewall error, but i opened the firewall and it doesnt work even

Aitrepreneur

This is your local url, it's not linked to internet issue

Canal Resumo de Livros

http://127.0.0.1:7860/ this link dont work more too, some internet issue idk

Aitrepreneur

It's apparently a bug some people have, there is no real current way to solve it completely, one way that has worked for some people is to change the SD mode to another one, generate an image and then change it back to the SDXL one

Canal Resumo de Livros

when i tried generate a image, do you can help me please?

Aitrepreneur

hey what error you got?

Canal Resumo de Livros

I paid this to use that thing, but i have an error already reported here, someone can help me?

Kilian

To everyone who is experiencing issues during installation. 1. Do NOT run as an Administrator, this will install the AI Folder in System32! 2. Do right-click on the .bat file, edit. Press CTRL + A, then return. Do paste this code in:

Glen

well done k! :) you get me with your service

Aitrepreneur

Have you perhaps deleted the folder? Check the bin maybe, the whole entire folder can't just delete itself for no reason

Tyler

I installed with the one click method and I can't find the stable-diffusion-webui folder anywhere to install other modules. I started the software up once with the http but after restarting i can't find stable diffusion anywhere and the private URL doesnt work anymore

Aitrepreneur

looks like it's your systems RAM, your need increase pagefile size to fix your issue. https://www.google.com/search?q=change+windows+pagefile+size

Aitrepreneur

Some people have this error for some reason, could be a variety of reason like the firewall blocking the download or an antivirus, try either running the bat file with admin rights with firewall and antivirus disabled for a few minutes or download the models manually

Jonathan Pedneault

Hi, My specs: Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz 3.79 GHz 16.0 GB RAM NVIDIA GeForce GTX 1080 8GB VRAM I've been trying to load the model but I get this : Creating model from config: J:\AI\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml Exception in thread Thread-19 (first_time_calculation): Traceback (most recent call last): File "C:\Program Files\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Program Files\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "J:\AI\stable-diffusion-webui\modules\devices.py", line 167, in first_time_calculation linear(x) File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "J:\AI\stable-diffusion-webui\extensions-builtin\Lora\networks.py", line 361, in network_Linear_forward return torch.nn.Linear_forward_before_network(self, input) File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward return F.linear(input, self.weight, self.bias) RuntimeError: CUDA error: CUBLAS_STATUS_NOT_INITIALIZED when calling `cublasCreate(handle)` Failed to create model quickly; will retry using slow method. loading stable diffusion model: RuntimeError Traceback (most recent call last): File "C:\Program Files\Python310\lib\threading.py", line 973, in _bootstrap self._bootstrap_inner() File "C:\Program Files\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Program Files\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "J:\AI\stable-diffusion-webui\webui.py", line 318, in load_model shared.sd_model # noqa: B018 File "J:\AI\stable-diffusion-webui\modules\shared.py", line 754, in sd_model return modules.sd_models.model_data.get_sd_model() File "J:\AI\stable-diffusion-webui\modules\sd_models.py", line 439, in get_sd_model load_model() File "J:\AI\stable-diffusion-webui\modules\sd_models.py", line 504, in load_model sd_model = instantiate_from_config(sd_config.model) File "J:\AI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 89, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict())) File "J:\AI\stable-diffusion-webui\repositories\generative-models\sgm\models\diffusion.py", line 61, in __init__ self.conditioner = instantiate_from_config( File "J:\AI\stable-diffusion-webui\repositories\generative-models\sgm\util.py", line 175, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict())) File "J:\AI\stable-diffusion-webui\repositories\generative-models\sgm\modules\encoders\modules.py", line 88, in __init__ embedder = instantiate_from_config(embconfig) File "J:\AI\stable-diffusion-webui\repositories\generative-models\sgm\util.py", line 175, in instantiate_from_config return get_obj_from_str(config["target"])(**config.get("params", dict())) File "J:\AI\stable-diffusion-webui\repositories\generative-models\sgm\modules\encoders\modules.py", line 428, in __init__ model, _, _ = open_clip.create_model_and_transforms( File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\open_clip\factory.py", line 308, in create_model_and_transforms model = create_model( File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\open_clip\factory.py", line 192, in create_model model = CLIP(**model_cfg, cast_dtype=cast_dtype) File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\open_clip\model.py", line 201, in __init__ self.visual = _build_vision_tower(embed_dim, vision_cfg, quick_gelu, cast_dtype) File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\open_clip\model.py", line 125, in _build_vision_tower visual = VisionTransformer( File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\open_clip\transformer.py", line 375, in __init__ self.transformer = Transformer( File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\open_clip\transformer.py", line 304, in __init__ self.resblocks = nn.ModuleList([ File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\open_clip\transformer.py", line 305, in ResidualAttentionBlock( File "J:\AI\stable-diffusion-webui\modules\sd_hijack_utils.py", line 17, in setattr(resolved_obj, func_path[-1], lambda *args, **kwargs: self(*args, **kwargs)) File "J:\AI\stable-diffusion-webui\modules\sd_hijack_utils.py", line 26, in __call__ return self.__sub_func(self.__orig_func, *args, **kwargs) File "J:\AI\stable-diffusion-webui\modules\sd_hijack_unet.py", line 76, in CondFunc('open_clip.transformer.ResidualAttentionBlock.__init__', lambda orig_func, *args, **kwargs: kwargs.update({'act_layer': GELUHijack}) and False or orig_func(*args, **kwargs), lambda _, *args, **kwargs: kwargs.get('act_layer') is None or kwargs['act_layer'] == torch.nn.GELU) File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\open_clip\transformer.py", line 211, in __init__ ("c_fc", nn.Linear(d_model, mlp_width)), File "J:\AI\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\linear.py", line 96, in __init__ self.weight = Parameter(torch.empty((out_features, in_features), **factory_kwargs)) RuntimeError: [enforce fail at ..\c10\core\impl\alloc_cpu.cpp:72] data. DefaultCPUAllocator: not enough memory: you tried to allocate 54525952 bytes. Stable diffusion model failed to load Applying attention optimization: xformers... done.

Sad Weebs

I get this error when i run the bat file Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:4 + & {(New-Object System.Net.WebClient).DownloadFile('https://huggingfac ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:4 + & {(New-Object System.Net.WebClient).DownloadFile('https://huggingfac ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException

Aitrepreneur

What issues?

George Miller

error at each step we need to run it as admin still issues in the .bat file

Aitrepreneur

What problem?

Justin Wong

I having problem with it too

Gorgriz

I have the same issue. I tried to install SDXL manually, but I have almost one issue per steps (Python, Git, pip, xformers...) and I finally gave up for now.

Eye Bee

the bat installed git, but since it didn't refresh its context, git doesn't work. i'm trying relaunching the install bat. maybe it will be able to run git now.

Eye Bee

Here is my issue: Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:4 + & {(New-Object System.Net.WebClient).DownloadFile('https://huggingfac ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:4 + & {(New-Object System.Net.WebClient).DownloadFile('https://huggingfac ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException

Aitrepreneur

you can try uninstalling python completely and then relaunch the installer so that you have the 3.10.6 version installed instead

Aitrepreneur

This installer is for windows only but you can try following this: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon since I don't use apple I cannot help troubleshoot any issues related to the installation unfortunately

Aitrepreneur

This installer is for windows only but you can try following this: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Installation-on-Apple-Silicon since I don't use apple I cannot help troubleshoot any issues related to the installation unfortunately

Ruiz Lihuel Alejandro

Hello, here is my own issue: "venv "F:\STABLE_difussion\XL\stable-diffusion-webui\venv\Scripts\Python.exe" ============================================================================================================== INCOMPATIBLE PYTHON VERSION This program is tested with 3.10.6 Python, but you have 3.7.8. If you encounter an error with "RuntimeError: Couldn't install torch." message, or any other error regarding unsuccessful package (library) installation, please downgrade (or upgrade) to the latest version of 3.10 Python and delete current Python and "venv" folder in WebUI's directory. You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3106/ Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases Use --skip-python-version-check to suppress this warning. ============================================================================================================== Python 3.7.8rc1 (tags/v3.7.8rc1:5f3933d61d, Jun 17 2020, 16:59:29) [MSC v.1916 64 bit (AMD64)] Version: v1.5.1 Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118 ERROR: Could not find a version that satisfies the requirement torch==2.0.1 (from versions: 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1) ERROR: No matching distribution found for torch==2.0.1 WARNING: You are using pip version 20.1.1; however, version 23.2.1 is available. You should consider upgrading via the 'F:\STABLE_difussion\XL\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip' command. Traceback (most recent call last): File "launch.py", line 39, in main() File "launch.py", line 30, in main prepare_environment() File "F:\STABLE_difussion\XL\stable-diffusion-webui\modules\launch_utils.py", line 311, in prepare_environment run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True) File "F:\STABLE_difussion\XL\stable-diffusion-webui\modules\launch_utils.py", line 113, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install torch. Command: "F:\STABLE_difussion\XL\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118 Error code: 1 Press any key to continue . . ." I have another installation of SD but I wanted to do a fresh install with the new XL release (and I wanted to support you, because of your great tutorials on youtube). Some specs: CPU I9 9900k, GPU RTX 3090, RAM 64 Gb, OS W11 Pro. I didn't try any of the possible solutions that the error message suggests because I wanted to ask for your advice first. Thanks in advance.

Zo__AI

So can the link be sed on Mac at all?

Zo__AI

There is no application set to open the document “SD_AUTO_INSTALL + SDXL.bat”.- Neither links for me. I use MacPro

Dustin Hollywood

How do I use this on a mac?

Aitrepreneur

what error you got?

Svenpai

The 1 click install doesn't work for me.. : /

Daniel Pineda

GPU memory 4.0Gb

Aitrepreneur

what is your GPU?

Daniel Pineda

so I'm trying to run --lowvram but it still won't load. the UI launches. but i can't generate anything and it mentions this on the cmd"venv "C:\Users\danie\Desktop\stable-diffussion\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.5.1 Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a Launching Web UI with arguments: --xformers --lowvram --skip-torch-cuda-test Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled Loading weights [e6bb9ea85b] from C:\Users\danie\Desktop\stable-diffussion\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors Exception in thread Thread-17 (first_time_calculation): Traceback (most recent call last): File "C:\Program Files\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Program Files\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "C:\Users\danie\Desktop\stable-diffussion\stable-diffusion-webui\modules\devices.py", line 167, in first_time_calculation linear(x) File "C:\Users\danie\Desktop\stable-diffussion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "C:\Users\danie\Desktop\stable-diffussion\stable-diffusion-webui\extensions-builtin\Lora\networks.py", line 361, in network_Linear_forward return torch.nn.Linear_forward_before_network(self, input) File "C:\Users\danie\Desktop\stable-diffussion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward return F.linear(input, self.weight, self.bias) RuntimeError: "addmm_impl_cpu_" not implemented for 'Half' Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Startup time: 25.0s (launcher: 0.8s, import torch: 5.9s, import gradio: 2.1s, setup paths: 2.4s, other imports: 3.7s, setup codeformer: 0.2s, load scripts: 6.0s, initialize extra networks: 0.4s, create ui: 2.3s, gradio launch: 1.1s). Creating model from config: C:\Users\danie\Desktop\stable-diffussion\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml Failed to create model quickly; will retry using slow method. Loading weights [e6bb9ea85b] from C:\Users\danie\Desktop\stable-diffussion\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors Press any key to continue . . ." any ideas? or next steps?

Aitrepreneur

try reinstalling again, it's weird that there is nothing the console if no image is generates

Aitrepreneur

yes that means your GPU is too weak to run the operation you are trying to run, use the --medvram argument as I showed in the video or the --lowvram argument if that doesn't work

Aitrepreneur

need more info what is your system and specs?

Aitrepreneur

need a bit more information here, try relaunching the installation again and give me the full screen of error you can send me a dm on discord

DDinaraa

Hi, nothing happens when I click "generate". There is no errors.

Michael A

Any idea how to address this error? torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 6.00 GiB total capacity; 5.16 GiB already allocated; 0 bytes free; 5.30 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Pranav c m

Changing directory to the cloned repository... Downloading models... Running webui-user.bat... exit code: 1 stderr: Traceback (most recent call last): File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Program Files\Python310\lib\site-packages\pip\__main__.py", line 29, in from pip._internal.cli.main import main as _main File "C:\Program Files\Python310\lib\site-packages\pip\_internal\cli\main.py", line 9, in from pip._internal.cli.autocompletion import autocomplete File "C:\Program Files\Python310\lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in from pip._internal.cli.main_parser import create_main_parser File "C:\Program Files\Python310\lib\site-packages\pip\_internal\cli\main_parser.py", line 8, in from pip._internal.cli import cmdoptions File "C:\Program Files\Python310\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 24, in from pip._internal.cli.parser import ConfigOptionParser File "C:\Program Files\Python310\lib\site-packages\pip\_internal\cli\parser.py", line 12, in from pip._internal.configuration import Configuration, ConfigurationError File "C:\Program Files\Python310\lib\site-packages\pip\_internal\configuration.py", line 26, in from pip._internal.utils.logging import getLogger File "C:\Program Files\Python310\lib\site-packages\pip\_internal\utils\logging.py", line 29, in from pip._internal.utils.misc import ensure_dir File "C:\Program Files\Python310\lib\site-packages\pip\_internal\utils\misc.py", line 38, in from pip._vendor.tenacity import retry, stop_after_delay, wait_fixed File "C:\Program Files\Python310\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 514, in from pip._vendor.tenacity._asyncio import AsyncRetrying # noqa:E402,I100 File "C:\Program Files\Python310\lib\site-packages\pip\_vendor\tenacity\_asyncio.py", line 21, in from asyncio import sleep File "C:\Program Files\Python310\lib\asyncio\__init__.py", line 8, in from .base_events import * File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 48, in from . import trsock ValueError: source code string cannot contain null bytes Launch unsuccessful. Exiting. Press any key to continue . . .

Aaron Zajicek

I keep getting this error: ERROR: Exception: Traceback (most recent call last): File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 160, in exc_logging_wrapper status = run_func(*args) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 247, in wrapper return func(self, options, args) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\commands\install.py", line 400, in run requirement_set = resolver.resolve( File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 92, in resolve result = self._result = resolver.resolve( File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 481, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 348, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria if not criterion.candidates: File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 151, in __bool__ return bool(self._sequence) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__ return any(self) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built candidate = func() File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 297, in __init__ super().__init__( File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 162, in __init__ self.dist = self._prepare() File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 231, in _prepare dist = self._prepare_distribution() File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 491, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 536, in _prepare_linked_requirement local_file = unpack_url( File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 166, in unpack_url file = get_http_url( File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 107, in get_http_url from_path, content_type = download(link, temp_dir.path) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\download.py", line 134, in __call__ resp = _http_get_download(self._session, link) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\download.py", line 117, in _http_get_download resp = session.get(target_url, headers=HEADERS, stream=True) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\requests\sessions.py", line 600, in get return self.request("GET", url, **kwargs) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\network\session.py", line 518, in request return super().request(method, url, *args, **kwargs) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\requests\sessions.py", line 587, in request resp = self.send(prep, **send_kwargs) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\requests\sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\adapter.py", line 48, in send cached_response = self.controller.cached_request(request) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\controller.py", line 155, in cached_request resp = self.serializer.loads(request, cache_data, body_file) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\serialize.py", line 95, in loads return getattr(self, "_loads_v{}".format(ver))(request, data, body_file) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\cachecontrol\serialize.py", line 186, in _loads_v4 cached = msgpack.loads(data, raw=False) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\msgpack\fallback.py", line 123, in unpackb unpacker.feed(packed) File "C:\Users\AKZis\Desktop\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\msgpack\fallback.py", line 381, in feed self._buffer.extend(view) MemoryError The last line before it gives me this error says: Collecting torch==2.0.1

Aitrepreneur

It's currently a small bug that can happen in the webui, the others are trying to find a solution to this, one way is to make sure that you are not using any Lora in the prompt since it's not compatible with the refiner or to close the webui and try again

shimi biton

OK now the refiner not working... \--- 0%| | 0/3 [00:00', '', [], , None, None, None, None, None, None, 5, 0, 4, 0, 1, False, False, 1, 1, 9.5, 1.5, 0.45, 4203575147.0, -1.0, 0, 0, 0, False, 0, 768, 1344, 1, 0, 0, 32, 0, 'D:\\Dropbox\\LL\\01-Work\\01-Projects\\072 - osher ad - ai\\04_FOOTAGE\\PNG seq\\shot-01', 'D:\\Dropbox\\LL\\01-Work\\01-Projects\\072 - osher ad - ai\\04_FOOTAGE\\PNG seq\\shot-01\\01', '', [], False, [], '', , 0, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 0.5, 'Linear', 'None', '<p style="margin-bottom:0.75em;">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em;">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 64, 0, 2, 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0) {} Traceback (most recent call last): File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\call_queue.py", line 58, in f res = list(func(*args, **kwargs)) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\img2img.py", line 232, in img2img processed = process_images(p) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\processing.py", line 677, in process_images res = process_images_inner(p) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\processing.py", line 794, in process_images_inner samples_ddim = p.sample(conditioning=p.c, unconditional_conditioning=p.uc, seeds=p.seeds, subseeds=p.subseeds, subseed_strength=p.subseed_strength, prompts=p.prompts) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\processing.py", line 1381, in sample samples = self.sampler.sample_img2img(self, self.init_latent, x, conditioning, unconditional_conditioning, image_conditioning=self.image_conditioning) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\sd_samplers_kdiffusion.py", line 434, in sample_img2img samples = self.launch_sampling(t_enc + 1, lambda: self.func(self.model_wrap_cfg, xi, extra_args=extra_args, disable=False, callback=self.callback_state, **extra_params_kwargs)) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\sd_samplers_kdiffusion.py", line 303, in launch_sampling return func() File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\sd_samplers_kdiffusion.py", line 434, in samples = self.launch_sampling(t_enc + 1, lambda: self.func(self.model_wrap_cfg, xi, extra_args=extra_args, disable=False, callback=self.callback_state, **extra_params_kwargs)) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\k-diffusion\k_diffusion\sampling.py", line 145, in sample_euler_ancestral denoised = model(x, sigmas[i] * s_in, **extra_args) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\sd_samplers_kdiffusion.py", line 183, in forward x_out = self.inner_model(x_in, sigma_in, cond=make_condition_dict(cond_in, image_cond_in)) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\k-diffusion\k_diffusion\external.py", line 112, in forward eps = self.get_eps(input * c_in, self.sigma_to_t(sigma), **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\k-diffusion\k_diffusion\external.py", line 138, in get_eps return self.inner_model.apply_model(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\sd_models_xl.py", line 37, in apply_model return self.model(x, t, cond) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\sd_hijack_utils.py", line 17, in setattr(resolved_obj, func_path[-1], lambda *args, **kwargs: self(*args, **kwargs)) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\sd_hijack_utils.py", line 28, in __call__ return self.__orig_func(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\generative-models\sgm\modules\diffusionmodules\wrappers.py", line 28, in forward return self.diffusion_model( File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\generative-models\sgm\modules\diffusionmodules\openaimodel.py", line 993, in forward h = module(h, emb, context) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\generative-models\sgm\modules\diffusionmodules\openaimodel.py", line 98, in forward x = layer(x, emb) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\generative-models\sgm\modules\diffusionmodules\openaimodel.py", line 317, in forward return checkpoint( File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\generative-models\sgm\modules\diffusionmodules\util.py", line 165, in checkpoint return CheckpointFunction.apply(func, len(inputs), *args) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\autograd\function.py", line 506, in apply return super().apply(*args, **kwargs) # type: ignore[misc] File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\generative-models\sgm\modules\diffusionmodules\util.py", line 182, in forward output_tensors = ctx.run_function(*ctx.input_tensors) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\repositories\generative-models\sgm\modules\diffusionmodules\openaimodel.py", line 329, in _forward h = self.in_layers(x) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\container.py", line 217, in forward input = module(input) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl return forward_call(*args, **kwargs) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\extensions-builtin\Lora\networks.py", line 374, in network_Conv2d_forward network_apply_weights(self) File "D:\ai\Vlad-oneclick\stable-diffusion-webui\extensions-builtin\Lora\networks.py", line 295, in network_apply_weights self.weight += updown RuntimeError: The size of tensor a (384) must match the size of tensor b (320) at non-singleton dimension 1 ---

shimi biton

Wow, I would never have figured this out on my own. Lucky to have you to help the common people.

Aitrepreneur

try this: Delete tqdm and "tqdm-4.11.2.dist-info" folders from stablediffusionfolder/venv/Lib run pip install tqdm --ignore-installed Go to: C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\Lib\site-packages copy tqdm and tqdm-4.65.0.dist-info folders in to stablediffusionfolder/venv/Lib

shimi biton

venv "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] Version: v1.5.1 Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a Launching Web UI with arguments: Traceback (most recent call last): File "D:\ai\Vlad-oneclick\stable-diffusion-webui\launch.py", line 39, in main() File "D:\ai\Vlad-oneclick\stable-diffusion-webui\launch.py", line 35, in main start() File "D:\ai\Vlad-oneclick\stable-diffusion-webui\modules\launch_utils.py", line 390, in start import webui File "D:\ai\Vlad-oneclick\stable-diffusion-webui\webui.py", line 39, in import pytorch_lightning # noqa: F401 # pytorch_lightning should be imported after torch, but it re-enables warnings on import so import once to disable them File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\__init__.py", line 35, in from pytorch_lightning.callbacks import Callback # noqa: E402 File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\__init__.py", line 14, in from pytorch_lightning.callbacks.batch_size_finder import BatchSizeFinder File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\batch_size_finder.py", line 24, in from pytorch_lightning.callbacks.callback import Callback File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\callbacks\callback.py", line 25, in from pytorch_lightning.utilities.types import STEP_OUTPUT File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\types.py", line 27, in from torchmetrics import Metric File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\__init__.py", line 14, in from torchmetrics import functional # noqa: E402 File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\__init__.py", line 121, in from torchmetrics.functional.text._deprecated import _bleu_score as bleu_score File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\__init__.py", line 31, in from torchmetrics.functional.text.bert import bert_score File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\bert.py", line 25, in from torchmetrics.functional.text.helper_embedding_metric import ( File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\torchmetrics\functional\text\helper_embedding_metric.py", line 27, in from transformers import AutoModelForMaskedLM, AutoTokenizer, PreTrainedModel, PreTrainedTokenizerBase File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\transformers\__init__.py", line 30, in from . import dependency_versions_check File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\transformers\dependency_versions_check.py", line 17, in from .utils.versions import require_version, require_version_core File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\__init__.py", line 34, in from .generic import ( File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\generic.py", line 29, in from .import_utils import is_flax_available, is_tf_available, is_torch_available, is_torch_fx_proxy File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\import_utils.py", line 34, in from . import logging File "D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\logging.py", line 31, in from tqdm import auto as tqdm_lib ImportError: cannot import name 'auto' from 'tqdm' (D:\ai\Vlad-oneclick\stable-diffusion-webui\venv\lib\site-packages\tqdm\__init__.py) WHY? Please Help me...

Joshua

Is there any solution? I got these messages when installing

Joshua

Installing Git... Cloning stable-diffusion-webui repository... 'git' is not recognized as an internal or external command, operable program or batch file. Listing the contents of the cloned repository... The system cannot find the file specified. Changing directory to the cloned repository... The system cannot find the path specified. Downloading models... Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:4 + & {(New-Object System.Net.WebClient).DownloadFile('https://huggingfac ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:4 + & {(New-Object System.Net.WebClient).DownloadFile('https://huggingfac ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Running webui-user.bat... 'webui-user.bat' is not recognized as an internal or external command, operable program or batch file. Done!

Eddie Flickinger

@echo off echo Installing Python 3.10.6... powershell -Command "& {Invoke-WebRequest -Uri 'https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe' -OutFile 'python-3.10.6-amd64.exe'}" start /wait python-3.10.6-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 echo Installing Git... powershell -Command "& {Invoke-WebRequest -Uri 'https://github.com/git-for-windows/git/releases/download/v2.41.0.windows.3/Git-2.41.0.3-64-bit.exe' -OutFile 'Git-2.41.0.3-64-bit.exe'}" start /wait Git-2.41.0.3-64-bit.exe /VERYSILENT echo Cloning stable-diffusion-webui repository... git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git echo Listing the contents of the cloned repository... dir .\stable-diffusion-webui\ echo Changing directory to the cloned repository... cd .\stable-diffusion-webui\ echo Downloading models... powershell -Command "& {(New-Object System.Net.WebClient).DownloadFile('https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0_0.9vae.safetensors', '.\models\Stable-diffusion\sd_xl_refiner_1.0_0.9vae.safetensors')}" powershell -Command "& {(New-Object System.Net.WebClient).DownloadFile('https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0_0.9vae.safetensors', '.\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors')}" echo Running webui-user.bat... call webui-user.bat echo Done! pause

Eddie Flickinger

does this work on MacOS? I'm not seeing any sort of weblink after downloading the files

Aitrepreneur

yes that means you don't have enough Vram to run the operation, try running the webui with the --medvram argument as I showed in my video

Aitrepreneur

very strange error, try running the webui-user.bat file itself

valdas2020

Hi, could you help me please: webui installed OK, but any attempt to generate image failed with following message: torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 8.00 GiB total capacity; 7.13 GiB already allocated; 0 bytes free; 7.27 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF Could you please help how can I fix it?

noa

'webui-user.bat' is not recognized as an internal or external command, operable program or batch file.

noa

was there a fix for this

Valentin Marcicki

j'ai chercher, j'ai rerereregardé la vidéo, je n'y arrive po. ça télécharge une partie de la chose, vu le temps que ça prend avant d'avoir le message d'erreur.

Valentin Marcicki

steuplait ça fait 2h j'suis dessus, j'ai lancer le. bat sd auto + sdxl, à chaque fois que j'arrive au "Downloading models BE PATIENT IT TAKES TIME..." je reçois le message d'erreur Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:43 + ... .WebClient; $wc.DownloadFile('https://huggingface.co/stabilityai/stab ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:43 + ... .WebClient; $wc.DownloadFile('https://huggingface.co/stabilityai/stab ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException

Aitrepreneur

Gonna need a bit more info

Aitrepreneur

I personally really like A1111 ever since it came out in like September, it's the most versatile and complete webui to run SD models. It's not the most optimized but it's the most compatible with all the available extensions so yes for me it's worth it

Aitrepreneur

Sent dm

Valentin Marcicki

where to add this argument i don't code can you explain it very simple please

Give a brother a buck

I figured it out

Give a brother a buck

Downloading models BE PATIENT IT TAKES TIME... Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:43 + ... .WebClient; $wc.DownloadFile('https://huggingface.co/stabilityai/stab ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:1 char:43 + ... .WebClient; $wc.DownloadFile('https://huggingface.co/stabilityai/stab ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException

Mike D

Your autoinstall was great, except for one thing. I had to manually add the argument --autolauch i nthe bat file in order to get the webui to launch

Sergio Floresollivier

31/07/2023 05:43 p. m. . 31/07/2023 05:43 p. m. .. 0 archivos 0 bytes 2 dirs 1,297,023,942,656 bytes libres Changing directory to the cloned repository... Downloading models BE PATIENT IT TAKES TIME... Excepción al llamar a "DownloadFile" con los argumentos "2": "Excepción durante una solicitud WebClient." En línea: 1 Carácter: 43 + ... .WebClient; $wc.DownloadFile('https://huggingface.co/stabilityai/stab ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Excepción al llamar a "DownloadFile" con los argumentos "2": "Excepción durante una solicitud WebClient." En línea: 1 Carácter: 43 + ... .WebClient; $wc.DownloadFile('https://huggingface.co/stabilityai/stab ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException Running webui-user.bat... "webui-user.bat" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. Done! Presione una tecla para continuar . . .

CGI Nerd

This is Amazing! I am currently running easy diffusion on my computer. Would it be worth it to switch to A1111? Is there a big difference? I see quite a few people online using A1111 and am considering switching, just wondering if it is worth the effort.

Stas Mataitis

hello, I'm getting error while installing your .bat file. I can send you a screenshot with message. can you please help? there is something like : unable to create venv in directory

Aitrepreneur

;)

Danilo Ramscheid

u r the best bro thx for that

Aitrepreneur

Yeah I got that xD, altough lucky you your comments will be featured in today's video so I guess it was worth it? :D

Rai T00n

I think I wrote what I meant here in the post above XD


More Creators