Home Creators Posts Import Register Favorites Logout

Downloads

Content

Hey everyone! I've created 2 cool little files to make the Stable Diffusion installation much easier. No more fumbling through complicated installation steps - these files automates it all for you with just 1-CLICK!

Here's how it works:

1. Download ONE OF THE the batch file from this Patreon post and put it in an empty folder somewhere on your computer. 

2. Double click the batch file to run it. Sit back and relax! The file will automatically:

- Install Python and other dependencies

- Clone the Stable Diffusion repository from GitHub

- Download the required model files (only the SD_AUTO_INSTALL + SDXL.bat)

- Launch the web UI interface

In just a few minutes, you'll have Stable Diffusion up and running without any hassle. No coding or manual installation required!

Let me know if you run into any issues getting it set up! And as always, supporting me on Patreon allows me to keep creating helpful resources like this for the AI art community. Thank you for your support - now go make some awesome art

Files

Comments

Rai T00n

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

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

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

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.

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 . . .

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

Valentin Marcicki

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

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

You need to modify the user-webui bat file anyway to add --xformers, you can't really do that before the full install

Aitrepreneur

Watch my latest install video I show you where to put this

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

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

ça à finit par marcher, après plusieurs erreur j'ai quand même le dossier 'stable-diffusion-webui" qui est apparu, dedans j'ai télécharger des fichier les point bat "webui" et "webui user", topujours d'url à ce moment par ce que à la toute fin ça résultait sur une erreur. Apres ça j'ai relancer l'auto install et ça à marcher , je ne sais pas si tu as modifié autre chose entretemps mais actuellement sur mon pc portable ça install sans erreur ou modification

Aitrepreneur

Non j'ai rien modifié, pour une raison que j'ignore pour l'instant certaines personnes ont une erreur lorsqu'ils lancent l'installation auto

Sergio Floresollivier

Sorry. I tried to install sd+sdxl from your file. After installing python and github I received this message from my cmd and that's all. It only creates an empty folders

noa

was there a fix for this

noa

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

Aitrepreneur

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

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

Eddie Flickinger

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

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

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!

Joshua

Is there any solution? I got these messages when installing

Aitrepreneur

This means git was not installed correctly, this might means that either the download failed or that the installation was not done properly. This could also means that you might have a firewall or antivirus blocking the download, depending on which you are using this could be blocking the download. Try disabling the antivirus/firewall for a few minutes and try again with admin right or do the manual install instead

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...

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

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

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 ---

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

Aitrepreneur

The python version they recommend is the 3.10.6 it's stable and works well

Aitrepreneur

send me a DM on discord I will give you a special debug version to see where things got wrong in your installation

Aitrepreneur

It depends on your internet connection these are big models over 12GB total

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

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 . . .

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

DDinaraa

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

Aitrepreneur

you should have a link in the patreon that should also automatically give you your special rank in the server

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

Aitrepreneur

need more info what is your system and specs?

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

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

CGI Nerd

I tried running and I think it stopped at the following lines: File "D:\A1111 Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) 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 Stable diffusion model failed to load Applying attention optimization: Doggettx... done. I know when I installed Easy Diffusion I had to change some settings because of the graphics card I am running. I have a Nvidia GeForce GTX 1660 Ti

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

Your GPU is way too weak to be able to run SDXL, try either using a 1.5 model or using a google colab doc colab.research.google.com/github/camenduru/sdxl-colab/blob/main/sdxl_v1.0_webui_colab.ipynb

Stanley Flores

I have a 3090 and I got that issue? But after reading this is must be because 50% of my GPU was already in use. Maybe?

Svenpai

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

Svenpai

I resolved the issue, I got an error with the GPU. I have a different issue now. It eats up all of my memory and my PC crashes. And this is from just launching the thing, I haven't even generated anything yet. How much memory do I need for this? I have 16gigs

Zo__AI

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

Zo__AI

So can the link be sed on Mac at all?

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.

Aitrepreneur

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

Svenpai

GPU: amd radeon rx 6650 xt CPU: amd ryzen 5 5600x RAM: 2 x corsair 8gb vengeance lpx 3200 mhz cl16 ddr4

Aitrepreneur

yeah figured... unfortunately as of right now there no support for the webui for and cards. Actually most ai software don't even work with and cards only Nvidia but check your dms I'm sending you the auto installer for AMD cards, test it out and tell me if it works. Since I don't have an AMD I can't test the script myself, if it works for you, I will upload it for other people too.

Svenpai

Thank you! I'm currently out of town, so I'll test it tomorrow. Btw, in order to uninstall the old one, do I just delete the folder created in the directory, or do I have to delete some other things too? I noticed some things got added to the C drive during installation

Aitrepreneur

it's you can just delete the folder, most requirements to run the fork are gonna be the same anyway

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

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.

Sergio Floresollivier

Sorry, the installation is already working, but now I copied all my LORA models to the new SDXL webUI folder and now it only detect only a few ones, can you help me ?

Ruiz Lihuel Alejandro

Thank you for your fast response! I uninstalled 3 versions of Python that I found but sadly I run into this issue on my new attempt of installation: "Installing Python 3.10.6... Installing Git... Cloning stable-diffusion-webui repository... fatal: destination path 'stable-diffusion-webui' already exists and is not an empty directory. Listing the contents of the cloned repository... Volume in drive F is 6Tb Volume Serial Number is C003-91D3 Directory of F:\STABLE_difussion\XL\stable-diffusion-webui 04/08/2023 06:53 p. m. . 04/08/2023 07:25 p. m. .. 04/08/2023 06:47 p. m. 51 .eslintignore 04/08/2023 06:47 p. m. 3,288 .eslintrc.js 04/08/2023 06:47 p. m. 56 .git-blame-ignore-revs 04/08/2023 06:47 p. m. .github 04/08/2023 06:47 p. m. 534 .gitignore 04/08/2023 06:47 p. m. 122 .pylintrc 04/08/2023 06:47 p. m. 17,076 CHANGELOG.md 04/08/2023 06:47 p. m. 657 CODEOWNERS 04/08/2023 06:47 p. m. configs 04/08/2023 06:47 p. m. embeddings 04/08/2023 06:47 p. m. 178 environment-wsl2.yaml 04/08/2023 06:47 p. m. extensions 04/08/2023 06:47 p. m. extensions-builtin 04/08/2023 06:47 p. m. html 04/08/2023 06:47 p. m. javascript 04/08/2023 06:47 p. m. 1,001 launch.py 04/08/2023 06:47 p. m. 35,240 LICENSE.txt 04/08/2023 06:47 p. m. localizations 04/08/2023 06:47 p. m. models 04/08/2023 06:53 p. m. modules 04/08/2023 06:47 p. m. 196 package.json 04/08/2023 06:47 p. m. 798 pyproject.toml 04/08/2023 06:47 p. m. 11,588 README.md 04/08/2023 06:47 p. m. 52 requirements-test.txt 04/08/2023 06:47 p. m. 343 requirements.txt 04/08/2023 06:47 p. m. 541 requirements_versions.txt 04/08/2023 06:47 p. m. 420,577 screenshot.png 04/08/2023 06:47 p. m. 4,899 script.js 04/08/2023 06:47 p. m. scripts 04/08/2023 06:47 p. m. 18,754 style.css 04/08/2023 06:47 p. m. test 04/08/2023 06:47 p. m. textual_inversion_templates 04/08/2023 06:53 p. m. tmp 04/08/2023 06:53 p. m. venv 04/08/2023 06:47 p. m. 832 webui-macos-env.sh 04/08/2023 06:47 p. m. 92 webui-user.bat 04/08/2023 06:47 p. m. 1,380 webui-user.sh 04/08/2023 06:47 p. m. 2,223 webui.bat 04/08/2023 06:47 p. m. 17,574 webui.py 04/08/2023 06:47 p. m. 8,174 webui.sh 25 File(s) 546,226 bytes 17 Dir(s) 1,022,339,805,184 bytes free Changing directory to the cloned repository... Downloading models... Running webui-user.bat... Couldn't launch python exit code: 9009 stderr: No se encontr¾ Python; ejecuta sin argumentos para instalar desde Microsoft Store o deshabilita este acceso directo en Configuraci¾n > Administrar alias de ejecuci¾n de la aplicaci¾n. (It says that Python wasn't found, and that I should install it from the Microsoft Store or that I should disable this shortcut in settings > application alias administration. I'm sorry for my poor english) Launch unsuccessful. Exiting. Press any key to continue . . ." And if I try to launch the webui-user.bat file I find this error message: "venv "F:\STABLE_difussion\XL\stable-diffusion-webui\venv\Scripts\Python.exe" No Python at 'C:\Users\a77le\AppData\Local\Programs\Python\Python37\python.exe' Press any key to continue . . ."

Ruiz Lihuel Alejandro

I deleted the stable diffusion folder and then I ran again your installation program. Now it works like a charm. Thank you!

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.

Justin Wong

I having problem with it too

DDinaraa

"Stable diffusion model failed to load"

DDinaraa

File "D:\ai\SDA1111\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 26.00 MiB (GPU 0; 6.00 GiB total capacity; 4.24 GiB already allocated; 0 bytes free; 4.45 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.

George Miller

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

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

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.

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

Justin Wong

Installing Python 3.10.6... Installing Git... Cloning stable-diffusion-webui repository... Cloning into 'stable-diffusion-webui'... remote: Enumerating objects: 25015, done. remote: Counting objects: 100% (579/579), done. remote: Compressing objects: 100% (294/294), done. remote: Total 25015 (delta 380), reused 448 (delta 282), pack-reused 24436Receiving objects: 100% (25015/25015), 31.24 M Resolving deltas: 100% (17492/17492), done. Listing the contents of the cloned repository... Volume in drive C has no label. Volume Serial Number is DC94-D7DB Directory of C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui 08/07/2023 03:23 PM . 08/07/2023 03:23 PM .. 08/07/2023 03:23 PM 51 .eslintignore 08/07/2023 03:23 PM 3,288 .eslintrc.js 08/07/2023 03:23 PM 56 .git-blame-ignore-revs 08/07/2023 03:23 PM .github 08/07/2023 03:23 PM 534 .gitignore 08/07/2023 03:23 PM 122 .pylintrc 08/07/2023 03:23 PM 17,076 CHANGELOG.md 08/07/2023 03:23 PM 657 CODEOWNERS 08/07/2023 03:23 PM configs 08/07/2023 03:23 PM embeddings 08/07/2023 03:23 PM 178 environment-wsl2.yaml 08/07/2023 03:23 PM extensions 08/07/2023 03:23 PM extensions-builtin 08/07/2023 03:23 PM html 08/07/2023 03:23 PM javascript 08/07/2023 03:23 PM 1,001 launch.py 08/07/2023 03:23 PM 35,240 LICENSE.txt 08/07/2023 03:23 PM localizations 08/07/2023 03:23 PM models 08/07/2023 03:23 PM modules 08/07/2023 03:23 PM 196 package.json 08/07/2023 03:23 PM 798 pyproject.toml 08/07/2023 03:23 PM 11,588 README.md 08/07/2023 03:23 PM 52 requirements-test.txt 08/07/2023 03:23 PM 343 requirements.txt 08/07/2023 03:23 PM 541 requirements_versions.txt 08/07/2023 03:23 PM 420,577 screenshot.png 08/07/2023 03:23 PM 4,899 script.js 08/07/2023 03:23 PM scripts 08/07/2023 03:23 PM 18,754 style.css 08/07/2023 03:23 PM test 08/07/2023 03:23 PM textual_inversion_templates 08/07/2023 03:23 PM 832 webui-macos-env.sh 08/07/2023 03:23 PM 92 webui-user.bat 08/07/2023 03:23 PM 1,380 webui-user.sh 08/07/2023 03:23 PM 2,223 webui.bat 08/07/2023 03:23 PM 17,574 webui.py 08/07/2023 03:23 PM 8,174 webui.sh 25 File(s) 546,226 bytes 15 Dir(s) 108,885,766,144 bytes free Changing directory to the cloned repository... Downloading models... Running webui-user.bat... Creating venv in directory C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\venv using python "C:\Users\User\AppData\Local\Programs\Python\Python310\python.exe" venv "C:\Users\User\Desktop\New folder (2)\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 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118 Collecting torch==2.0.1 Using cached https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-win_amd64.whl (2619.1 MB) Collecting torchvision==0.15.2 Downloading https://download.pytorch.org/whl/cu118/torchvision-0.15.2%2Bcu118-cp310-cp310-win_amd64.whl (4.9 MB) ---------------------------------------- 4.9/4.9 MB 2.3 MB/s eta 0:00:00 Collecting jinja2 Downloading https://download.pytorch.org/whl/Jinja2-3.1.2-py3-none-any.whl (133 kB) ---------------------------------------- 133.1/133.1 kB 782.6 kB/s eta 0:00:00 Collecting filelock Downloading filelock-3.12.2-py3-none-any.whl (10 kB) Collecting networkx Downloading networkx-3.1-py3-none-any.whl (2.1 MB) ---------------------------------------- 2.1/2.1 MB 1.3 MB/s eta 0:00:00 Collecting typing-extensions Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB) Collecting sympy Downloading sympy-1.12-py3-none-any.whl (5.7 MB) ---------------------------------------- 5.7/5.7 MB 991.6 kB/s eta 0:00:00 Collecting pillow!=8.3.*,>=5.3.0 Downloading Pillow-10.0.0-cp310-cp310-win_amd64.whl (2.5 MB) ---------------------------------------- 2.5/2.5 MB 1.8 MB/s eta 0:00:00 Collecting requests Downloading requests-2.31.0-py3-none-any.whl (62 kB) ---------------------------------------- 62.6/62.6 kB 1.1 MB/s eta 0:00:00 Collecting numpy Downloading numpy-1.25.2-cp310-cp310-win_amd64.whl (15.6 MB) ---------------------------------------- 15.6/15.6 MB 2.5 MB/s eta 0:00:00 Collecting MarkupSafe>=2.0 Downloading MarkupSafe-2.1.3-cp310-cp310-win_amd64.whl (17 kB) Collecting certifi>=2017.4.17 Downloading certifi-2023.7.22-py3-none-any.whl (158 kB) ---------------------------------------- 158.3/158.3 kB 1.9 MB/s eta 0:00:00 Collecting urllib3<3,>=1.21.1 Downloading urllib3-2.0.4-py3-none-any.whl (123 kB) ---------------------------------------- 123.9/123.9 kB 728.6 kB/s eta 0:00:00 Collecting charset-normalizer<4,>=2 Downloading charset_normalizer-3.2.0-cp310-cp310-win_amd64.whl (96 kB) ---------------------------------------- 96.9/96.9 kB 693.4 kB/s eta 0:00:00 Collecting idna<4,>=2.5 Downloading https://download.pytorch.org/whl/idna-3.4-py3-none-any.whl (61 kB) ---------------------------------------- 61.5/61.5 kB 470.6 kB/s eta 0:00:00 Collecting mpmath>=0.19 Downloading mpmath-1.3.0-py3-none-any.whl (536 kB) ---------------------------------------- 536.2/536.2 kB 551.3 kB/s eta 0:00:00 Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision Successfully installed MarkupSafe-2.1.3 certifi-2023.7.22 charset-normalizer-3.2.0 filelock-3.12.2 idna-3.4 jinja2-3.1.2 mpmath-1.3.0 networkx-3.1 numpy-1.25.2 pillow-10.0.0 requests-2.31.0 sympy-1.12 torch-2.0.1+cu118 torchvision-0.15.2+cu118 typing-extensions-4.7.1 urllib3-2.0.4 [notice] A new release of pip available: 22.2.1 -> 23.2.1 [notice] To update, run: C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip Installing gfpgan Installing clip Installing open_clip Cloning Stable Diffusion into C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\stable-diffusion-stability-ai... Cloning into 'C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\stable-diffusion-stability-ai'...remote: Enumerating objects: 574, done. remote: Counting objects: 100% (304/304), done. remote: Compressing objects: 100% (86/86), done. remote: Total 574 (delta 244), reused 218 (delta 218), pack-reused 270 Receiving objects: 88% (506/574), 72.86 MiB | 2.57 MiB/s Receiving objects: 100% (574/574), 73.43 MiB | 2.54 MiB/s, done. Resolving deltas: 100% (276/276), done. Cloning Stable Diffusion XL into C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\generative-models... Cloning into 'C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\generative-models'... remote: Enumerating objects: 504, done. remote: Counting objects: 100% (327/327), done. remote: Compressing objects: 100% (176/176), done. remote: Total 504 (delta 201), reused 201 (delta 142), pack-reused 177 Receiving objects: 100% (504/504), 22.29 MiB | 2.44 MiB/s, done. Resolving deltas: 100% (239/239), done. Cloning K-diffusion into C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\k-diffusion... Cloning into 'C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\k-diffusion'... remote: Enumerating objects: 735, done. remote: Counting objects: 100% (11/11), done. remote: Compressing objects: 100% (7/7), done. Receiving objects: 100% (735/735), 143.84 KiB | 1.25 MiB/s, done. Resolving deltas: 100% (481/481), done. Cloning CodeFormer into C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\CodeFormer... Cloning into 'C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\CodeFormer'... remote: Enumerating objects: 594, done. remote: Counting objects: 100% (245/245), done. remote: Compressing objects: 100% (97/97), done. remote: Total 594 (delta 175), reused 170 (delta 148), pack-reused 349Receiving objects: 98% (583/594), 16.58 MiB | 2.34 MiB/s Receiving objects: 100% (594/594), 17.31 MiB | 2.34 MiB/s, done. Resolving deltas: 100% (286/286), done. Cloning BLIP into C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\BLIP... Cloning into 'C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\BLIP'... remote: Enumerating objects: 277, done. remote: Counting objects: 100% (165/165), done. remote: Compressing objects: 100% (30/30), done. remote: Total 277 (delta 137), reused 136 (delta 135), pack-reused 112 Receiving objects: 100% (277/277), 7.03 MiB | 2.51 MiB/s, done. Resolving deltas: 81% (124/153) Resolving deltas: 100% (153/153), done. Installing requirements for CodeFormer Installing requirements 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\User\Desktop\New folder (2)\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: 844.7s (launcher: 821.4s, import torch: 11.6s, import gradio: 2.4s, setup paths: 2.0s, other imports: 2.6s, setup codeformer: 0.3s, list SD models: 0.2s, load scripts: 3.1s, create ui: 1.0s, gradio launch: 0.2s). e6bb9ea85bbf7bf6478a7c6d18b71246f22e95d41bcdd80ed40aa212c33cfeff Loading weights [e6bb9ea85b] from C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\models\Stable-diffusion\sd_xl_base_1.0_0.9vae.safetensors Creating model from config: C:\Users\User\Desktop\New folder (2)\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml Downloading (…)olve/main/vocab.json: 100%|██████████████████████████████████████████| 961k/961k [00:00<00:00, 2.78MB/s] Downloading (…)olve/main/merges.txt: 100%|██████████████████████████████████████████| 525k/525k [00:00<00:00, 2.45MB/s] Downloading (…)cial_tokens_map.json: 100%|████████████████████████████████████████████████████| 389/389 [00:00

