-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue]: Value error when trying to clean install #3791
Comments
You can't have both, chose one. ROCm isn't available on Windows, so use --use-zluda. |
Well, I changed it, but I still got the weird error. I can launch the UI right after, but it's pretty slow. |
I have a similar problem, but i webui.bat don't seem to be able to download torch here so it stops at that line, 17:07:00-991875 DEBUG Install: package="torch" install required even though i already have torch 2.6.0 installed and had done the "pip install requirements.txt", webui don't recognize it |
@Lonmine do not install requirements manually for sdnext - fully unsupported. |
I just did a fresh install. Running only the following command from PowerShell conda, I got this error:
following:
|
Issue Description
I tried to do a clean install of sdnext, and when I did, I got a value error while creating the venv files :
Using python: "C:\Users\Mathieu\AppData\Local\Programs\Python\Python311\python.exe"
Creating VENV: C:\SD2\sdnext\venv
Using VENV: C:\SD2\sdnext\venv
17:06:59-612875 INFO Starting SD.Next
17:06:59-614874 INFO Logger: file="C:\SD2\sdnext\sdnext.log" level=DEBUG host="Mojo" size=72 mode=create
17:06:59-616875 INFO Python: version=3.11.9 platform=Windows bin="C:\SD2\sdnext\venv\Scripts\python.exe"
venv="C:\SD2\sdnext\venv"
17:06:59-783875 INFO Version: app=sd.next updated=2025-02-27 hash=be076ec9 branch=master
url=https://github.com/vladmandic/sdnext/tree/master ui=main
17:07:00-443877 INFO Platform: arch=AMD64 cpu=Intel64 Family 6 Model 151 Stepping 5, GenuineIntel system=Windows
release=Windows-10-10.0.22631-SP0 python=3.11.9 locale=('fr_FR', 'cp1252') docker=False
17:07:00-448874 DEBUG Packages: prefix=venv site=['venv', 'venv\Lib\site-packages']
17:07:00-450875 INFO Args: ['--debug', '--autolaunch', '--use-rocm', '--use-zluda']
17:07:00-451875 DEBUG Setting environment tuning
17:07:00-452877 DEBUG Torch allocator: "garbage_collection_threshold:0.80,max_split_size_mb:512"
17:07:00-467875 DEBUG Torch overrides: cuda=False rocm=True ipex=False directml=False openvino=False zluda=True
17:07:00-468875 INFO ROCm: AMD toolkit detected
17:07:00-928876 INFO ROCm: agents=['gfx1031']
17:07:00-929876 INFO ROCm: version=6.2, using agent gfx1031
17:07:00-929876 INFO Python: version=3.11.9 platform=Windows bin="C:\SD2\sdnext\venv\Scripts\python.exe"
venv="C:\SD2\sdnext\venv"
17:07:00-990875 INFO Using ZLUDA in C:\SD2\sdnext.zluda
17:07:00-991875 DEBUG Install: package="torch" install required
17:07:00-992874 INFO Torch: download and install in progress... cmd="torch==2.6.0 torchvision --index-url
https://download.pytorch.org/whl/cu118"
17:11:15-241531 DEBUG Install: package="onnx" install required
17:11:27-999667 DEBUG Install: package="onnxruntime" install required
17:11:42-941084 INFO Diffusers install: commit=b75b204a584e29ebf4e80a61be11458e9ed56e3e
17:12:25-332056 INFO Install requirements: this may take a while...
17:15:42-522762 DEBUG Install: package="torch" install required
17:15:42-526762 INFO Install: verifying requirements
17:15:42-537885 DEBUG Install: package="psutil" install required
17:15:42-585985 DEBUG Install: package="rich" install required
17:15:45-033275 DEBUG Install: package="requests" install required
17:15:57-361003 INFO Startup: standard
17:15:57-362002 INFO Verifying submodules
17:15:59-684937 DEBUG Git submodule: extensions-builtin/sd-extension-chainner / main
17:15:59-780653 DEBUG Git submodule: extensions-builtin/sd-extension-system-info / main
17:15:59-864203 DEBUG Git submodule: extensions-builtin/sd-webui-agent-scheduler / main
17:15:59-991835 DEBUG Git detached head detected: folder="extensions-builtin/sdnext-modernui" reattach=main
17:15:59-992837 DEBUG Git submodule: extensions-builtin/sdnext-modernui / main
17:16:00-081416 DEBUG Git submodule: extensions-builtin/stable-diffusion-webui-rembg / master
17:16:00-173179 DEBUG Git submodule: modules/k-diffusion / master
17:16:00-255003 DEBUG Git submodule: wiki / master
17:16:00-316500 DEBUG Register paths
17:16:00-370695 DEBUG Installed packages: 154
17:16:00-371695 DEBUG Extensions all: ['sd-extension-chainner', 'sd-extension-system-info',
'sd-webui-agent-scheduler', 'stable-diffusion-webui-rembg']
17:16:00-458036 DEBUG Extension installer: C:\SD2\sdnext\extensions-builtin\sd-webui-agent-scheduler\install.py
17:16:08-246874 INFO Extension installed packages: sd-webui-agent-scheduler ['SQLAlchemy==2.0.38',
'greenlet==3.1.1']
17:16:08-247874 DEBUG Extension installer: C:\SD2\sdnext\extensions-builtin\stable-diffusion-webui-rembg\install.py
17:16:21-619918 INFO Extension installed packages: stable-diffusion-webui-rembg ['PyMatting==1.1.13',
'opencv-python-headless==4.11.0.86', 'pooch==1.8.2', 'rembg==2.0.63']
17:16:21-621920 DEBUG Extensions all: []
17:16:21-621920 INFO Extensions enabled: ['sd-extension-chainner', 'sd-extension-system-info',
'sd-webui-agent-scheduler', 'stable-diffusion-webui-rembg']
17:16:21-622917 INFO Install requirements: this may take a while...
17:16:21-623916 INFO Install: verifying requirements
17:16:21-624916 DEBUG Setup complete without errors: 1740759382
17:16:21-650456 DEBUG Extension preload: {'extensions-builtin': 0.01, 'extensions': 0.0}
17:16:21-652457 INFO Command line args: ['--debug', '--autolaunch', '--use-rocm', '--use-zluda'] autolaunch=True
use_rocm=True use_zluda=True debug=True args=[]
17:16:21-654457 DEBUG Env flags: []
17:16:21-655457 DEBUG Starting module: <module 'webui' from 'C:\SD2\sdnext\webui.py'>
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\SD2\sdnext\launch.py:283 in │
│ │
│ 282 if name == "main": │
│ ❱ 283 main() │
│ 284 │
│ │
│ C:\SD2\sdnext\launch.py:262 in main │
│ │
│ 261 │
│ ❱ 262 uv, instance = start_server(immediate=True, server=None) │
│ 263 while True: │
│ │
│ C:\SD2\sdnext\launch.py:177 in start_server │
│ │
│ 176 installer.log.debug(f'Starting module: {server}') │
│ ❱ 177 module_spec.loader.exec_module(server) │
│ 178 uvicorn = None │
│ in exec_module:940 │
│ in call_with_frames_removed:241 │
│ │
│ C:\SD2\sdnext\webui.py:12 in │
│ │
│ 11 from threading import Thread │
│ ❱ 12 import modules.loader │
│ 13 import modules.hashes │
│ │
│ C:\SD2\sdnext\modules\loader.py:30 in │
│ │
│ 29 warnings.filterwarnings(action="ignore", category=UserWarning, module="torchvision") │
│ ❱ 30 import torchvision # pylint: disable=W0611,C0411 │
│ 31 import pytorch_lightning # pytorch_lightning should be imported after torch, but it re-enables warnings on imp │
│ │
│ C:\SD2\sdnext\venv\Lib\site-packages\torchvision_init.py:10 in │
│ │
│ 9 from .extension import _HAS_OPS # usort:skip │
│ ❱ 10 from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils # usort:skip │
│ 11 │
│ │
│ ... 6 frames hidden ... │
│ │
│ C:\SD2\sdnext\venv\Lib\site-packages\torch_dynamo\convert_frame.py:33 in │
│ │
│ 32 from torch._dynamo.distributed import get_compile_pg │
│ ❱ 33 from torch._dynamo.symbolic_convert import TensorifyState │
│ 34 from torch._guards import compile_context, CompileContext, CompileId, tracing │
│ │
│ C:\SD2\sdnext\venv\Lib\site-packages\torch_dynamo\symbolic_convert.py:27 in │
│ │
│ 26 import torch._logging │
│ ❱ 27 from torch.dynamo.exc import TensorifyScalarRestartAnalysis │
│ 28 from torch.guards import tracing, TracingContext │
│ │
│ C:\SD2\sdnext\venv\Lib\site-packages\torch_dynamo\exc.py:11 in │
│ │
│ 10 from . import config │
│ ❱ 11 from .utils import counters │
│ 12 │
│ │
│ C:\SD2\sdnext\venv\Lib\site-packages\torch_dynamo\utils.py:111 in │
│ │
│ 110 np.linalg, │
│ ❱ 111 np.random, │
│ 112 ) │
│ │
│ C:\SD2\sdnext\venv\Lib\site-packages\numpy_init.py:354 in getattr │
│ │
│ 353 "core", "matrixlib", │
│ ❱ 354 # These were moved in 1.25 and may be deprecated eventually: │
│ 355 "ModuleDeprecationWarning", "VisibleDeprecationWarning", │
│ │
│ C:\SD2\sdnext\venv\Lib\site-packages\numpy\random_init.py:180 in │
│ │
│ 179 # add these for module-freeze analysis (like PyInstaller) │
│ ❱ 180 from . import _pickle │
│ 181 from . import _common │
│ │
│ C:\SD2\sdnext\venv\Lib\site-packages\numpy\random_pickle.py:1 in │
│ │
│ ❱ 1 from .mtrand import RandomState │
│ 2 from ._philox import Philox │
│ │
│ in init numpy.random.mtrand:1 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
I absolutely don't know what it means and what I should do with that. Any help would be great !
Version Platform Description
No response
Relevant log output
Backend
Diffusers
UI
Standard
Branch
Master
Model
StableDiffusion XL
Acknowledgements
The text was updated successfully, but these errors were encountered: