Stable diffusion ошибка

Please Help, I am not a coder but I am having issues installing Stable Diffusion. In theory from my understanding at the end I should receive a URL link to go to stablke diffusion but it doesn’t appears. I see a lot of error messages here, what do I need to do?
Thanks

venv «D:\STABLE DIFFUSION\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)]
Commit hash: 98947d173e3f1667eba29c904f681047dea9de90
Installing torch and torchvision
Traceback (most recent call last):
File «D:\STABLE DIFFUSION\stable-diffusion-webui\launch.py», line 255, in
prepare_enviroment()
File «D:\STABLE DIFFUSION\stable-diffusion-webui\launch.py», line 173, in prepare_enviroment
run(f'»{python}» -m {torch_command}’, «Installing torch and torchvision», «Couldn’t install torch»)
File «D:\STABLE DIFFUSION\stable-diffusion-webui\launch.py», line 34, in run
raise RuntimeError(message)
RuntimeError: Couldn’t install torch.
Command: «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\Scripts\python.exe» -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 —extra-index-url https://download.pytorch.org/whl/cu113
Error code: 2
stdout: Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113
Collecting torch==1.12.1+cu113
Downloading https://download.pytorch.org/whl/cu113/torch-1.12.1%2Bcu113-cp310-cp310-win_amd64.whl (2143.8 MB)
———————- 1.2/2.1 GB 9.1 MB/s eta 0:01:43

stderr: ERROR: Exception:
Traceback (most recent call last):
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py», line 435, in _error_catcher
yield
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py», line 516, in read
data = self._fp.read(amt) if not fp_closed else b»»
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py», line 90, in read
data = self.__fp.read(amt)
File «C:\Users\franc\AppData\Local\Programs\Python\Python310\lib\http\client.py», line 465, in read
s = self.fp.read(amt)
File «C:\Users\franc\AppData\Local\Programs\Python\Python310\lib\socket.py», line 705, in readinto
return self._sock.recv_into(b)
File «C:\Users\franc\AppData\Local\Programs\Python\Python310\lib\ssl.py», line 1274, in recv_into
return self.read(nbytes, buffer)
File «C:\Users\franc\AppData\Local\Programs\Python\Python310\lib\ssl.py», line 1130, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\cli\base_command.py», line 167, in exc_logging_wrapper
status = run_func(*args)
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\cli\req_command.py», line 247, in wrapper
return func(self, options, args)
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\commands\install.py», line 369, in run
requirement_set = resolver.resolve(
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py», line 92, in resolve
result = self._result = resolver.resolve(
File «D:\STABLE DIFFUSION\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 «D:\STABLE DIFFUSION\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 «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py», line 172, in _add_to_criteria
if not criterion.candidates:
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\structs.py», line 151, in bool
return bool(self._sequence)
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py», line 155, in bool
return any(self)
File «D:\STABLE DIFFUSION\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 «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py», line 47, in _iter_built
candidate = func()
File «D:\STABLE DIFFUSION\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 «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py», line 297, in init
super().init(
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py», line 162, in init
self.dist = self._prepare()
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py», line 231, in _prepare
dist = self._prepare_distribution()
File «D:\STABLE DIFFUSION\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 «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\operations\prepare.py», line 438, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\operations\prepare.py», line 483, in _prepare_linked_requirement
local_file = unpack_url(
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\operations\prepare.py», line 165, in unpack_url
file = get_http_url(
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\operations\prepare.py», line 106, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\network\download.py», line 147, in call
for chunk in chunks:
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\cli\progress_bars.py», line 53, in _rich_progress_bar
for chunk in iterable:
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_internal\network\utils.py», line 63, in response_chunks
for chunk in response.raw.stream(
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py», line 573, in stream
data = self.read(amt=amt, decode_content=decode_content)
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py», line 509, in read
with self._error_catcher():
File «C:\Users\franc\AppData\Local\Programs\Python\Python310\lib\contextlib.py», line 153, in exit
self.gen.throw(typ, value, traceback)
File «D:\STABLE DIFFUSION\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\urllib3\response.py», line 440, in _error_catcher
raise ReadTimeoutError(self._pool, None, «Read timed out.»)
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=’download.pytorch.org’, port=443): Read timed out.

[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: D:\STABLE DIFFUSION\stable-diffusion-webui\venv\Scripts\python.exe -m pip install —upgrade pip

Press any key to continue . . .

Stable diffusion is a high-end AI where you can generate an image by inputting the text description command.

You can get high-quality images from Stable diffusion AI, and it will be helpful for many creators and designers to get unique pictures according to the requirement.

Stable diffusion is an open source, and available for all OS, including windows, Linux and MAC OS. 

However, when you are trying to install the stable diffusion package, you are stopped by the installation error Stable diffusion error code 1.

A stable diffusion error code may occur because you may not update or install the Python 3.10.6 version in your system or file dependent packages.

In this article, you will understand how to solve the Stable Diffusion error code 1 on Windows and Linux OS.

Let’s dive deep into the article!

What Is Stable Diffusion Error Code 1?

Stable diffusion Error code 1  is caused by a lack of required programme packages or a mismatch between software packages and OS versions during installation. 

Stable diffusion error code 1

Usually, the error occurs if any technical disturbance occurs during the installation. 

Stable diffusion is a software file that should be downloaded from the official Git repository and manually installed.

You need to check the following requirement before installing the Stable Diffusion program package:

  • Python version 3.10.6
  • Install it here: https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe
  • Remove any other Python version if installed. 
  • You should install the torch.
  • You should have upgraded the pip version.
  • Update your OS, whether it is Linux or Windows.
  • Check your hardware bit and install the Stable Diffusion accordingly.

If you are new to Stable Diffusion and Looking for a tutorial to install Stable Diffusion AI, watch the video below

https://youtu.be/6MeJKnbv1ts.

Stable Diffusion takes almost 30 to 40 minutes to install.

Let us understand the reason behind the Diffusion Error code 1.

What Causes Stable Diffusion Error Code 1?

A stable diffusion error code is a common one that occurs while installing it.

There are several reasons behind this.

The Stable diffusion Error 1 code occurs due to the following reason

  • Conflict between two Python versions.
  • Not upgrading the OS or Pip.
  • OS version and the installed package may not be compatible.
  • Failed to set attribute values inside the user file of the stable diffusion source file.
  • Maybe the network error; check the internet speed before downloading and installing the file.
  • The file corrupted due to disturbance during installations like network error or power cut.

How To Fix Stable Diffusion Error Code 1

1. Install Python 3.10.6 Version

The package supports only the Python 3.10.6 version.

So check your Python Version.

If you have any other version installed, remove it and install Python 3.10.6.

Step 1: Go to add or remove the program

Step 2: Click Python.exe and uninstall it.

Stable diffusion errorcode uinstall python

Step 3: Download python from the link: https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe

Step 4: Install it by running it as administrator.

Now the Python file is successfully installed.

2. Install And Upgrade PIP

Pip is a package management software that enables python to run on Windows OS.

Since you have already installed the Python application, open the python command shell.

Step 1: Open CMD from your Windows.

Step 2: Download the Pip zip file from https://bootstrap.pypa.io/get-pip.py and save it in the folder where python locates.

Step 3: Open CMD and type the following comments one by one

Stabe diffuse error code 1 Intalling python and pip

Open the default installation path in Windows:  C:\Users\User\AppData\Local\Programs\Python\Python31

Comment : 

  • CD C:\Users\User\AppData\Local\Programs\Python\Python31
  • curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  • python get-pip.py
  • python -m pip install –upgrade pip

Note: You can install it in a single comment on your prompt.

Just change the directory of your file and copy and paste the following.

The path changes according to your Stable Diffusion file location.

E:\stab.e diffusion\SUPER SD 2.0 Dependencies\stable-diffusion-webui\venv\Scripts\python.exe -m pip install –upgrade pip

Now, the file will run successfully without any errors.

3. Make Sure You Have Added The PIP File To The Windows Environment Variables

  • Type System on Search bar and Go to system setting page in your windows PC
  • Go to the end of the window and select “Advanced System Settings“.
  • Click “Environment variables“.

Stable diffusion advance systme settings

 In the Variable systems, double-click the path.

Stable diffusion environment variables

  • Click new and add the path to the folder where the PIP installer is stored.
  • Click ok on Windows.

 Now try install the Stable diffusion package, the file works fine.

4. Edit The Webui-User.bat File Inside Stable Diffusion

The torch file might interrupt Stable diffusion Installation.

You can avoid this error By editing the Webui- user attribute file.

Right click on webui-user.bat, click edit and add the “–skip-torch-cuda-test” after “set COMMANDLINE_ARGS=”

should look like this

set COMMANDLINE_ARGS=–skip-torch-cuda-test

Diffuseerrorcode1edit file

Try installing the Stable Diffusion again.

5. Restart Your Computer

Close all the applications and power of your system.

Then power back on. 

Restarting the system will usually rest any errors including Stable Diffusion Error Code 1 and help to work the file.

If the error persists, you need to install the stable diffusion package.

It works well for both Linux and Windows.

6. Update Your OS

Check for update

Updating the OS will remove any bugs and security issues with any software application in windows OS.

If you face any problems during the update, you must reinstall the OS. 

For Ubuntu use “apt-get update” comment.

7. Need To Upgrade Your RAM Or Storage

Stable diffusion should have the following system requirements.

  • A graphics card with at least 4GB of VRAM
  • 12GB or more install space. Ideally, an SSD.

You cannot install stable diffusion if you have a lower system configuration.

The system will shut down automatically, or you will get a runtime error since it can’t handle Stable diffusion.

8. Reinstall The Entire Stable Diffusion AI Package 

Yes!

If any error occurs during installation will corrupt the file.

Remove the file from your computer.

So clear the temp file by typing %Temp% on the run comment, selecting all, and deleting it.

Then clear your recycle bin.

To clear cache in Linux, use : # sync ; echo 3 > / porc / sys / vm / drop_caches

Install it freshly after installing the required package of Python 3.10.6 version by following the mentioned steps above.

Restart your computer.

It works fine.

1. How Do I Launch The Python Shell In The Comment Prompt?

Open CMD, redirect to your file path, and type “python”.

2. Where Can I Get The Stable Diffusion File?

3. What Are The Required Elements To Install Stable Diffusion For Windows?

The required elements are
1.

Python
2.

Pip
3.

Stable diffusion
4.

V1-5-pruned-emonly.ckpt

4. Is The Above Element Required For Linux As Well?

No.

But, you need V1 5 module. Ensure you have updated the Linux or MAC OS to avoid errors during installation. Once installed, you only need to start.sh from the Stable Diffusion file.

5. Does Stable Diffusion Work On Intel Graphics Cards?

Like AMD GPUs, Stable Diffusion doesn’t support Intel graphics cards officially.

I hope you found this article helpful and installed stable diffusion without the Stable Diffusion Error Code 1.

If nothing in the above steps works, you must repair or reinstall the OS to make Stable Diffusion file work smoothly.

It would help if you reached out to experts to reinstall and recover OS.

Thank you for your time.

Happy creating images! 

Similar Posts:

Как легко и быстро исправить распространенные ошибки стабильной диффузии

Stable Diffusion — один из высококлассных инструментов искусственного интеллекта поколения. Но некоторые пользователи находят Стабильные диффузионные ошибки в инструменте ИИ. Вы можете столкнуться со многими ошибками при создании изображений и настройке параметров, особенно в отношении диспропорции и общей производительности. В этой статье будут рассмотрены ошибки факела Stable Diffusion и способы их исправления на вашем устройстве.

Часть 1. Распространенные сообщения об ошибках стабильной диффузии

Инструмент ИИ — это программа с открытым исходным кодом, а это означает, что в него внесены новые изменения, и перед его использованием нужно что-то изменить. От сложности этого инструмента будет зависеть сгенерированное изображение, а ошибки могут возникнуть в любое время. Но на какие ошибки следует обращать внимание? См. список ниже, и вы получите решение для следующей части.

  • Низкий объем видеопамяти.
  • Ошибка выполнения CUDA (недостаточно памяти).
  • Модуль не найден ошибка.
  • Процесс генерации образа останавливается на 50%
  • Ошибка загрузки CompVis/stable-diffusion-safety-checker.
  • Неудачное подключение Firefox к серверу localhost:9000.
  • Не работает на Mac Sonoma.
  • Ошибка при использовании кода стабильной диффузии из раздела Интеграция диффузора.
  • Повреждение изображения и артефакты.

Часть 2: Как исправить эти ошибки стабильной диффузии

Различные ошибки могут возникнуть в любое время; эта часть покажет вам, как исправить их в Stable Diffusion. Имейте в виду, что для получения правильного решения для инструмента ИИ нужны пробы и ошибки.

Самый быстрый способ исправить любую ошибку — щелкнуть правой кнопкой мыши webui-user.bat файл и выберите Редактировать вариант. Вы должны добавить набор аргументов COMMANDLINE_ARGS= и затем вставьте соответствующие расширения или аргументы. Вот несколько примеров:

Если вы не можете загрузить safetensor, используйте файл .безопасные тензоры расширение и добавьте строку установить SATENSORS_FAST_GPU=1 в веб-user.bat. Убедитесь, что вы не используете защитные тензоры при использовании параметра —lowram, иначе вы получите больше ошибок на картинке.

SafeTensors

Ошибки могут возникать, когда у вас мало видеопамяти. Используйте или добавьте —лоуврам к аргументам командной строки, когда у вас от 4 до 6 ГБ видеопамяти и —мидврам если у вас 8 ГБ видеопамяти. Эти параметры могут помочь ограничить дальнейшее возникновение ошибки; однако они будут стоить более медленной генерации. Если вы по-прежнему сталкиваетесь с ошибками в этом поле, вы должны удалить некоторые параметры или добавить —no-half в стандартную строку.

Черное изображение — это ошибка, которая может возникнуть из-за использования —отключить-нан-проверить. Это будет отличаться для графического процессора NVIDIA; установите xformers и используйте —Иксформеры решить генерацию черного изображения. Вы должны добавить —no-half к аргументам командной строки для общего решения этой ошибки. Он всегда сопровождается —полная точность или —точный автокаст. Эта комбинация заставит генератор изображений AI выполнять вычисления в fp32 (32-битные числа с плавающей запятой) вместо fp16 (16-битные числа с плавающей запятой).

Примечание

Стабильная диффузия работает лучше при установке Иксформеры. Вы также можете посетить форум GitHub, чтобы увидеть больше вариантов для различных ошибок..

Дополнительные советы: улучшите стабильные диффузионные изображения после исправления ошибок

AnyRec AI Масштабирование изображений — это веб-инструмент для увеличения изображений в таких форматах, как PNG, GIF, JPEG, BMP, TIFF и других. После устранения ошибок стабильной диффузии и использования Стабильная диффузия подсказок для создания изображений вы можете использовать этот инструмент для масштабирования изображений. Этот инструмент основан на новейшей технологии искусственного интеллекта, и его рекомендуется использовать для изображений, сгенерированных из Stable Diffusion и других инструментов искусственного интеллекта.

  • Увеличивайте свои фотографии AI, сохраняя при этом исходное качество.
  • Обнаружьте искаженные части и исправьте их автоматически.
  • См. детали с функцией увеличения для осмотра крупным планом.
  • Доступ к нему в любом браузере без создания учетной записи.

Шаг 1.Нажмите кнопку «Загрузить фото» на главной веб-странице. Найдите изображение в локальной папке и нажмите кнопку «Открыть».

AnyRec Загрузить фото

Шаг 2.Выберите уровень увеличения и проверьте детали с помощью функции увеличения. Вы всегда можете изменить параметр увеличения.

Увеличение AnyRec

Шаг 3.Удовлетворившись результатом, нажмите кнопку «Сохранить», чтобы обработать и экспортировать увеличенное изображение.

AnyRec Сохранить новое изображение

Часть 3. Часто задаваемые вопросы об ошибках стабильной диффузии

  • 1. Где я могу попробовать Stable Diffusion с меньшим количеством ошибок?

    Инструмент AI доступен через разные веб-сайты. Более или менее вероятно, что вы получите некоторые ошибки, и вы все равно столкнетесь с ними в любое время. Однако вы можете попробовать Stable Diffusion онлайн, Hugging Face и DreamStudio, чтобы узнать, какая платформа вам больше подходит.

  • 2. Что такое стабильная диффузионная ошибка горелки?

    Ошибка Torch возникает при локальной установке и настройке Stable Diffusion. После настройки с помощью pip install -vvv torch вы получите уведомление: «ОШИБКА: у факела недопустимое колесо, каталог .dist-info не найден». Это можно решить, установив версию Python выше или равную 3.6.2 для установки факела.

  • 3. Как исправить ошибку времени выполнения CUDA, не хватает памяти Stable Diffusion?

    Самый простой способ исправить это — перезагрузить систему. Вы также можете установить Anaconda и Nvidia CUDA Набор инструментов для установки и запуска пакетов для программ Python. Кроме того, вы можете исправить ошибку времени выполнения, сгенерировав изображения с более низким разрешением и уменьшив размер выборки до единицы.

  • 4. Каковы ограничения использования Stable Diffusion?

    Хотя в инструменте ИИ есть технические ошибки, вы также можете предположить, что у него есть ограничения в других аспектах. Основная причина заключается в большей поддержке передовых статистических моделей и интеграции. Стабильная диффузия рекомендуется для анализа данных только в том случае, если она может справиться со сложностью и размером.

  • 5. Использует ли Stable Diffusion графический процессор моего устройства?

    Да. Он использует графический процессор для бесперебойной работы без каких-либо ошибок, и намного лучше, когда у вас есть от 8 до 10 моделей Nvidia или выше. Вы также можете избежать большего количества ошибок и нестабильности при использовании 16 ГБ ОЗУ ПК в системе ПК.

Заключение

Вы испытали Стабильные диффузионные ошибки? В этой статье представлены возможные решения общих проблем в генераторе изображений AI. Также рекомендуется проверить форумы, чтобы увидеть больше параметров в аргументах командной строки. Кроме того, вы можете использовать AnyRec AI Image Upscaler для увеличения и улучшения сгенерированных изображений после устранения ошибок стабильной диффузии. Смотрите больше профессиональных инструментов на официальном сайте.

Статьи по Теме:

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Stable Diffusion

Steps to reproduce the problem

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.2.1
Commit hash: 89f9faa
Installing torch and torchvision
Traceback (most recent call last):
File «C:\Python310\lib\runpy.py», line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File «C:\Python310\lib\runpy.py», line 86, in run_code
exec(code, run_globals)
File «C:\stable-diffusion-webui\venv\lib\site-packages\pip_main
.py», line 29, in
from pip._internal.cli.main import main as main
File «C:\stable-diffusion-webui\venv\lib\site-packages\pip_internal_init
.py», line 3, in
import pip._internal.utils.inject_securetransport # noqa
ModuleNotFoundError: No module named ‘pip._internal.utils’
Traceback (most recent call last):
File «C:\stable-diffusion-webui\launch.py», line 369, in
prepare_environment()
File «C:\stable-diffusion-webui\launch.py», line 271, in prepare_environment
run(f'»{python}» -m {torch_command}’, «Installing torch and torchvision», «Couldn’t install torch», live=True)
File «C:\stable-diffusion-webui\launch.py», line 95, in run
raise RuntimeError(f»»»{errdesc or ‘Error running command’}.
RuntimeError: Couldn’t install torch.
Command: «C:\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

What should have happened?

launched webui

Commit where the problem happens

A1111 WebUI

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

List of extensions

DON’T THINK SO

Console logs

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Loading A111 WebUI Launcher
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 i   Settings file found, loading
 →   Updating Settings File  ✓
 i   Launcher Version 1.7.0
 i   No Launcher launch options
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 →   Checking requirements :
 i   Python 3.10.6150.1013 found in registry:  C:\Python310\
 i   Clearing PATH of any mention of Python
 →   Adding python 3.10 to path  ✓
 i   Git found and already in PATH:  C:\Program Files\Git\cmd\git.exe
 i   Automatic1111 SD WebUI found:  C:\\stable-diffusion-webui
 i   One or more checkpoint models were found
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Loading Complete, opening launcher
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 i   Arguments are now: --xformers
 i   Arguments are now: --xformers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  WEBUI LAUNCHING VIA EMS LAUNCHER, EXIT THIS WINDOW TO STOP THE WEBUI
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 !   Any error happening after 'commit hash : XXXX' is not related to the launcher. Please report them on Automatic1111's github instead :
 ☁   https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/new/choose
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
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.2.1
Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045
Installing torch and torchvision
Traceback (most recent call last):
  File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\stable-diffusion-webui\venv\lib\site-packages\pip\__main__.py", line 29, in <module>
    from pip._internal.cli.main import main as _main
  File "C:\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\__init__.py", line 3, in <module>
    import pip._internal.utils.inject_securetransport  # noqa
ModuleNotFoundError: No module named 'pip._internal.utils'
Traceback (most recent call last):
  File "C:\stable-diffusion-webui\launch.py", line 369, in <module>
    prepare_environment()
  File "C:\stable-diffusion-webui\launch.py", line 271, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "C:\stable-diffusion-webui\launch.py", line 95, in run
    raise RuntimeError(f"""{errdesc or 'Error running command'}.
RuntimeError: Couldn't install torch.
Command: "C:\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
Premere un tasto per continuare . . .

Additional information

No response

  • Home
  • How To
  • Tech

With these tips, get rid of the «Stable Diffusion model failed to load, exiting» error in no time.

How to fix "Stable Diffusion model failed to load, exiting" error

If you are encountering the «Stable Diffusion model failed to load, exiting» error while trying to launch the WebUI-user.bat file, this guide is for you!

Stable Diffusion is one of the best AI image generators out there. You can use this free tool to generate NSFW images and other realistic images. However, sometimes you may face issues such as the runtime error or loading issues while running Stable Diffusion locally.

In this guide, we will explore some of the most effective ways to fix the «Stable Diffusion model failed to load, exiting» error. So, let’s dive in!

How to fix «Stable Diffusion model failed to load, exiting» error

We have seen a lot of players posting their experiences with this particular issue on Reddit and GitHub, and we’ve done our best to comb through them all to find the most helpful information and share it with you.

So, here are some working solutions to fix the «Stable Diffusion model failed to load, exiting» error:

  • Reinstalling Torch fixed the issue for this user. To do that, add the following argument to the webui-user.bat file: set COMMANDLINE_ARGS="--reinstall-torch"
  • A Reddit user suggested that adding the following argument to the webui-user.bat file should fix the issue: set COMMANDLINE_ARGS=--disable-safe-unpickle
  • Deleting the venv folder and letting it all rebuild at launch seems to fix the issue, according to this Reddit user.
  • Another fix is to delete your existing venv and launch.py, then do a git pull, after that run webui-user.bat.

In case you don’t know how to edit the webui-user.bat file, here is how it should look after adding the above-mentioned arguments:

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--disable-safe-unpickle


call webui.bat

What is «Stable Diffusion model failed to load, exiting» error?

The error appears to be in the loading of the VAE model weights specified in settings, which is resulting in a TypeError during the pickling process.

Specifically, the error message states: «TypeError: TypedStorage.new() got an unexpected keyword argument ‘_internal'». This suggests that there may be an issue with the way the VAE model weights are being loaded or stored.

Additionally, there appears to be another error when attempting to load the Stable diffusion model, with an AttributeError occurring during the loading process. It is possible that this error is related to the VAE model weight loading error, as the two models may be interconnected in some way.

For more articles like this, take a look at our

How To
and
Tech

page.

Понравилась статья? Поделить с друзьями:
  • Stabili track cadillac ошибка
  • Srs ошибка митсубиси грандис
  • Stability track опель астра j ошибка
  • Srs volvo 2019 xc60 ошибка
  • Srs ошибка мерседес что это