Justin Wong

I cant click on the local link

Justin Wong

actually The link works, but I having trouble with it, it keep saying connect error

Justin Wong

now I cant use the link anymore :(

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

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

Glen

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

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:

Canal Resumo de Livros

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

Canal Resumo de Livros

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

when does this error happen? It's apparently a common bug in the webui

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

Aitrepreneur

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

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

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

Aitrepreneur

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

Joel Smith

I'm having the same issue. What do I need to change the file size to?

Dustin Wayde Mills

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

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.

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?

Aitrepreneur

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

Planethanz

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.

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)

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

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

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

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

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 . . .

JaMina

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

Antonio Lua

is 16 gigs of ram and 3060 RTX good enough?

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?

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

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 . . .

Milo De Win

what could I do to solve this?

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

Elijah Boor

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.

Si D

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

Joel Smith

I see the URL i can't click it. I also can't copy and paste (not even ctrl+v), I try to type the URL into firefox and nothing happens. Any suggestions?

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 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 🥲

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

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

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?

s0up

RMB to copy\paste in terminal

Dallas

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

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?

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?

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.

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. 😁

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

Aitrepreneur

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

Anto

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

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.

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

anthony trisvane

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

anthony trisvane

Error while deserializing header: metadataincompletebuffer

Lev Israel

Yeah I tried that then an error pops up saying "Windows cannot find 'Git-2.41.0.3-64-bit.exe'. Make sure you typed the name correctly, and then try again." Could this be happening because of the recent update of Git from Git-2.41.0.3-64-bit.exe to Git-2.42.0.3-64-bit.exe and if so is there anything I can do?

Aitrepreneur

no git's version should not be an issue, also you should already have git installed so no need to install it again. But I actually updated the installer (put some saftey and debug features) so it should be easier to see where the problem is, just redownload the new version and try again

Jazz

Lev Israel

After it installs Python or Git It immediately shuts down or in better words.. closes the command prompt and stops running.

Waleed

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

João Reis

The bat file starts by downloading python. Then it doesnt start the python-3.10.6-amd64 and closes the terminal. To go around this: we need to install python and git first. then run the bat file.

Aitrepreneur

try downloading the current bat file I just modified them to add some small debug fix, but everything should have been installed and run already

Jessica Timm

Hey, thank You for making this, worked perfectly.

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!

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

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 . . .

Hunter Roudebush

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

Mktpa

try to install manually python-3.10.6-amd64 (find it on internet). After that re-open the .bat and it should say "Python already installed" and it will automatically continue the installation. Do the same if for GIT (Git-2.41.0.3-64-bit) it's does not for work too. And if it say "Python was not found; run without arguments" modify environment variables by following a tutorial.

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. )

Snick3rs

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

steve c

make sure git and python both installed manually, i installed 3.11 python and it seems to be fine

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.

Aitrepreneur

you probably have some firewall or antivirus blocking the downloads, you can try disabling them and try again with the newest version I uploaded

Aitrepreneur

you probably have some firewall or antivirus blocking the downloads, you can try disabling them and try again with the newest version I uploaded

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

Snick3rs

Thanks ! It seems to work better, but it stops at "Stable diffusion model failed to load Applying attention optimization: Doggettx... done. Interrupted with signal 2 in Terminer le programme de commandes (O/N) ? " Any ideas ?

Aitrepreneur

what happens if you download another model?

Edmunds Kemme

For me the bat file just stops and does nothing once it reaches the Line Downloading models...been like that for half an hour. Tried uninstalling and manually installing python, ran the bat file multiple times. But nothing. Thoughts?

Aitrepreneur

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

Doggoscape

Thanks friend. love your vids. I'll give it another try. edit: firewall. I'm sorry for wasting your time. thanks for the reminder.

HOGs

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

Aitrepreneur

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

Hunter Roudebush

Got it! Thanks! I was a bit confused because there was a security prompt from windows that came up and I told it to run it anyway, but I guess that was separate from the Windows Defender Firewall. Worked perfectly after that. You're the best!

Snick3rs

thanks for your help. It's seems that the problem is because my pc is just not good enough to run local stable diffusion.. I've got an I7 processor, but a GTX 1060 3gb... Everytime i tried another model, i juste had an error message that i don't have enough 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 . . .

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

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

