파이썬

DiffusionWrapper has 859.52 M params.

by nanumi posted Apr 21, 2023
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

DiffusionWrapper has 859.52 M params.

 

 

 

Microsoft Windows [Version 10.0.19044.2846]

(c) Microsoft Corporation. All rights reserved.

 

C:\Users\Administrator>E:

 

E:\>git

usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>]

           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]

           [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]

           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]

           [--config-env=<name>=<envvar>] <command> [<args>]

 

These are common Git commands used in various situations:

 

start a working area (see also: git help tutorial)

   clone     Clone a repository into a new directory

   init      Create an empty Git repository or reinitialize an existing one

 

work on the current change (see also: git help everyday)

   add       Add file contents to the index

   mv        Move or rename a file, a directory, or a symlink

   restore   Restore working tree files

   rm        Remove files from the working tree and from the index

 

examine the history and state (see also: git help revisions)

   bisect    Use binary search to find the commit that introduced a bug

   diff      Show changes between commits, commit and working tree, etc

   grep      Print lines matching a pattern

   log       Show commit logs

   show      Show various types of objects

   status    Show the working tree status

 

grow, mark and tweak your common history

   branch    List, create, or delete branches

   commit    Record changes to the repository

   merge     Join two or more development histories together

   rebase    Reapply commits on top of another base tip

   reset     Reset current HEAD to the specified state

   switch    Switch branches

   tag       Create, list, delete or verify a tag object signed with GPG

 

collaborate (see also: git help workflows)

   fetch     Download objects and refs from another repository

   pull      Fetch from and integrate with another repository or a local branch

   push      Update remote refs along with associated objects

 

'git help -a' and 'git help -g' list available subcommands and some

concept guides. See 'git help <command>' or 'git help <concept>'

to read about a specific subcommand or concept.

See 'git help git' for an overview of the system.

 

E:\>cd python

 

E:\python>dir

 E 드라이브의 볼륨: 리뷰안SSD256GB

 볼륨 일련 번호: 7661-5F90

 

 E:\python 디렉터리

 

2023-04-16  오후 10:03    <DIR>          .

2023-04-16  오후 10:03    <DIR>          ..

2023-04-16  오후 10:00    <DIR>          DLLs

2022-03-13  오후 08:45    <DIR>          Doc

2023-04-16  오후 10:00    <DIR>          Git

2023-04-16  오후 09:36        53,792,928 Git-2.40.0-64-bit.exe

2023-04-16  오후 10:00    <DIR>          include

2023-04-16  오후 10:02    <DIR>          Lib

2023-04-16  오후 10:02    <DIR>          libs

2022-01-17  오후 02:26            32,768 LICENSE.txt

2022-01-17  오후 02:27         1,231,196 NEWS.txt

2022-01-17  오후 02:26            99,216 python.exe

2022-01-17  오후 02:26            62,352 python3.dll

2022-01-17  오후 02:26         4,453,776 python310.dll

2022-01-17  오후 02:26            97,680 pythonw.exe

2023-04-16  오후 10:03    <DIR>          py_code

2023-04-20  오후 09:28    <DIR>          Scripts

2023-04-16  오후 10:03    <DIR>          share

2023-04-20  오후 09:31    <DIR>          stable-diffusion-webui

2023-04-16  오후 10:03    <DIR>          tcl

2023-04-16  오후 10:03    <DIR>          Tesseract-OCR

2023-04-16  오후 10:03    <DIR>          Tools

2022-01-17  오후 02:26            97,168 vcruntime140.dll

2022-01-17  오후 02:26            37,240 vcruntime140_1.dll

               9개 파일          59,904,324 바이트

              15개 디렉터리  162,062,888,960 바이트 남음

 

E:\python>cd script

지정된 경로를 찾을 수 없습니다.

 

E:\python>cd scripts

 

E:\python\Scripts>dir

 E 드라이브의 볼륨: 리뷰안SSD256GB

 볼륨 일련 번호: 7661-5F90

 

 E:\python\Scripts 디렉터리

 

