openvinotoolkit / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
247 stars 39 forks source link

[Bug]: update torch-install ,application boot up failure #72

Open armynew opened 8 months ago

armynew commented 8 months ago

Is there an existing issue for this?

What happened?

hello my frend,after I update the torch-install, & run it , start webui-user.bat , the boot up error, the error is: import torch._dynamo File "D:\ailearn\sd-ui\stable-diffusion-webui\venv\lib\site-packages\torch_dynamo__init__.py", line 2, in from . import allowed_functions, convert_frame, eval_frame, resume_execution File "D:\ailearn\sd-ui\stable-diffusion-webui\venv\lib\site-packages\torch_dynamo\convert_frame.py", line 34, in from .eval_frame import always_optimize_code_objects, skip_code, TorchPatcher ValueError: source code string cannot contain null bytes

Steps to reproduce the problem

1.update torch-install

  1. run webui-user
  2. boot up error

What should have happened?

application boot up ok

Sysinfo

windows 10 intel I7-8565U

What browsers do you use to access the UI ?

Microsoft Edge

Console logs

see abover

Additional information

No response

armynew commented 8 months ago

I total reinstall the project,but still boot up error, anyone help me ?

qiacheng commented 8 months ago

did you run first-time-runner.bat before running torch-install.bat? it looks like required packages are not installed

armynew commented 8 months ago

did you run first-time-runner.bat before running torch-install.bat? it looks like required packages are not installed

Yes , already run first-time-runner.bat

armynew commented 8 months ago

I delete the old project and resintall to try, but get the same result

armynew commented 7 months ago

anyone help?

qiacheng commented 7 months ago

could you run stable-diffusion-webui/venv/scripts/python.exe -m pip list and show the env packages?

armynew commented 7 months ago

could you run stable-diffusion-webui/venv/scripts/python.exe -m pip list and show the env packages?

Package Version


absl-py 2.0.0 accelerate 0.21.0 addict 2.4.0 aenum 3.1.15 aiofiles 23.2.1 aiohttp 3.8.6 aiosignal 1.3.1 altair 5.1.2 antlr4-python3-runtime 4.9.3 anyio 3.7.1 async-timeout 4.0.3 attrs 23.1.0 basicsr 1.4.2 beautifulsoup4 4.12.2 blendmodes 2023 boltons 23.1.1 cachetools 5.3.2 certifi 2023.7.22 charset-normalizer 3.3.2 clean-fid 0.1.35 click 8.1.7 clip 1.0 colorama 0.4.6 contourpy 1.1.1 cycler 0.12.1 deprecation 2.1.0 diffusers 0.21.1 einops 0.4.1 exceptiongroup 1.1.3 facexlib 0.3.0 fastapi 0.94.0 ffmpy 0.3.1 filelock 3.13.1 filterpy 1.4.5 fonttools 4.43.1 frozenlist 1.4.0 fsspec 2023.10.0 ftfy 6.1.1 future 0.18.3 gdown 4.7.1 gfpgan 1.3.8 gitdb 4.0.11 GitPython 3.1.37 google-auth 2.23.4 google-auth-oauthlib 1.1.0 gradio 3.41.2 gradio_client 0.5.0 grpcio 1.59.2 h11 0.12.0 httpcore 0.15.0 httpx 0.24.1 huggingface-hub 0.18.0 idna 3.4 imageio 2.31.6 importlib-metadata 6.8.0 importlib-resources 6.1.0 inflection 0.5.1 invisible-watermark 0.2.0 Jinja2 3.1.2 jsonmerge 1.8.0 jsonschema 4.19.2 jsonschema-specifications 2023.7.1 kiwisolver 1.4.5 kornia 0.6.7 lark 1.1.2 lazy_loader 0.3 lightning-utilities 0.9.0 llvmlite 0.41.1 lmdb 1.4.1 lpips 0.1.4 Markdown 3.5.1 MarkupSafe 2.1.3 matplotlib 3.8.1 mpmath 1.3.0 multidict 6.0.4 networkx 3.2.1 numba 0.58.1 numpy 1.26.1 oauthlib 3.2.2 omegaconf 2.2.3 open-clip-torch 2.20.0 opencv-python 4.8.1.78 openvino 2023.1.0.dev20230811 openvino-nightly 2023.2.0.dev20231031 openvino-telemetry 2023.2.1 orjson 3.9.10 packaging 23.2 pandas 2.1.2 piexif 1.1.3 Pillow 10.0.1 pip 22.2.1 platformdirs 3.11.0 protobuf 3.20.0 psutil 5.9.5 pyasn1 0.5.0 pyasn1-modules 0.3.0 pydantic 1.10.13 pydub 0.25.1 pyparsing 3.1.1 PySocks 1.7.1 python-dateutil 2.8.2 python-multipart 0.0.6 pytorch-lightning 1.9.4 pytz 2023.3.post1 PyWavelets 1.4.1 PyYAML 6.0.1 realesrgan 0.3.0 referencing 0.30.2 regex 2023.10.3 requests 2.31.0 requests-oauthlib 1.3.1 resize-right 0.0.2 rpds-py 0.10.6 rsa 4.9 safetensors 0.3.1 scikit-image 0.21.0 scipy 1.11.3 semantic-version 2.10.0 sentencepiece 0.1.99 setuptools 63.2.0 six 1.16.0 smmap 5.0.1 sniffio 1.3.0 soupsieve 2.5 starlette 0.26.1 sympy 1.12 tb-nightly 2.16.0a20231102 tensorboard-data-server 0.7.2 tifffile 2023.9.26 timm 0.9.2 tokenizers 0.13.3 tomesd 0.1.3 tomli 2.0.1 toolz 0.12.0 torch 2.1.0 torchdiffeq 0.2.3 torchmetrics 1.2.0 torchsde 0.2.5 torchvision 0.16.0 tqdm 4.66.1 trampoline 0.1.2 transformers 4.30.2 typing_extensions 4.8.0 tzdata 2023.3 urllib3 2.0.7 uvicorn 0.23.2 wcwidth 0.2.9 websockets 11.0.3 Werkzeug 3.0.1 yapf 0.40.2 yarl 1.9.2 zipp 3.17.0

armynew commented 7 months ago

sorry for reply later @qiacheng

armynew commented 7 months ago

are u there ?

armynew commented 7 months ago

No one reply me

ananosleep commented 7 months ago

maybe you could try to update to the newest version, delete venv folder, and run webui-user.bat directly? openvino 2023.2.0 is released and the newest version use it.

armynew commented 7 months ago

Referen

thank you , I will try

rodrigolopezguerra commented 6 months ago

sorry , where its supposed to be torch-install.bat

PyTorch doesn't support torch.compile officially on windows yet. Launching torch-install.bat installs PyTorch and enables torch.compile for OpenVINO backend.

I don't have that file? 🤔

thanks

ananosleep commented 6 months ago

sorry , where its supposed to be torch-install.bat

PyTorch doesn't support torch.compile officially on windows yet. Launching torch-install.bat installs PyTorch and enables torch.compile for OpenVINO backend.

I don't have that file? 🤔

thanks

It's no longer needed now. Just run webui-user.bat.