daishukiy

hey, my GPU is AMD Radeon RX 6800, can i know what u mean by another installer? sorry im not very knowledgeable on these stuff

Aitrepreneur

Auto1111 (and most ai tools) are usually only for Nvidia gpus, if you have an AMD card you need to use something else. I made another 1 click installer for AMD that you can find here: https://we.tl/t-w8t7r4aKoD Unfortunately since I don't have an AMD card I can't make sure it works but try it out anyway

daishukiy

ah that's unfortunate, ill try that asap tmrw, thank you for helping out with the inquiries! Will let you know the updates on it

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

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

theRCB

hmmm, nvm i think I got it working. I know on my personal install though I've been having issues with my PC just freezing up, which causes me to have to force restart my PC. I have the following specs and setup: I'm using this for my command line: set COMMANDLINE_ARGS=--xformers --opt-split-attention --medvram --api --no-half I have the following specs for a desktop PC: GPU: GIGABYTE GeForce RTX 4090 GAMING OC 24GB CPU: AMD Ryzen 7 2700X RAM: Corsair LPX 32GB (2x16GB) 3200MHz C16 DDR4 DRAM MOTHERBOARD: GIGABYTE X470 AORUS ULTRA GAMING I am running Windows 10. I will try your installation once it's done, but just in case is there any reason you see from my set up that it would be doing that?

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.

theRCB

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

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

I added them because everything was unusable before, but clearly adding them isn't helping either.

Aitrepreneur

what's the issue exactly? with a 4090 you shouldn't use any arguments besides xformers

theRCB

So, it's hard to put into words, wish I could show you in person or something. The issue I'm having are the following: All my image generations are mutated, weird, and too simple, and are awful. Doesn't matter if it's SDXL or some other model. Inpainting seems to be inpainting blurry specks, noise, random lines, or tries to fit my prompt in the exact dimensions of the mask instead of being more realistic and the inpainting part is still incoherent gibberish. I try to inpainting with or do image 2 image with SDXL and it freezes my pc as if my pc can't handle it for some reason. Also Switching between models takes forever.

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. ---

Deepak

Intel R UHD Graphics

daishukiy

Hey! I think the amd one works for mine, it gave me a local URL, thank you again! update: i tried to generate some images but it seems that it only generate a while and then started failing, might be because of the GPU issue, damn

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

Aitrepreneur

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

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

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

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

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

Fershio

Its saying no module named pip Launch unsuccesful

Patrice.R

I have this following message: torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 136.00 MiB (GPU 0; 8.00 GiB total capacity; 6.99 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

Patrice.R

My resolution was 512 x 740, nothing too big. The image starts generating and then it stops and I get that always same message. Merci d'avance pour ton aide!

Fershio

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

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

Duron K Weathington

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

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!

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

Patrice.R

I agree. I have indeed added the --xformers input in the wbui-user bat file. My main concern is why is my GPU is already saturated to its full capacity as soon as I launch the webui.bat file. SD 1.5 is stable at 3.5Gb. Would you have any pointers to help me solve that issue?

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

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

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

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

Thanks again for your reply. I, once again, edited the webui-user. bat file line 6 with the arguments as instructed and unfortunately, I still end up with the line: (No module 'xformers' . Proceeding without it) in the cmd window. More over, and I failed to mention, the interface has never loaded with the black theme or auto launched during my many previous attempts. It is quite regrettable that SDXL is not working for me because I feel that I wont be able to benefit from all the immense source of tips and info which you will provide through my sub to your patreon. Shall I attempt a reinstall? is there another way?

Aitrepreneur

that really means that for some reason it's not reading the arguments inside the bat file, let's try something else. download this webui bat file: https://we.tl/t-JBheO9PwPU and copy and paste it inside the stable diffusion webui folder, then if it asks you to replace the file, you say yes, then try relaunching it again

Patrice.R

I really wished this latest action would have been a success. I did it as instructed; I downloaded the file, replaced it and launched the webui.bat to no avail. Here is the cmd line I got: Launching Web UI with arguments: no module 'xformers'. Processing without... no module 'xformers'. Processing without... No module 'xformers'. Proceeding without it. I decided to do an new install on a different drive hoping it could work but once again I keep encountering the same troubles. I really appreciate your time to help me solve this issue and it looks like SDXL does want to work on my machine for some weird reasons.

Aitrepreneur

btw just to make sure, you are launching the same file right the "webui-user.bat" file not the "webui.bat", this is a completely different file. I know this is confusing but you don't need to launch sd with webui.bat, you need to use the file you just replaced (webui-user.bat)

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

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

Fantastic!!!!! It is working! . I ran some generations tests and it looks like it is stable. Thank you so much for taking the time to solve my problem. 5 stars for you!

Daniel G

Any plan of doing this for MacOS?

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

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)

Daniel G

Thank you, i'll check it when i get home. BTW, any idea why i can't find the LORAs from Civitai when i drop them on the right folder? (C:\Users\PC1\Documents\Stable Diffusion\stable-diffusion-webui\models\Lora)

Aitrepreneur

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

Marc

Do we need to run the batch file everythime to start

Aitrepreneur

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

Jose

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

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

ai collectiveq

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

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.

Aitrepreneur

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

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

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

Thank you so much for getting back to me. When I search "webui" in my C drive (the drive that filled up when i downloaded) the only things that come up are folders called 'webui_js' , but they are dated from before i downloaded from your link. Is it possible the folder / files could be called anything else?

Aitrepreneur

