我不懂为什么以前能用nunchaku出图,现在更新了comfyui后,反而用不了AttributeError: 'NoneType' object has no attribute 'dtype' #13103
Unanswered
boy530064320
asked this question in
Q&A
Replies: 1 comment
-
|
nunchaku-z-image-turbo.json |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我不懂为什么以前能用,现在更新了comfyui后,反而用不了。一直是一个报错。很手足无措。求大佬帮忙,报错如下:
AttributeError: 'NoneType' object has no attribute 'dtype'
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\execution.py", line 524, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\execution.py", line 333, in get_output_data
return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\execution.py", line 307, in _async_map_node_over_list
await process_inputs(input_dict, i)
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\execution.py", line 295, in process_inputs
result = f(**inputs)
^^^^^^^^^^^
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\custom_nodes\ComfyUI-nunchaku\nodes\models\zimage.py", line 215, in load_model
model = _load(sd, metadata=metadata)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\custom_nodes\ComfyUI-nunchaku\nodes\models\zimage.py", line 148, in _load
model = model_config.get_model(patched_sd, "", torch_dtype=torch_dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\custom_nodes\ComfyUI-nunchaku\model_configs\zimage.py", line 71, in get_model
patch_model(
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\custom_nodes\ComfyUI-nunchaku\models\zimage.py", line 320, in patch_model
_patch_transformer_block(diffusion_model.layers)
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\custom_nodes\ComfyUI-nunchaku\models\zimage.py", line 317, in _patch_transformer_block
block.attention = ComfyNunchakuZImageAttention(block.attention, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI\ComfyUI-WorkFisher-V2\ComfyUI\custom_nodes\ComfyUI-nunchaku\models\zimage.py", line 133, in init
self.qkv = SVDQW4A4Linear.from_linear(orig_attn.qkv, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI\ComfyUI-WorkFisher-V2\python\Lib\site-packages\nunchaku\models\linear.py", line 152, in from_linear
torch_dtype = kwargs.pop("torch_dtype", linear.weight.dtype)
^^^^^^^^^^^^^^^^^^^
————————————————————————————————————————
————————————————————————————————————————
我的环境:
Microsoft Windows [版本 10.0.19045.6466]
(c) Microsoft Corporation。保留所有权利。
[SD-Launcher] D:\AI\ComfyUI-WorkFisher-V2\ComfyUI>python -c "import torch; print(torch.version)"
2.8.0+cu128
Microsoft Windows [版本 10.0.19045.6466]
(c) Microsoft Corporation。保留所有权利。
C:\Users\Administrator>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Fri_Feb_21_20:42:46_Pacific_Standard_Time_2025
Cuda compilation tools, release 12.8, V12.8.93
Build cuda_12.8.r12.8/compiler.35583870_0
C:\Users\Administrator>dir "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8"
驱动器 C 中的卷没有标签。
卷的序列号是 F813-98A8
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8 的目录
2026/03/02 17:24
.
2026/03/02 17:24 ..
2026/03/02 17:24 bin
2026/03/02 17:24 compute-sanitizer
2025/02/13 18:16 80,660 CUDA_Toolkit_Release_Notes.txt
2025/02/13 18:16 160 DOCS
2025/02/13 18:16 63,021 EULA.txt
2026/03/02 17:24 extras
2026/03/02 17:24 include
2026/03/02 17:24 lib
2026/03/02 17:24 libnvvp
2025/02/13 18:16 63,021 LICENSE
2026/03/02 17:24 nvml
2026/03/02 17:24 nvvm
2025/02/13 18:16 524 README
2026/03/02 17:24 src
2026/03/02 17:24 tools
2025/03/04 12:48 2,704 version.json
6 个文件 210,090 字节
12 个目录 127,077,294,080 可用字节
C:\Users\Administrator>echo %CUDA_PATH%
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8
C:\Users\Administrator>nvidia-smi
Sat Mar 14 15:33:23 2026
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 591.74 Driver Version: 591.74 CUDA Version: 13.1 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Driver-Model | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4060 Ti WDDM | 00000000:01:00.0 On | N/A |
| 0% 35C P2 25W / 165W | 8776MiB / 16380MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 10064 C+G E:\game\QQ新版本安装目录\QQ.exe N/A |
| 0 N/A N/A 11916 C+G D:\Quark\quark.exe N/A |
| 0 N/A N/A 18136 C+G ...5n1h2txyewy\TextInputHost.exe N/A |
| 0 N/A N/A 18924 C+G ...t\Edge\Application\msedge.exe N/A |
| 0 N/A N/A 20496 C+G D:\Quark\quark.exe N/A |
| 0 N/A N/A 22584 C+G ...t\Edge\Application\msedge.exe N/A |
| 0 N/A N/A 23192 C+G ...ntrolPanel\SystemSettings.exe N/A |
| 0 N/A N/A 23464 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 24132 C+G ...h_cw5n1h2txyewy\SearchApp.exe N/A |
+-----------------------------------------------------------------------------------------+
我更新后发现用不了才安装了新的轮子,新轮子提示安装成功的。nunchaku-1.2.1+cu12.8torch2.8-cp312-cp312-win_amd64.whl这个是我用的轮子
D:\AI\ComfyUI-WorkFisher-V2\python>python.exe -m pip list
Package Version
absl-py 2.3.0
accelerate 1.12.0
addict 2.4.0
aiofiles 24.1.0
aiohappyeyeballs 2.6.1
aiohttp 3.12.13
aiohttp-cors 0.8.1
aiohttp_socks 0.10.1
aiosignal 1.3.2
albucore 0.0.24
albumentations 2.0.8
alembic 1.16.2
annotated-types 0.7.0
antlr4-python3-runtime 4.9.3
anyio 4.9.0
argostranslate 1.9.6
attrs 25.3.0
av 14.4.0
beautifulsoup4 4.13.4
bitsandbytes 0.48.1
blake3 1.0.8
blend_modes 2.2.0
blobfile 3.1.0
boto3 1.34.86
botocore 1.34.162
brotli 1.2.0
build 1.4.0
cachetools 6.1.0
certifi 2025.11.12
cffi 2.0.0
cfgv 3.4.0
chardet 5.2.0
charset-normalizer 3.4.4
click 8.2.1
clip-interrogator 0.6.0
cmake 4.1.2
color-matcher 0.6.0
colorama 0.4.6
coloredlogs 15.0.1
colorlog 6.9.0
colour-science 0.4.6
comfy-aimdo 0.2.10
comfy-kitchen 0.2.8
comfyui-embedded-docs 0.4.3
comfyui_frontend_package 1.41.19
comfyui_workflow_templates 0.9.21
comfyui-workflow-templates-core 0.3.168
comfyui-workflow-templates-media-api 0.3.64
comfyui-workflow-templates-media-image 0.3.104
comfyui-workflow-templates-media-other 0.3.141
comfyui-workflow-templates-media-video 0.3.60
contourpy 1.3.2
cryptography 46.0.3
cssselect2 0.8.0
cstr 0.1.0
ctranslate2 4.6.0
cupy-cuda12x 13.6.0
cycler 0.12.1
Cython 3.1.2
datasets 4.4.2
ddgs 9.10.0
ddt 1.7.2
decord 0.6.0
deep-translator 1.11.4
deepdiff 8.6.1
Deprecated 1.2.18
diffusers 0.36.0
dill 0.4.0
diskcache 5.6.3
distlib 0.4.0
distro 1.9.0
dlib 19.24.99
docstring_parser 0.17.0
docutils 0.21.2
dotenv 0.9.9
easydict 1.13
einops 0.8.1
einx 0.3.0
et_xmlfile 2.0.0
facexlib 0.3.0
fairscale 0.4.13
fake-useragent 2.2.0
fal_client 0.8.1
faster-whisper 1.2.0
fastrlock 0.8.3
ffmpy 0.3.0
filelock 3.20.1
filterpy 1.4.5
flatbuffers 25.2.10
fonttools 4.58.4
frozendict 2.4.7
frozenlist 1.7.0
fsspec 2025.10.0
ftfy 6.1.1
future 1.0.0
fvcore 0.1.5.post20221221
gdown 5.2.0
geographiclib 2.1
geopy 2.4.1
gguf 0.17.1
gitdb 4.0.12
GitPython 3.1.44
glfw 2.10.0
googletrans-py 4.0.0
greenlet 3.2.3
groundingdino-py 0.4.0
h11 0.16.0
h2 4.2.0
hf_transfer 0.1.9
hf-xet 1.2.0
hpack 4.1.0
httpcore 1.0.9
httpx 0.28.1
httpx-sse 0.4.3
huggingface-hub 0.36.0
humanfriendly 10.0
hydra-core 1.3.2
hyperframe 6.1.0
identify 2.6.15
idna 3.11
imageio 2.37.0
imageio-ffmpeg 0.6.0
img2texture 1.0.6
importlib_metadata 8.7.0
iniconfig 2.3.0
insightface 0.7.3
instructor 1.11.3
iopath 0.1.10
jax 0.6.2
jaxlib 0.6.2
Jinja2 3.1.6
jiter 0.10.0
jmespath 1.0.1
joblib 1.5.1
json_repair 0.52.3
jsonschema 4.24.0
jsonschema-specifications 2025.4.1
kagglehub 0.4.1
kagglesdk 0.1.15
kaldi-native-fbank 1.22.3
kiwisolver 1.4.8
kornia 0.8.1
kornia_rs 0.1.9
lark 1.3.0
lark-parser 0.12.0
lazy_loader 0.4
lightning-utilities 0.15.2
llama_cpp_python 0.3.18
llvmlite 0.45.1
loguru 0.7.3
loralib 0.1.2
lxml 6.0.0
Mako 1.3.10
manifold3d 3.1.1
mapbox_earcut 1.0.3
markdown-it-py 3.0.0
MarkupSafe 3.0.3
matplotlib 3.10.3
matrix-client 0.4.0
matrix-nio 0.25.2
mdurl 0.1.2
mediapipe 0.10.21
ml_dtypes 0.5.1
modelscope 1.33.0
mpmath 1.3.0
mss 10.0.0
multidict 6.6.2
multiprocess 0.70.18
natsort 8.4.0
nest-asyncio 1.6.0
networkx 3.3
ninja 1.11.1.4
nodeenv 1.9.1
ntplib 0.4.0
numba 0.62.1
numpy 1.26.4
nunchaku 1.2.1+cu12.8torch2.8
nvidia-ml-py 13.580.82
ollama 0.6.0
omegaconf 2.3.0
onnx 1.18.0
onnxruntime 1.22.0
onnxruntime-gpu 1.22.0
open_clip_torch 3.2.0
openai 1.109.1
opencv-contrib-python 4.8.0.76
opencv-contrib-python-headless 4.11.0.86
opencv-python 4.8.0.76
opencv-python-headless 4.9.0.80
openpyxl 3.1.5
opt_einsum 3.4.0
optimum 2.1.0
orderly-set 5.5.0
packaging 25.0
pandas 2.3.3
peft 0.17.0
piexif 1.1.3
pilgram 1.2.1
pillow 12.0.0
pip 25.3
pipdeptree 2.30.0
pixeloe 0.1.4
platformdirs 4.3.8
pluggy 1.6.0
polars 1.34.0
polars-runtime-32 1.34.0
pooch 1.8.2
portalocker 3.2.0
pre_commit 4.3.0
prettytable 3.16.0
primp 0.15.0
propcache 0.3.2
protobuf 4.25.8
psutil 7.0.0
py-cpuinfo 9.0.0
pyarrow 22.0.0
pycocotools 2.0.10
pycollada 0.9.1
pycparser 2.22
pycryptodome 3.23.0
pycryptodomex 3.23.0
pydantic 2.11.7
pydantic_core 2.33.2
pydantic-settings 2.10.1
PyGithub 2.6.1
Pygments 2.19.2
PyJWT 2.10.1
pyloudnorm 0.1.1
PyMatting 1.1.14
PyNaCl 1.5.0
pynvml 13.0.1
PyOpenGL 3.1.10
PyOpenGL-accelerate 3.1.10
pyOpenSSL 25.3.0
pyparsing 3.2.3
pyproject_hooks 1.2.0
pyreadline3 3.5.4
PySocks 1.7.1
pytest 8.4.2
python-dateutil 2.9.0.post0
python-dotenv 1.1.1
python-socks 2.7.1
pytorch-extension 0.2
pytorch-lightning 2.5.5
pytz 2025.2
PyWavelets 1.9.0
pywin32 310
PyYAML 6.0.3
qwen-vl-utils 0.0.14
redis 7.1.0
referencing 0.36.2
regex 2025.11.3
rembg 2.0.66
replicate 1.0.7
reportlab 4.4.2
requests 2.32.5
rich 14.0.0
rotary-embedding-torch 0.8.9
rpds-py 0.25.1
rtree 1.4.0
s3transfer 0.10.4
sacremoses 0.0.53
safetensors 0.7.0
sageattention 2.2.0+cu128torch2.8.0
SAM-2 1.0
scenedetect 0.6.7.1
scikit-image 0.25.2
scikit-learn 1.7.0
scipy 1.16.0
segment-anything 1.0
sentencepiece 0.2.0
setuptools 80.9.0
shapely 2.1.1
shellingham 1.5.4
simpleeval 1.0.4
simsimd 6.4.9
six 1.17.0
smmap 5.0.2
sniffio 1.3.1
socksio 1.0.0
sounddevice 0.5.2
soundfile 0.13.1
soupsieve 2.7
spandrel 0.4.1
SQLAlchemy 2.0.41
stanza 1.1.1
stringzilla 3.12.5
supervision 0.6.0
surrealist 1.1.2
svg.path 6.3
svglib 1.5.1
swarm 0.1.0
sympy 1.13.3
tabulate 0.9.0
tenacity 9.1.2
termcolor 3.1.0
threadpoolctl 3.6.0
tifffile 2025.6.11
tiktoken 0.12.0
timm 1.0.19
tinycss2 1.4.0
tokenizers 0.22.2
toml 0.10.2
tomli 2.2.1
torch 2.8.0+cu128
torchao 0.15.0
torchaudio 2.8.0+cu128
torchcodec 0.10.0
torchdata 0.11.0
torchmetrics 1.8.2
torchsde 0.2.6
torchtune 0.6.1
torchvision 0.23.0+cu128
tqdm 4.67.1
trampoline 0.1.2
transformers 4.57.3
transparent-background 1.3.4
trimesh 4.6.13
triton-windows 3.5.1.post23
typer 0.16.0
typing_extensions 4.15.0
typing-inspection 0.4.1
tzdata 2025.3
ultralytics 8.3.221
ultralytics-thop 2.0.17
unpaddedbase64 2.1.0
urllib3 1.26.20
uv 0.7.17
vector-quantize-pytorch 1.27.20
vhacdx 0.0.8.post2
virtualenv 20.35.3
watchdog 6.0.0
wcwidth 0.2.14
webcolors 24.11.1
webencodings 0.5.1
websocket-client 1.9.0
wget 3.2
wheel 0.45.1
win32_setctime 1.2.0
wrapt 1.17.2
xxhash 3.5.0
yacs 0.1.8
yapf 0.43.0
yarl 1.20.1
zipp 3.23.0
————————————————————————————————————————————————————————
nunchaku-z-image-turbo.json
求大佬们指点一二,不胜感激。大佬们一生平安,小弟感恩的心
Beta Was this translation helpful? Give feedback.
All reactions