WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.23k stars 178 forks source link

Can't Queue Prompt If Primitive Node Connected In Graph #189

Open jacobhawkins495 opened 1 year ago

jacobhawkins495 commented 1 year ago

If a Primitive node is present in the graph and connected to a text input, clicking "Queue Prompt" does nothing.

I only have ComfyUI base and WAS Node Suite installed, using https://civitai.com/models/117359/mbbxl-ultimate as my model. No errors or other information is output to the console, literally nothing happens when "Queue Prompt" or "Queue Front" is clicked. The Primitive node must be deleted or disconnected from the graph in order for the "Queue Prompt" button to work. The primitive can contain any text and the issue persists. Primitive nodes work fine without WAS Node Suite installed.

Screenshot_20230830_131532

GPU: AMD Radeon RX 5700 XT 8GB CPU: AMD Ryzen 7 2700 RAM: 64GB OS: Arch Linux, kernel 6.4.12-arch1-1 Browser: Firefox 117.0 (64 bit) (Issue present in Chromium as well) Python version 3.10.13

pip freeze:

attrs==22.2.0
autocommand==2.2.2
cffi==1.15.1
cryptography==41.0.3
dbus-python==1.3.2
distlib==0.3.7
distro==1.8.0
fastjsonschema==2.18.0
filelock==3.12.2
inflect==7.0.0
iotop==0.6
jaraco.context==4.3.0
jaraco.functools==3.8.1
jaraco.text==3.11.1
libtorrent==2.0.9
lit==16.0.6.dev0
more-itertools==10.1.0
numpy==1.25.1
ordered-set==4.1.0
packaging==23.1
platformdirs==3.10.0
ply==3.11
psutil==5.9.5
pwquality==1.4.5
pyarrow==13.0.0
pycparser==2.21
pydantic==1.10.9
PyGObject==3.44.1
PyQt5==5.15.9
PyQt5-sip==12.12.2
setuptools-scm==7.1.0
smbus==1.1
tomli==2.0.1
trove-classifiers==2023.8.8
typing_extensions==4.7.1
validate-pyproject==0.13.post1.dev0+gb752273.d20230520
virtualenv==20.24.3
[kiraisuki@Azuryn ComfyUI]$ source sdxl/bin/activate
(sdxl) [kiraisuki@Azuryn ComfyUI]$ pip freeze
accelerate==0.22.0
aiohttp==3.8.5
aiosignal==1.3.1
async-timeout==4.0.3
attrs==23.1.0
boltons==23.0.0
certifi==2023.7.22
charset-normalizer==3.2.0
cmake==3.27.2
coloredlogs==15.0.1
contourpy==1.1.0
cycler==0.11.0
einops==0.6.1
fairscale==0.4.13
ffmpy @ git+https://github.com/WASasquatch/ffmpy.git@f000737698b387ffaeab7cd871b0e9185811230d
filelock==3.12.3
flatbuffers==23.5.26
fonttools==4.42.1
frozenlist==1.4.0
fsspec==2023.6.0
gitdb==4.0.10
GitPython==3.1.32
huggingface-hub==0.16.4
humanfriendly==10.0
idna==3.4
imageio==2.31.2
img2texture @ git+https://github.com/WASasquatch/img2texture.git@a546609a915caf1dcb84a15bf44b5b639ad924e6
Jinja2==3.1.2
joblib==1.3.2
kiwisolver==1.4.5
lazy_loader==0.3
lit==16.0.6
llvmlite==0.40.1
MarkupSafe==2.1.3
matplotlib==3.7.2
mpmath==1.3.0
multidict==6.0.4
networkx==3.1
numba==0.57.1
numpy==1.23.5
onnxruntime==1.15.1
opencv-python-headless==4.7.0.72
packaging==23.1
pilgram==1.2.1
Pillow==9.5.0
platformdirs==3.10.0
pooch==1.7.0
protobuf==4.24.2
psutil==5.9.5
PyMatting==1.1.8
pyparsing==3.0.9
python-dateutil==2.8.2
pytorch-triton-rocm==2.0.2
PyWavelets==1.4.1
PyYAML==6.0.1
regex==2023.8.8
rembg==2.0.50
requests==2.31.0
safetensors==0.3.3
scikit-image==0.20.0
scikit-learn==1.3.0
scipy==1.11.2
six==1.16.0
smmap==5.0.0
sympy==1.12
threadpoolctl==3.2.0
tifffile==2023.8.25
timm==0.9.6
tokenizers==0.13.3
torch==1.13.1+rocm5.2
torchaudio==0.13.1+rocm5.2
torchsde==0.2.5
torchvision==0.14.1+rocm5.2
tqdm==4.66.1
trampoline==0.1.2
transformers==4.26.1
typing_extensions==4.7.1
urllib3==2.0.4
yarl==1.9.2

Terminal output:

(sdxl) [kiraisuki@Azuryn ComfyUI]$ HSA_OVERRIDE_GFX_VERSION=10.3.0 python main.py --force-fp32 --listen
Total VRAM 8176 MB, total RAM 64226 MB
Forcing FP32, if this improves things please report it.
Set vram state to: NORMAL_VRAM
Device: cuda:0 AMD Radeon RX 5700 XT : 
VAE dtype: torch.float32
Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --use-split-cross-attention
Total VRAM 8176 MB, total RAM 64226 MB
Forcing FP32, if this improves things please report it.
Set vram state to: NORMAL_VRAM
Device: cuda:0 AMD Radeon RX 5700 XT : 
VAE dtype: torch.float32
WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite Warning: `ffmpeg_bin_path` is not set in `/mnt/Deep Storage 2/Stable Diffusions/ComfyUI/custom_nodes/was-node-suite-comfyui/was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available.
WAS Node Suite: Finished. Loaded 193 nodes successfully.

        "Art is the only way to run away without leaving home." - Twyla Tharp

Import times for custom nodes:
   1.2 seconds: /mnt/Deep Storage 2/Stable Diffusions/ComfyUI/custom_nodes/was-node-suite-comfyui

Starting server

To see the GUI go to: http://0.0.0.0:8188
got prompt
model_type EPS
adm 2816
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
missing {'cond_stage_model.clip_l.text_projection', 'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_g.transformer.text_model.embeddings.position_ids'}
WAS Node Suite: CLIPTextEncode Prased Prompt:
 (realistic:1.1) (smooth:1.1) multicolored big beautiful elderly (plush:2) (dragon:1.3)
loading new
WAS Node Suite: CLIPTextEncode Prased Prompt:
 blurry, blurred detail, poorly hands, poorly face, enhanced hands, missing fingers, mutated hands, fused fingers, deformed, malformed limbs, disfigured, watermarked, text, extremely grainy, very chromatic aberration, oversaturated
loading new
loading in lowvram mode 5501.538460731506
  0%|                                                                                                                       | 0/30 [00:00<?, ?it/s]MIOpen(HIP): Warning [SQLiteBase] Missing system database file: gfx1030_20.kdb Performance may degrade. Please follow instructions to install: https://github.com/ROCmSoftwarePlatform/MIOpen#installing-miopen-kernels-package
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [04:34<00:00,  9.14s/it]
You shouldn't move a model when it is dispatched on multiple devices.
WAS Node Suite: Image file saved to: /mnt/Deep Storage 2/Stable Diffusions/ComfyUI/output/2023-08-30/ComfyUI_00021.png
Prompt executed in 288.14 seconds
got prompt
3
WAS Node Suite: CLIPTextEncode Prased Prompt:
 (realistic:1.1) (smooth:1.1) cyan big fluffy elderly (plush:2) (dragon:1.3)
WAS Node Suite: CLIPTextEncode Prased Prompt:
 blurry, blurred detail, poorly hands, poorly face, enhanced hands, missing fingers, mutated hands, fused fingers, deformed, malformed limbs, disfigured, watermarked, text, extremely grainy, very chromatic aberration, oversaturated
WAS Node Suite: Text Output:
%KSampler.seed%

loading new
loading in lowvram mode 5452.307691574097
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [03:47<00:00,  7.58s/it]
You shouldn't move a model when it is dispatched on multiple devices.
You shouldn't move a model when it is dispatched on multiple devices.
WAS Node Suite: Image file saved to: /mnt/Deep Storage 2/Stable Diffusions/ComfyUI/output/2023-08-30/ComfyUI_00022.png
Prompt executed in 237.58 seconds
got prompt
3
WAS Node Suite: CLIPTextEncode Prased Prompt:
 (realistic:1.1) (smooth:1.1) yellow tall adorable baby (plush:2) (dragon:1.3)
WAS Node Suite: CLIPTextEncode Prased Prompt:
 blurry, blurred detail, poorly hands, poorly face, enhanced hands, missing fingers, mutated hands, fused fingers, deformed, malformed limbs, disfigured, watermarked, text, extremely grainy, very chromatic aberration, oversaturated
loading new
loading in lowvram mode 5452.307691574097
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [03:47<00:00,  7.58s/it]
You shouldn't move a model when it is dispatched on multiple devices.
You shouldn't move a model when it is dispatched on multiple devices.
You shouldn't move a model when it is dispatched on multiple devices.
WAS Node Suite: Image file saved to: /mnt/Deep Storage 2/Stable Diffusions/ComfyUI/output/2023-08-30/ComfyUI_00023.png
Prompt executed in 237.61 seconds
WASasquatch commented 1 year ago

It's a wonder you even got a primitive to hook up to a custom_node with forceInput=True. Usually you can't connect it, and it gets stuck to the cursor requiring a refresh of the tab. There is a PR for a fix to that issue, but I don't know if it covers your specific issue.

Your issue may be related though. This is a a base ComfyUI issue, as I have no access to any of the node connection functionality.