2023-04-20  오후 09:28    <DIR>          .

2023-04-20  오후 09:28    <DIR>          ..

2023-04-16  오후 10:03    <DIR>          build

2023-02-11  오전 10:23             1,554 clear_comtypes_cache.py

2023-04-20  오후 09:28           108,410 convert-caffe2-to-onnx.exe

2023-04-20  오후 09:28           108,410 convert-onnx-to-caffe2.exe

2023-04-16  오후 10:03    <DIR>          dist

2023-01-16  오후 06:43           107,856 easyocr.exe

2023-02-21  오전 06:30           108,374 f2py.exe

2022-11-20  오전 08:51           107,863 fonttools.exe

2022-05-08  오전 08:38               997 futurize-script.py

2022-05-08  오전 08:38            74,752 futurize.exe

2022-03-13  오후 08:50           106,343 google-oauthlib-tool.exe

2023-01-16  오후 06:43           107,887 imageio_download_bin.exe

2023-01-16  오후 06:43           107,883 imageio_remove_bin.exe

2023-04-20  오후 09:27           108,363 isympy.exe

2023-01-16  오후 06:43           107,861 lsm2bin.exe

2023-01-16  오후 06:43           107,852 ninja.exe

2023-02-21  오전 06:27               856 nongsa.spec

2022-03-13  오후 08:49           106,354 normalizer.exe

2022-05-08  오전 08:38             1,001 pasteurize-script.py

2022-05-08  오전 08:38            74,752 pasteurize.exe

2023-04-20  오후 09:28           108,379 pip.exe

2023-04-20  오후 09:28           108,379 pip3.10.exe

2023-04-20  오후 09:28           108,379 pip3.exe

2023-01-16  오후 06:43           107,849 pybidi.exe

2022-11-20  오전 08:51           107,860 pyftmerge.exe

2022-11-20  오전 08:51           107,861 pyftsubset.exe

2023-02-07  오전 05:54           108,396 pyi-archive_viewer.exe

2023-02-07  오전 05:54           108,391 pyi-bindepend.exe

2023-02-07  오전 05:54           108,394 pyi-grab_version.exe

2023-02-07  오전 05:54           108,390 pyi-makespec.exe

2023-02-07  오전 05:54           108,393 pyi-set_version.exe

2023-02-07  오전 05:54           108,407 pyinstaller.exe

2022-03-13  오후 08:50           106,322 pyrsa-decrypt.exe

2022-03-13  오후 08:50           106,322 pyrsa-encrypt.exe

2022-03-13  오후 08:50           106,320 pyrsa-keygen.exe

2022-03-13  오후 08:50           106,343 pyrsa-priv2pub.exe

2022-03-13  오후 08:50           106,316 pyrsa-sign.exe

2022-03-13  오후 08:50           106,320 pyrsa-verify.exe

2022-11-20  오전 07:48           107,868 pytesseract.exe

2022-04-08  오후 12:31           106,319 pytube.exe

2023-02-11  오전 10:23            27,225 pywin32_postinstall.py

2023-02-11  오전 10:23             3,546 pywin32_testall.py

2023-01-16  오후 06:43           107,866 skivi.exe

2023-01-16  오후 06:43           107,865 tiff2fsspec.exe

2023-01-16  오후 06:43           107,865 tiffcomment.exe

2023-01-16  오후 06:43           107,853 tifffile.exe

2023-04-20  오후 09:28           108,378 torchrun.exe

2022-11-20  오전 08:51           107,858 ttx.exe

2023-01-15  오전 08:15           107,854 wheel.exe

2023-04-16  오후 10:03    <DIR>          __pycache__

              47개 파일           4,384,886 바이트

               5개 디렉터리  162,062,888,960 바이트 남음

 

E:\python\Scripts>cd ..

 

E:\python> cd stable-diffusion-webui

 

E:\python\stable-diffusion-webui>DIR

 E 드라이브의 볼륨: 리뷰안SSD256GB

 볼륨 일련 번호: 7661-5F90

 

 E:\python\stable-diffusion-webui 디렉터리

 