the folder should be simply called "stable-diffusion-webui" nothing else. If you need to liberate some space on your computer and find the files that take the most amount of space, you can use a software like windirstat (https://windirstat.net/) and analyze your drives to search for the most voluminous files and then delete them easily

Marru

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

Aitrepreneur

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

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

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

Thanks for the quick reply! Disabled windows firewall and protection, and also disabled the antivirus. I'll try to look at adding it as exception and/or further disabling more windows security (if there is more). I'll let you know later on if it worked or not: https://streamable.com/sn9r65

ForgotttenMemory

A quick update: I uninstalled my antivirus (kaspersky), tweaked firewall, windows security, edited the batch file to give it extra acces and ports... I want to bang my head against a wall. My mistake was executing it as administrator every time, just doing a mere double click on the .bat is what made it work, executing as administrator made it NOT work. I hope this helps you help future users with issues. Thanks a lot for creating this!

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

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

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 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

I got it; sorry it took a few tries :)

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 your gpu? If you have an AMD you need another installer let me know

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

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

amd radeon rx 6600 xt I hope thats it xd

Aitrepreneur

yeah in that case you need a different installer since you have an AMD card, SD (and most Ai softwares only work well with Nvidia cards) but you can try this one for AMD but I can't promise it will work correctly : https://we.tl/t-JFbFswglfv

Kamil Wołczek

untimeError: Could not allocate tensor with 4915840 bytes. There is not enough GPU video memory available! Is my GPU that bad ?

Daniel LeMunyan

Neither link works for me .. running windows 10

Larry Erickson

whenever I run it it gets to installing git then closes

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

Oggie Doggie

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

Aitrepreneur

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

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

Kamil Wołczek

From what i read it is strong enought, should i do something else ?

Ph0enixMind

Yep. I was trying to install as Administrator and getting the same error. But just simply double clicking it I get no error and it installs just fine.

Stephen Berry

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

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.

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

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.

Aitrepreneur

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

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

Runaja

does only downloa pyton...wich i alredy have

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

Otniel Ocampo

Ok I think I fixed it since the Program did launch on the Browser by going inside of the cmd_args.py file and changing the line 11 for the CUDA test from true to false!!! I hope that was the right way!!! Now I have an error on the program that says RuntimeError: "LayerNormKernelImpl" not implemented for 'Half' Let me know if I'm doing things right

Aitrepreneur

no that's not the right way, as I said the automatic1111 webui only works with Nvidia gpus (actually most Ai softwares only work with Nvidia gpus) so you need to use another Github repository if you have an AMD card, thus use the one I provided via that link: https://we.tl/t-8bv7TvfcFO

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

CJ

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

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 :)

George Strnad

I have the same problem, but, to be specific, I downloaded the .bat file, ran it, and walked away. When I came back, there was no cmd prompt window. nothing up. except some old chrome windows. So, after looking for a directory, other than some old attempts to install from A1111 myself, I tried to run the .bat file, and that's when it started to do the on for 1 second and dissapear thing. So, I read above, and turned off all 3 firewalls in windows. tried again, and same issue. Please Help

Aitrepreneur

it really depends on your own personal config and softwares running, if the window disappear that means one of your software is blocking the file from running, usually the antivirus and/or firewall, so you need to disable it temporarily for the installation

George Strnad

why would it work first then not work. especially if I turend off the firewall from windows.

Aitrepreneur

Because some security softwares like antiviruses may initially allow a file to run but then flag it as suspicious right after, preventing it from executing completely

Alexandre

is there an auto install + SDXL for AMD GPU ?

Alexandre

and how many space did it takes ?

Peter Rossa

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

Aitrepreneur

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

Peter Rossa

Thank You, quick question if You could be so kind, I think I should install upscalers models right ? this installation is without any upscalers isnt it? (upscaler doesnt working)

Peter Rossa

nevermind it works perfectly, thx

Steve Sawford

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

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.

David Fairweather

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

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"

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'

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

Sivark

Does this work for Mac?

Peter Rossa

Im no expert, but maybe antivirus added it to quarantinne or something ?

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.

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

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!

Aitrepreneur

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

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?

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

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

Aitrepreneur

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

Phillip Gimmi

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

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

Phillip Gimmi

3080ti and a 5950 cpu with 64gigs of ddr4 ram

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.

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

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.

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've somehow got it working after copying some command from a batch file to git clone manually and copying the models through a web browser and clicking on the webui.bat I think. So the UI is working now and generating images with the base model (havent tried doing something with the refiner yet). But when it was about to launch the UI it said "no module 'xformers'. Processing without it". Is there any way I can make it have that module - as I assume it's not going to be running as fast as it could be without it.

Aitrepreneur

check my stable diffusion install video I show how to add arguments there, you need to add --xformers inside the webui-user.bat file

Symphor

I have a same problem and I have disale all antivirus but the same problem, and when I try manualy I have this message on installation of webui-user RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check

Symphor

How can i fix this

Aitrepreneur

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

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?

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

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

Aitrepreneur

both auto111 and sdxl if you chose the SD_AUTO_INSTALL + SDXL.bat file

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

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

Brunovsky

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

I Bea

Could you let us know?

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

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

Russ Ader

I downloaded and installed using the SD_AUTO_INSTALL + SDXL.bat The error is... "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." Again, this error is only image to image. I started putting in the lines the error mentioned, like "--no-half"; but it did not work and only seemed to slow everything to a halt. That is when I figured to post here looking for some help incase there is something different about your build vs is someone fights to install everything the long hard painful way. I deleted my whole SDXL folder tonight and re-ran the .bat file to reinstall, but unfortunately that didn't fix it. Text to image works great. The weirdest part is SD1.5 works like a charm? I must admit, I have no idea what I'm doing or to do. It's a miracle I got 1.5 running on my own and I know I couldn't repeat the process which is why I came here. Incase it matters I'm running an Asus Strix: AMD Ryzen 9 5900HX NVIDIA GeForce RTX 3080 Laptop GPU w/8 gigs Vram Samsung SSD 980 PRO 2TB 64 gigs ram Windows 11 Home Any help is appreciated

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??

Dimitris Kaouris

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

Aitrepreneur

this usually means that your antivirus/firewall is blocking the connection, disable them for a few minutes or create an exception for the file before running it

Silas

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

Aitrepreneur

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

Aris Leou

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

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