2023-04-20  오후 09:31    <DIR>          .

2023-04-20  오후 09:31    <DIR>          ..

2023-04-16  오후 09:43    <DIR>          .github

2023-04-16  오후 09:37               468 .gitignore

2023-04-16  오후 09:37               122 .pylintrc

2023-04-20  오후 09:19               228 cache.json

2023-04-16  오후 09:37               657 CODEOWNERS

2023-04-16  오후 09:43    <DIR>          configs

2023-04-16  오후 09:43    <DIR>          embeddings

2023-04-16  오후 09:37               185 environment-wsl2.yaml

2023-04-16  오후 09:43    <DIR>          extensions

2023-04-16  오후 09:43    <DIR>          extensions-builtin

2023-04-16  오후 09:43    <DIR>          html

2023-04-16  오후 09:43    <DIR>          javascript

2023-04-16  오후 09:37            14,362 launch.py

2023-04-16  오후 09:37            35,240 LICENSE.txt

2023-04-16  오후 09:43    <DIR>          localizations

2023-04-20  오후 09:18    <DIR>          models

2023-04-16  오후 09:43    <DIR>          modules

2023-04-16  오후 09:37            10,659 README.md

2023-04-20  오후 09:10    <DIR>          repositories

2023-04-16  오후 09:37               395 requirements.txt

2023-04-16  오후 09:37               504 requirements_versions.txt

2023-04-16  오후 09:37           420,577 screenshot.png

2023-04-16  오후 09:37             3,056 script.js

2023-04-20  오후 09:18    <DIR>          scripts

2023-04-16  오후 09:37            16,381 style.css

2023-04-16  오후 09:43    <DIR>          test

2023-04-16  오후 09:43    <DIR>          textual_inversion_templates

2023-04-16  오후 09:43    <DIR>          tmp

2023-04-20  오후 09:11    <DIR>          venv

2023-04-16  오후 09:37               833 webui-macos-env.sh

2023-04-16  오후 09:37                92 webui-user.bat

2023-04-16  오후 09:37             1,361 webui-user.sh

2023-04-20  오후 09:34             2,115 webui.bat

2023-04-16  오후 09:37            13,051 webui.py

2023-04-16  오후 09:37             5,499 webui.sh

2023-04-20  오후 09:12    <DIR>          __pycache__

              19개 파일             525,785 바이트

              19개 디렉터리  162,062,888,960 바이트 남음

 

E:\python\stable-diffusion-webui>webui.bat

venv "E:\python\stable-diffusion-webui\venv\Scripts\Python.exe"

Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]

Commit hash: 22bcc7be428c94e9408f589966c2040187245d81

Installing requirements for Web UI

Launching Web UI with arguments:

No module 'xformers'. Proceeding without it.

Loading weights [6ce0161689] from E:\python\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors

Creating model from config: E:\python\stable-diffusion-webui\configs\v1-inference.yaml

LatentDiffusion: Running in eps-prediction mode

DiffusionWrapper has 859.52 M params.

loading stable diffusion model: OutOfMemoryError

Traceback (most recent call last):

  File "E:\python\stable-diffusion-webui\webui.py", line 139, in initialize

    modules.sd_models.load_model()

  File "E:\python\stable-diffusion-webui\modules\sd_models.py", line 449, in load_model

    sd_model.to(shared.device)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\lightning_fabric\utilities\device_dtype_mixin.py", line 54, in to

    return super().to(*args, **kwargs)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 989, in to

    return self._apply(convert)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply

    module._apply(fn)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply

    module._apply(fn)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply

    module._apply(fn)

  [Previous line repeated 4 more times]

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 664, in _apply

    param_applied = fn(param)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 987, 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; 2.00 GiB total capacity; 1.71 GiB already allocated; 0 bytes free; 1.75 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, exiting

계속하려면 아무 키나 누르십시오 . . .

 

E:\python\stable-diffusion-webui>webui.bat

venv "E:\python\stable-diffusion-webui\venv\Scripts\Python.exe"

Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]

Commit hash: 22bcc7be428c94e9408f589966c2040187245d81

Installing requirements for Web UI

Launching Web UI with arguments:

No module 'xformers'. Proceeding without it.

Loading weights [6ce0161689] from E:\python\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors

Creating model from config: E:\python\stable-diffusion-webui\configs\v1-inference.yaml

LatentDiffusion: Running in eps-prediction mode

DiffusionWrapper has 859.52 M params.

loading stable diffusion model: OutOfMemoryError

Traceback (most recent call last):

  File "E:\python\stable-diffusion-webui\webui.py", line 139, in initialize

    modules.sd_models.load_model()

  File "E:\python\stable-diffusion-webui\modules\sd_models.py", line 449, in load_model

    sd_model.to(shared.device)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\lightning_fabric\utilities\device_dtype_mixin.py", line 54, in to

    return super().to(*args, **kwargs)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 989, in to

    return self._apply(convert)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply

    module._apply(fn)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply

    module._apply(fn)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply

    module._apply(fn)

  [Previous line repeated 4 more times]

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 664, in _apply

    param_applied = fn(param)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 987, 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; 2.00 GiB total capacity; 1.71 GiB already allocated; 0 bytes free; 1.75 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, exiting

계속하려면 아무 키나 누르십시오 . . .

 

E:\python\stable-diffusion-webui>webui.bat

venv "E:\python\stable-diffusion-webui\venv\Scripts\Python.exe"

Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)]

Commit hash: 22bcc7be428c94e9408f589966c2040187245d81

Installing requirements for Web UI

Launching Web UI with arguments:

No module 'xformers'. Proceeding without it.

Loading weights [6ce0161689] from E:\python\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors

Creating model from config: E:\python\stable-diffusion-webui\configs\v1-inference.yaml

LatentDiffusion: Running in eps-prediction mode

DiffusionWrapper has 859.52 M params.

loading stable diffusion model: OutOfMemoryError

Traceback (most recent call last):

  File "E:\python\stable-diffusion-webui\webui.py", line 139, in initialize

    modules.sd_models.load_model()

  File "E:\python\stable-diffusion-webui\modules\sd_models.py", line 449, in load_model

    sd_model.to(shared.device)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\lightning_fabric\utilities\device_dtype_mixin.py", line 54, in to

    return super().to(*args, **kwargs)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 989, in to

    return self._apply(convert)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply

    module._apply(fn)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply

    module._apply(fn)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 641, in _apply

    module._apply(fn)

  [Previous line repeated 4 more times]

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 664, in _apply

    param_applied = fn(param)

  File "E:\python\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 987, 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; 2.00 GiB total capacity; 1.71 GiB already allocated; 0 bytes free; 1.75 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, exiting

계속하려면 아무 키나 누르십시오 . . .

 

loading stable diffusion model: OutOfMemoryError

 

 

 

정말 절대적인 전설입니다 감사합니다! 나를 위해 일했다!!!

그냥 교체하면 모든 것이 잘됩니다.

정확히 무엇을 교체해야 합니까?

etag삽입하여 인쇄 print(etag)하고 잘못된 문자의 위치를 ​​볼 수 있습니다. 당신은 그냥 그들을 드롭할 수 있습니다.

나를 위해 코드를 다음과 같이 변경하여 문제를 해결했습니다.

    # From now on, etag and commit_hash are not None.
    assert etag is not None, "etag must have been retrieved from server"
    assert commit_hash is not None, "commit_hash must have been retrieved from server"
    blob_path = os.path.join(storage_folder, "blobs", etag[3:])
    pointer_path = os.path.join(storage_folder, "snapshots", commit_hash, relative_filename)

내가 변경하는 것은 etag[3:]etag의 처음 3자가 불법임을 발견했기 때문에 삭제하는 것입니다.

 

 


Articles

1 2 3 4 5