got any for windows and amd? I made a linux setup specialy for amd gpu because o read that you need linux for amd...

KHU

Aitrepreneur

the amd one is already linked on this page (AMD-SD_AUTO_INSTALL + SDXL.bat)

Aitrepreneur

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

Aitrepreneur

there are too many anime models to really follow or choose from...there are all veryyyy similar... just go on civitai and filter by most downloaded or most rated for a 1.5 checkpoint

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

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

Hi, I already had found this out. But I have the latest version of windows 10 N, and there is no Optional Features where whole of the internet says where it should be :-) So I put my solution also here for someone else who has the same problem like i had. The Optional features you can find by going to: SETTINGS - SYSTEM - OPTIONAL FEATURES and selecting Media Feature Pack there... Thanks again for your response...

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?

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

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

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

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?

CG00

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

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

that one kinda worked until I go this error "RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check"

Jack

Hi, can you share the mac installer again?

Aitrepreneur

what gpu do you have? AMD? if that's the case you need to use the AMD installer

Ryan Burke

So, this is the issue I was having until I ran it as an administrator. But then after installing Git, it gives the error message 'the system cannot find the file specified'

Aitrepreneur

Do not run as admin, run the special amd installer normally

CG00

i give up thanks for the help amd one didnt work either youre guide was good tho

Mau M

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

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

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

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 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

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

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?

Michael Coimbra

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

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

Duncan

Worked. Awesome! Thnx so much.

Chase Anderegg

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

Chase Anderegg

It worked but this is for text gen, I am trying to get stable diffusion up and running, is there a separate link? Thank you :)

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

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

Michael Coimbra

I downloaded the link but I don't see it installed. How do I install?

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

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

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

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!

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?

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

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

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

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

St Lask

Install works great, Now im having issues loading imgs. OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 6.00 GiB total capacity; 5.15 GiB already allocated; 0 bytes free; 5.30 GiB reserved in total by PyTorch) i7-4930k Nvida GeForce RTX 2060 32bg DDR3 Ive updated my drivers and im hoping theres something i can do

Aitrepreneur

this means you don't have enough vram to run the operation, if you have the latest nvidia drivers, you can edit the webui-user.bat file and add the --xformers argument on the args line (set COMMANDLINE_ARGS=--xformers) save the file then relaunch the webui

St Lask

Got it to work with (set COMMANDLINE_ARGS=--xformers --medvram)

Willy's Photos (edited)

Comment edits

2026-09-08 20:00 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 ?
2024-01-29 18:28

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

Aitrepreneur

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

tuxX

same with me. It did work well several montah ago. Then suddenly the results are not being shown anymore. I'm running a RTX 4080 with AMD ryzen 5800x I reinstalled it from scratch, tried different settings, but nothing seems to help. The generated picture are fine and saved, but no result view.

Aitrepreneur

Willy, the 1660 GPU requires the --precision full --no-half arguments. Edit the webui-user.bat file, and on line 6 put those arguments so it looks like that: set COMMANDLINE_ARGS=--xformers --precision full --no-half save the file then relaunch it

Aitrepreneur

Kalle, do you have any errors in the command prompt? Are you using controlnet when generating those images? Have you tried re-installing it in a new folder? Is live preview option activated in settings?

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

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

Aitrepreneur

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

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

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

You are a beast, appreciate it man!

Aitrepreneur

This means you don't have enough vram to run the operation, make sure that you have downloaded the latest nvidia drivers, this will activate system memory fallback

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

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

Kubrows

it's already disabled unfortunately

Kubrows

I might have gotten it to work actually, since I already had python installed, I uninstalled python and it now is installing git after it installed python

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

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

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?

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

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

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

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

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

Rey

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

Rey

I already fixed, only have to execute as administrator Ty

Nathan Blake

I'm getting the same. I have a 7900XTX and I ran the AMD install

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

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:

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.

Aitrepreneur

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

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

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

Aitrepreneur

That error might also mean that you have an incorrect initial python installation which is probably the case if you are getting this error and are using the right file, you need to uninstall every trace of python, use the 3.10.6 python installer to reinstall it, by checking the add to path checkbox correctly, then you can relaunch the installer again in a new folder. If you still got an issue after that I can take a look with teamviewer

Aitrepreneur

Yeah it happens, whenever I help someone live, the first thing I check is correct python install, in 90% of cases it wasn't done correctly, sometimes it's not even the fault of the person, just windows being weird

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

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

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

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

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!

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 ?

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

Goblin

I am also geting this error, and I have it typed properly

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

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

euphobie

no worries, finally manage to resolve, i didnt have follow all the steps

Jessica Gould

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

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

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 . . .

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?

Aitrepreneur

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

Aitrepreneur

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

MemeL0rd420

I have the same version. I may have fixed it by adding a line into webuiuser.bat to reinstall xformers

MemeL0rd420

Now it comes up with this when I try to generate an image :'( NotImplementedError: No operator found for `memory_efficient_attention_forward` with inputs: query : shape=(1, 4096, 1, 512) (torch.float16) key : shape=(1, 4096, 1, 512) (torch.float16) value : shape=(1, 4096, 1, 512) (torch.float16) attn_bias : p : 0.0 `cutlassF` is not supported because: xFormers wasn't build with CUDA support `flshattF` is not supported because: xFormers wasn't build with CUDA support max(query.shape[-1] != value.shape[-1]) > 128 requires a GPU with compute capability > 7.5 `tritonflashattF` is not supported because: xFormers wasn't build with CUDA support max(query.shape[-1] != value.shape[-1]) > 128 triton is not available requires A100 GPU `smallkF` is not supported because: xFormers wasn't build with CUDA support dtype=torch.float16 (supported: {torch.float32}) max(query.shape[-1] != value.shape[-1]) > 32 unsupported embed per head: 512

Aitrepreneur

send me all the info in dm instead, easier for me to follow

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

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

Dario van Houwelingen

Thanks for your reply. However, this was not the case for me. The installer was located in C:/AI/Stable_Diffusion but the package was installed in C:/Windows/System32

Aitrepreneur

did you run the installer with admin rights? you need to run the installer normally

Dario van Houwelingen

Ah yes that was it, I ran it with admin rights. All good now, thanks!

Littlebitofthat

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

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

Aitrepreneur

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

Vicente Ruocco

I have the same issue ): I have gtx 1050

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!

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

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

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

Leon Jeppesen

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

Aitrepreneur

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

Risky KC

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

Risky KC

it sttes that torech is unable to use gpu

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

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.

Starseed.1111

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

Aitrepreneur

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

Starseed.1111

So when I tried running the webui-user.bat file, I got a bunch of errors pretty much the same as this examples throughout, SDA1111 still launches but everything it generates is scuffed and low quality: Requirement already satisfied: six>=1.5 in p:\local ai\stable diffusion auto 1111\stable-diffusion-webui\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->mediapipe) (1.16.0) Installing collected packages: flatbuffers, pycparser, protobuf, opt-einsum, opencv-contrib-python, ml-dtypes, absl-py, jaxlib, jax, CFFI, sounddevice, mediapipe Attempting uninstall: protobuf Found existing installation: protobuf 3.20.0 Uninstalling protobuf-3.20.0: Successfully uninstalled protobuf-3.20.0 stderr: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'P:\\Local AI\\Stable Diffusion Auto 1111\\stable-diffusion-webui\\venv\\Lib\\site-packages\\cv2\\cv2.pyd' Check the permissions. [notice] A new release of pip available: 22.2.1 -> 24.0 [notice] To update, run: P:\Local AI\Stable Diffusion Auto 1111\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip Warning: Failed to install mediapipe, some preprocessors may not work. I ran the pip update and tried launching it again. Those error messages are now gone, but everything it generates is still scuffed. Do have any idea what the problem would be why windows is not allowing access to this folder? I'm assuming I'm going to have to try and run the whole setup again from the beginning but I'd like to make sure I don't run into the same problem with Windows not allowing access to the folder for some reason...

Aitrepreneur

first make sure that you have the right python version correctly installed. Go to the add and remove programs, search for python and uninstall any python version you see. 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. Then just relaunch the 1-click installer in a new folder and try again.

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

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

Oh wow! - Thank you for the super quick response! Apparently, the batch file installed the correct version of Python and Git and then just crapped out for some reason. It didn't clone the repository or download models or start the webui at all. No prompts, no errors, no pause at the end, it just died. This is a brand new PC build. All good though! - I'm just walking through the steps again in one of your videos and enjoying doing it that way regardless. I just wanted to try the batch file you made to see what happens. Thank you again!

Starseed.1111

I had the right version installed so I went ahead and re-run it again. No idea why it didn't work properly the first time, but it's working now. 👍

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

PropForge

im unsure how but i have seemed to have fixed it

Zeis

I'm getting the exact same issue. Any chance you can figure out how you fixed it?

Aitrepreneur

This is probably 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 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.

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

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

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

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

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

Gustavo Coelho

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

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.

Ian Brumley

Nvidia 6gb of vram. I finally figured out how to add the --lowvram to the bat file. it works now

Aitrepreneur

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

Ken L. Black

Unfortunately. I have issues! I created a directory called AUTO1111 on my C: drive, and placed the bat there. It installed and it ran fine...the first time. Now it not only doesn't run, but it installed everything in Windows\System32, which is not ideal. Why didn't it install in the directory I created in it? NOW, when I head to Windows\System32\stable-diffusion-webui and try running the webui-user.bat file it says it couldn't launch python. I tried moving the stable-diffusion-webui directory to my AUTO1111 directory that I would have preferred, and it still won't run. (Not surprisingly, since nothing's changed.) To troubleshoot a bit, right-clicking and running webui.bat as an administrator doesn't work, as it claims it can't find python, either, despite the fact that it's there in the directory. What gives? At this point, I'd almost prefer to uninstall EVERYTHING! I downloaded this to try out SD1.5 within AUTO1111, as I'm using fooocus to run SDXL. But the one time it ran, it didn't even have SD1.5, as it automatically installed SDXL only, not SD1.5. (Which still has the most LORAs.) So, all sorts of things are wrong at this point. Why did it only run when I first installed it, and not anymore?? (And any tips to install SD1.5?)

Aitrepreneur

First of all the reason why it's somehow installed in system32 is because you launched as admin, don't do that (you might be launching it as admin automatically for some reason so check that it's not the case). Also for the models, go to civitai.com and dl the models you want and loras you want, there is not need to use the base 1.5 or base sdxl unless you want to, it just does dl it automatically for beginners

Ken L. Black

Thanks for the quick reply. I got it to work (yay!), but am sharing my experience so that others might see it, just in case. Everything ran....until this point: -------------------------------- Models downloaded successfully! 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. ----------------------------------------- Soooooo.....I did some Googling and this appears to be an issue with other users, judging from Auto1111's github page. It boils down to checking where Python was installed and then adding to the PATH in Environment Variables in Windows. Oddly, I never got any dialog box like I've seen online regarding enabling a checkbox to add Python to the Path. I also read where one should reboot the system afterwards. Anyway, things seem to be working......for now! Thanks!

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's because the installer automatically installs the latest version so it doesn't need to "update"

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

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

Python uninstall ok, current version is 3.10.11. I relaunched the 1-click installer, during installation : Running webui-user.bat... exit code: 1 stderr: C:\Users\Shadow\AppData\Local\Programs\Python\Python310\python.exe: No module named pip

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

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

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

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

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"

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

Digitally-Devious

Hi, I know this is the old stuff but I recently installed a 5060ti and need help with an error I get now "RuntimeError: CUDA error: no kernel image is available for execution on the device 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." If you could help me sort this out I would appreciate it!

Aitrepreneur

Well auto1111 webui is a dead project, it hasn't been updated in a year. Hence why it probably doesn't support 5000 series gpus