ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

- **Exception Message:** Can't be indexed using 32-bit iterator on Mac studio M3 Ultra

Open Jasonzhangf opened this issue 6 months ago • 9 comments

Expected Behavior

it should work normally

Actual Behavior

It throughs exceptions

Steps to Reproduce

just run the workflwo

自动换logo+换脸+手动mask.json

Debug Logs

here is the log
# ComfyUI Error Report
## Error Details
- **Node ID:** 38
- **Node Type:** InpaintModelConditioning
- **Exception Type:** RuntimeError
- **Exception Message:** Can't be indexed using 32-bit iterator
## Stack Trace

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 347, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 222, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 194, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 183, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 434, in encode
    concat_latent = vae.encode(pixels)
                    ^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/sd.py", line 639, in encode
    out = self.first_stage_model.encode(pixels_in).to(self.output_device).float()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/models/autoencoder.py", line 130, in encode
    z = self.encoder(x)
        ^^^^^^^^^^^^^^^

  File "/Users/fanzhang/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1755, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/fanzhang/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1766, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 602, in forward
    h = self.mid.attn_1(h)
        ^^^^^^^^^^^^^^^^^^

  File "/Users/fanzhang/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1755, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/fanzhang/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1766, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 343, in forward
    h_ = self.optimized_attention(q, k, v)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 255, in normal_attention
    r1 = slice_attention(q, k, v)
         ^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 227, in slice_attention
    s1 = torch.bmm(q[:, i:end], k) * scale
         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~


## System Information
- **ComfyUI Version:** 0.3.33
- **Arguments:** /Applications/ComfyUI.app/Contents/Resources/ComfyUI/main.py --user-directory /Users/fanzhang/Documents/ComfyUI/user --input-directory /Users/fanzhang/Documents/ComfyUI/input --output-directory /Users/fanzhang/Documents/ComfyUI/output --front-end-root /Applications/ComfyUI.app/Contents/Resources/ComfyUI/web_custom_versions/desktop_app --base-directory /Users/fanzhang/Documents/ComfyUI --extra-model-paths-config /Users/fanzhang/Library/Application Support/ComfyUI/extra_models_config.yaml --log-stdout --listen 127.0.0.1 --port 8000 --disable-cuda-malloc
- **OS:** posix
- **Python Version:** 3.12.9 (main, Feb 12 2025, 15:09:19) [Clang 19.1.6 ]
- **Embedded Python:** false
- **PyTorch Version:** 2.8.0.dev20250507
## Devices

- **Name:** mps
  - **Type:** mps
  - **VRAM Total:** 549755813888
  - **VRAM Free:** 431870345216
  - **Torch VRAM Total:** 549755813888
  - **Torch VRAM Free:** 431870345216

## Logs

2025-05-12T14:23:18.066848 - 2025-05-12T14:23:18.069477 -   Using cached dghs_imgutils-0.2.10-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.069493 - 2025-05-12T14:23:18.071879 -   Using cached dghs_imgutils-0.2.9-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.071899 - 2025-05-12T14:23:18.074670 -   Using cached dghs_imgutils-0.2.8-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.074692 - 2025-05-12T14:23:18.077313 -   Using cached dghs_imgutils-0.2.7-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.077328 - 2025-05-12T14:23:18.079683 -   Using cached dghs_imgutils-0.2.6-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.079697 - 2025-05-12T14:23:18.082423 -   Using cached dghs_imgutils-0.2.5-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.082440 - 2025-05-12T14:23:18.084929 -   Using cached dghs_imgutils-0.2.4-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.084943 - 2025-05-12T14:23:18.087372 -   Using cached dghs_imgutils-0.2.3-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.087388 - 2025-05-12T14:23:18.090043 -   Using cached dghs_imgutils-0.2.2-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.090061 - 2025-05-12T14:23:18.093372 -   Using cached dghs_imgutils-0.2.1-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.093385 - 2025-05-12T14:23:18.096019 -   Using cached dghs_imgutils-0.2.0-py3-none-any.whl.metadata (18 kB)
2025-05-12T14:23:18.096036 - 2025-05-12T14:23:18.098439 -   Using cached dghs_imgutils-0.1.1-py3-none-any.whl.metadata (15 kB)
2025-05-12T14:23:18.098462 - 2025-05-12T14:23:18.100827 -   Using cached dghs_imgutils-0.1.0-py3-none-any.whl.metadata (15 kB)
2025-05-12T14:23:18.100851 - 2025-05-12T14:23:18.103445 -   Using cached dghs_imgutils-0.0.4-py3-none-any.whl.metadata (15 kB)
2025-05-12T14:23:18.103465 - 2025-05-12T14:23:18.105855 -   Using cached dghs_imgutils-0.0.3-py3-none-any.whl.metadata (15 kB)
2025-05-12T14:23:18.105868 - 2025-05-12T14:23:18.108191 -   Using cached dghs_imgutils-0.0.2-py3-none-any.whl.metadata (15 kB)
2025-05-12T14:23:18.108205 - 2025-05-12T14:23:18.110948 -   Using cached dghs_imgutils-0.0.1-py3-none-any.whl.metadata (13 kB)
2025-05-12T14:23:18.110963 - 2025-05-12T14:23:18.113477 - ERROR: Cannot install dghs-imgutils[gpu]==0.0.1, dghs-imgutils[gpu]==0.0.2, dghs-imgutils[gpu]==0.0.3, dghs-imgutils[gpu]==0.0.4, dghs-imgutils[gpu]==0.1.0, dghs-imgutils[gpu]==0.1.1, dghs-imgutils[gpu]==0.10.0, dghs-imgutils[gpu]==0.11.0, dghs-imgutils[gpu]==0.11.1, dghs-imgutils[gpu]==0.11.2, dghs-imgutils[gpu]==0.12.0, dghs-imgutils[gpu]==0.13.0, dghs-imgutils[gpu]==0.14.0, dghs-imgutils[gpu]==0.14.1, dghs-imgutils[gpu]==0.15.0, dghs-imgutils[gpu]==0.16.0, dghs-imgutils[gpu]==0.2.0, dghs-imgutils[gpu]==0.2.1, dghs-imgutils[gpu]==0.2.10, dghs-imgutils[gpu]==0.2.2, dghs-imgutils[gpu]==0.2.3, dghs-imgutils[gpu]==0.2.4, dghs-imgutils[gpu]==0.2.5, dghs-imgutils[gpu]==0.2.6, dghs-imgutils[gpu]==0.2.7, dghs-imgutils[gpu]==0.2.8, dghs-imgutils[gpu]==0.2.9, dghs-imgutils[gpu]==0.3.0, dghs-imgutils[gpu]==0.3.1, dghs-imgutils[gpu]==0.3.2, dghs-imgutils[gpu]==0.3.3, dghs-imgutils[gpu]==0.3.4, dghs-imgutils[gpu]==0.3.5, dghs-imgutils[gpu]==0.4.0, dghs-imgutils[gpu]==0.4.1, dghs-imgutils[gpu]==0.4.10, dghs-imgutils[gpu]==0.4.11, dghs-imgutils[gpu]==0.4.2, dghs-imgutils[gpu]==0.4.3, dghs-imgutils[gpu]==0.4.4, dghs-imgutils[gpu]==0.4.5, dghs-imgutils[gpu]==0.4.6, dghs-imgutils[gpu]==0.4.7, dghs-imgutils[gpu]==0.4.8, dghs-imgutils[gpu]==0.4.9, dghs-imgutils[gpu]==0.5.0, dghs-imgutils[gpu]==0.6.0, dghs-imgutils[gpu]==0.6.1, dghs-imgutils[gpu]==0.6.2, dghs-imgutils[gpu]==0.6.3, dghs-imgutils[gpu]==0.7.0, dghs-imgutils[gpu]==0.7.1, dghs-imgutils[gpu]==0.8.0, dghs-imgutils[gpu]==0.9.0, dghs-imgutils[gpu]==0.9.1, dghs-imgutils[gpu]==0.9.2, dghs-imgutils[gpu]==0.9.3 and dghs-imgutils[gpu]==0.9.4 because these package versions have conflicting dependencies.
2025-05-12T14:23:18.113524 - 
2025-05-12T14:23:18.113553 - 2025-05-12T14:23:18.113584 - The conflict is caused by:
2025-05-12T14:23:18.113602 - 2025-05-12T14:23:18.113619 - 2025-05-12T14:23:18.113633 -     dghs-imgutils[gpu] 0.16.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113645 - 2025-05-12T14:23:18.113658 -     dghs-imgutils[gpu] 0.15.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113680 - 2025-05-12T14:23:18.113690 -     dghs-imgutils[gpu] 0.14.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113699 - 2025-05-12T14:23:18.113706 -     dghs-imgutils[gpu] 0.14.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113716 - 2025-05-12T14:23:18.113734 -     dghs-imgutils[gpu] 0.13.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113746 - 2025-05-12T14:23:18.113755 -     dghs-imgutils[gpu] 0.12.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113764 - 2025-05-12T14:23:18.113771 -     dghs-imgutils[gpu] 0.11.2 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113783 - 2025-05-12T14:23:18.113797 -     dghs-imgutils[gpu] 0.11.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113807 - 2025-05-12T14:23:18.113813 -     dghs-imgutils[gpu] 0.11.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113825 - 2025-05-12T14:23:18.113832 -     dghs-imgutils[gpu] 0.10.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113845 - 2025-05-12T14:23:18.113855 -     dghs-imgutils[gpu] 0.9.4 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113864 - 2025-05-12T14:23:18.113872 -     dghs-imgutils[gpu] 0.9.3 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113880 - 2025-05-12T14:23:18.113888 -     dghs-imgutils[gpu] 0.9.2 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113895 - 2025-05-12T14:23:18.113902 -     dghs-imgutils[gpu] 0.9.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113911 - 2025-05-12T14:23:18.113918 -     dghs-imgutils[gpu] 0.9.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113925 - 2025-05-12T14:23:18.113931 -     dghs-imgutils[gpu] 0.8.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113938 - 2025-05-12T14:23:18.113952 -     dghs-imgutils[gpu] 0.7.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113960 - 2025-05-12T14:23:18.113966 -     dghs-imgutils[gpu] 0.7.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113973 - 2025-05-12T14:23:18.113980 -     dghs-imgutils[gpu] 0.6.3 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.113988 - 2025-05-12T14:23:18.113995 -     dghs-imgutils[gpu] 0.6.2 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114003 - 2025-05-12T14:23:18.114010 -     dghs-imgutils[gpu] 0.6.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114017 - 2025-05-12T14:23:18.114023 -     dghs-imgutils[gpu] 0.6.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114032 - 2025-05-12T14:23:18.114039 -     dghs-imgutils[gpu] 0.5.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114048 - 2025-05-12T14:23:18.114054 -     dghs-imgutils[gpu] 0.4.11 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114061 - 2025-05-12T14:23:18.114067 -     dghs-imgutils[gpu] 0.4.10 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114075 - 2025-05-12T14:23:18.114081 -     dghs-imgutils[gpu] 0.4.9 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114088 - 2025-05-12T14:23:18.114094 -     dghs-imgutils[gpu] 0.4.8 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114101 - 2025-05-12T14:23:18.114109 -     dghs-imgutils[gpu] 0.4.7 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114118 - 2025-05-12T14:23:18.114124 -     dghs-imgutils[gpu] 0.4.6 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114133 - 2025-05-12T14:23:18.114142 -     dghs-imgutils[gpu] 0.4.5 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114150 - 2025-05-12T14:23:18.114160 -     dghs-imgutils[gpu] 0.4.4 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114167 - 2025-05-12T14:23:18.114181 -     dghs-imgutils[gpu] 0.4.3 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114192 - 2025-05-12T14:23:18.114203 -     dghs-imgutils[gpu] 0.4.2 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114220 - 2025-05-12T14:23:18.114234 -     dghs-imgutils[gpu] 0.4.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114247 - 2025-05-12T14:23:18.114258 -     dghs-imgutils[gpu] 0.4.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114267 - 2025-05-12T14:23:18.114276 -     dghs-imgutils[gpu] 0.3.5 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114285 - 2025-05-12T14:23:18.114300 -     dghs-imgutils[gpu] 0.3.4 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114316 - 2025-05-12T14:23:18.114324 -     dghs-imgutils[gpu] 0.3.3 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114331 - 2025-05-12T14:23:18.114337 -     dghs-imgutils[gpu] 0.3.2 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114370 - 2025-05-12T14:23:18.114401 -     dghs-imgutils[gpu] 0.3.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114418 - 2025-05-12T14:23:18.114443 -     dghs-imgutils[gpu] 0.3.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114460 - 2025-05-12T14:23:18.114476 -     dghs-imgutils[gpu] 0.2.10 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114490 - 2025-05-12T14:23:18.114501 -     dghs-imgutils[gpu] 0.2.9 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114512 - 2025-05-12T14:23:18.114523 -     dghs-imgutils[gpu] 0.2.8 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114532 - 2025-05-12T14:23:18.114547 -     dghs-imgutils[gpu] 0.2.7 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114557 - 2025-05-12T14:23:18.114564 -     dghs-imgutils[gpu] 0.2.6 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114574 - 2025-05-12T14:23:18.114583 -     dghs-imgutils[gpu] 0.2.5 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114594 - 2025-05-12T14:23:18.114603 -     dghs-imgutils[gpu] 0.2.4 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114611 - 2025-05-12T14:23:18.114620 -     dghs-imgutils[gpu] 0.2.3 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114629 - 2025-05-12T14:23:18.114640 -     dghs-imgutils[gpu] 0.2.2 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114651 - 2025-05-12T14:23:18.114661 -     dghs-imgutils[gpu] 0.2.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114670 - 2025-05-12T14:23:18.114678 -     dghs-imgutils[gpu] 0.2.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114686 - 2025-05-12T14:23:18.114693 -     dghs-imgutils[gpu] 0.1.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114700 - 2025-05-12T14:23:18.114707 -     dghs-imgutils[gpu] 0.1.0 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114714 - 2025-05-12T14:23:18.114721 -     dghs-imgutils[gpu] 0.0.4 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114728 - 2025-05-12T14:23:18.114735 -     dghs-imgutils[gpu] 0.0.3 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114742 - 2025-05-12T14:23:18.114748 -     dghs-imgutils[gpu] 0.0.2 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114755 - 2025-05-12T14:23:18.114787 -     dghs-imgutils[gpu] 0.0.1 depends on onnxruntime-gpu; extra == "gpu"
2025-05-12T14:23:18.114812 - 2025-05-12T14:23:18.114819 - 
2025-05-12T14:23:18.114827 - 2025-05-12T14:23:18.114853 - To fix this you could try to:
2025-05-12T14:23:18.114862 - 2025-05-12T14:23:18.114869 - 1. loosen the range of package versions you've specified
2025-05-12T14:23:18.114877 - 2025-05-12T14:23:18.114883 - 2. remove package versions to allow pip to attempt to solve the dependency conflict
2025-05-12T14:23:18.114891 - 2025-05-12T14:23:18.114897 - 
2025-05-12T14:23:18.114905 - 2025-05-12T14:23:18.129619 - 
2025-05-12T14:23:18.129664 - 2025-05-12T14:23:18.129695 - [notice] A new release of pip is available: 24.3.1 -> 25.1.1
2025-05-12T14:23:18.129724 - 2025-05-12T14:23:18.129752 - [notice] To update, run: pip3 install --upgrade pip
2025-05-12T14:23:18.129780 - 2025-05-12T14:23:18.130282 - ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
2025-05-12T14:23:18.130324 - 2025-05-12T14:23:18.179175 - Failed to install dghs-imgutils[gpu]2025-05-12T14:23:18.179205 - 
2025-05-12T14:23:18.518121 - # 😺dzNodes: LayerStyle -> [1;33mCannot import name 'guidedFilter' from 'cv2.ximgproc'
A few nodes cannot works properly, while most nodes are not affected. Please REINSTALL package 'opencv-contrib-python'.
For detail refer to [4mhttps://github.com/chflame163/ComfyUI_LayerStyle/issues/5[0m[m2025-05-12T14:23:18.518153 - 
2025-05-12T14:23:18.546741 - 
2025-05-12T14:23:18.546774 - [92m[rgthree-comfy] Loaded 42 epic nodes. 🎉[00m2025-05-12T14:23:18.546789 - 
2025-05-12T14:23:18.546800 - 
2025-05-12T14:23:18.849943 - [34mWAS Node Suite: [0mOpenCV Python FFMPEG support is enabled[0m2025-05-12T14:23:18.850001 - 
2025-05-12T14:23:18.850040 - [34mWAS Node Suite [93mWarning: [0m`ffmpeg_bin_path` is not set in `/Users/fanzhang/Documents/ComfyUI/custom_nodes/was-node-suite-comfyui/was_suite_config.json` config file. Will attempt to use system ffmpeg binaries if available.[0m2025-05-12T14:23:18.850055 - 
2025-05-12T14:23:19.031008 - [34mWAS Node Suite: [0mFinished.[0m [32mLoaded[0m [0m220[0m [32mnodes successfully.[0m2025-05-12T14:23:19.031066 - 
2025-05-12T14:23:19.031116 - 
	[3m[93m"Art is not freedom from discipline, but disciplined freedom."[0m[3m - John F. Kennedy[0m
2025-05-12T14:23:19.031129 - 
2025-05-12T14:23:19.050035 - ### Loading: ComfyUI-Manager (V3.30.4)
2025-05-12T14:23:19.050298 - [ComfyUI-Manager] network_mode: public
2025-05-12T14:23:19.050451 - ### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)
2025-05-12T14:23:19.056862 - 
Import times for custom nodes:
2025-05-12T14:23:19.057086 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/aigodlike-comfyui-translation
2025-05-12T14:23:19.057207 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/aigodlike-comfyui-studio
2025-05-12T14:23:19.057264 -    0.0 seconds: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/websocket_image_save.py
2025-05-12T14:23:19.057288 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-inpaint-cropandstitch
2025-05-12T14:23:19.057305 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-custom-scripts
2025-05-12T14:23:19.057356 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui_essentials
2025-05-12T14:23:19.057476 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/cg-use-everywhere
2025-05-12T14:23:19.057657 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/ComfyUI-segment-anything-2
2025-05-12T14:23:19.057681 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/rgthree-comfy
2025-05-12T14:23:19.057701 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/efficiency-nodes-comfyui
2025-05-12T14:23:19.057762 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-kjnodes
2025-05-12T14:23:19.057780 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/ComfyUI-GGUF
2025-05-12T14:23:19.057802 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-quasimondonodes
2025-05-12T14:23:19.057853 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-florence2
2025-05-12T14:23:19.057871 -    0.0 seconds: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager
2025-05-12T14:23:19.057897 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/agilly1989_motorway
2025-05-12T14:23:19.058021 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui_layerstyle
2025-05-12T14:23:19.058122 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-impact-subpack
2025-05-12T14:23:19.058170 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-impact-pack
2025-05-12T14:23:19.058201 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/ComfyUI_FaceShaper
2025-05-12T14:23:19.058219 -    0.0 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-jakeupgrade
2025-05-12T14:23:19.058240 -    0.1 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-utils-nodes
2025-05-12T14:23:19.058265 -    0.1 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-easy-use
2025-05-12T14:23:19.058286 -    0.1 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes
2025-05-12T14:23:19.058305 -    0.5 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/was-node-suite-comfyui
2025-05-12T14:23:19.058363 -    3.2 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/ComfyUI_LayerStyle_Advance
2025-05-12T14:23:19.058426 -    4.3 seconds: /Users/fanzhang/Documents/ComfyUI/custom_nodes/comfyui-logicutils
2025-05-12T14:23:19.058444 - 
2025-05-12T14:23:19.067841 - Starting server

2025-05-12T14:23:19.068064 - To see the GUI go to: http://127.0.0.1:8000
2025-05-12T14:23:19.956137 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2025-05-12T14:23:19.979806 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2025-05-12T14:23:20.082375 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2025-05-12T14:23:20.271543 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2025-05-12T14:23:20.322150 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2025-05-12T14:23:27.337787 - FETCH ComfyRegistry Data: 5/852025-05-12T14:23:27.338014 - 
2025-05-12T14:23:34.960676 - FETCH ComfyRegistry Data: 10/852025-05-12T14:23:34.960962 - 
2025-05-12T14:23:42.447202 - FETCH ComfyRegistry Data: 15/852025-05-12T14:23:42.447444 - 
2025-05-12T14:23:54.346145 - FETCH ComfyRegistry Data: 20/852025-05-12T14:23:54.346381 - 
2025-05-12T14:24:01.839882 - FETCH ComfyRegistry Data: 25/852025-05-12T14:24:01.840021 - 
2025-05-12T14:24:09.359096 - FETCH ComfyRegistry Data: 30/852025-05-12T14:24:09.359356 - 
2025-05-12T14:24:16.804536 - FETCH ComfyRegistry Data: 35/852025-05-12T14:24:16.804759 - 
2025-05-12T14:24:24.297660 - FETCH ComfyRegistry Data: 40/852025-05-12T14:24:24.297847 - 
2025-05-12T14:24:31.768443 - FETCH ComfyRegistry Data: 45/852025-05-12T14:24:31.768679 - 
2025-05-12T14:24:39.275565 - FETCH ComfyRegistry Data: 50/852025-05-12T14:24:39.275710 - 
2025-05-12T14:24:46.759789 - FETCH ComfyRegistry Data: 55/852025-05-12T14:24:46.760028 - 
2025-05-12T14:24:54.222173 - FETCH ComfyRegistry Data: 60/852025-05-12T14:24:54.222430 - 
2025-05-12T14:25:01.579147 - FETCH ComfyRegistry Data: 65/852025-05-12T14:25:01.579334 - 
2025-05-12T14:25:09.048643 - FETCH ComfyRegistry Data: 70/852025-05-12T14:25:09.048750 - 
2025-05-12T14:25:16.532765 - FETCH ComfyRegistry Data: 75/852025-05-12T14:25:16.532922 - 
2025-05-12T14:25:24.003992 - FETCH ComfyRegistry Data: 80/852025-05-12T14:25:24.004235 - 
2025-05-12T14:25:28.622235 - got prompt
2025-05-12T14:25:29.648706 - # 😺dzNodes: LayerStyle -> [1;33mvitmatte device is set to cuda, but not available, using cpu instead.[m2025-05-12T14:25:29.648742 - 
2025-05-12T14:25:31.371245 - FETCH ComfyRegistry Data: 85/852025-05-12T14:25:31.371294 - 
2025-05-12T14:25:31.875132 - FETCH ComfyRegistry Data [DONE]2025-05-12T14:25:31.875169 - 
2025-05-12T14:25:31.919575 - [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
2025-05-12T14:25:31.929314 - nightly_channel: 
https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/remote
2025-05-12T14:25:31.929451 - FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2025-05-12T14:25:31.929464 - 2025-05-12T14:25:33.111483 -  [DONE]2025-05-12T14:25:33.111523 - 
2025-05-12T14:25:33.131329 - [ComfyUI-Manager] All startup tasks have been completed.
2025-05-12T14:25:38.434954 - # 😺dzNodes: LayerStyle -> [1;32mSegformerB2ClothesUltra Processed 1 image(s).[m2025-05-12T14:25:38.434994 - 
2025-05-12T14:25:38.953861 - using extra model: /Users/fanzhang/Documents/ComfyUI/models/sams/sam_vit_h_4b8939.pth
2025-05-12T14:25:41.601107 - final text_encoder_type: bert-base-uncased2025-05-12T14:25:41.601145 - 
2025-05-12T14:25:44.840824 - # 😺dzNodes: LayerStyle -> [1;33mvitmatte device is set to cuda, but not available, using cpu instead.[m2025-05-12T14:25:44.840869 - 
2025-05-12T14:25:53.029365 - # 😺dzNodes: LayerStyle -> [1;32mSegmentAnythingUltra V2 Processed 1 image(s).[m2025-05-12T14:25:53.029412 - 
2025-05-12T14:25:53.614912 - Using split attention in VAE
2025-05-12T14:25:53.615369 - Using split attention in VAE
2025-05-12T14:25:53.686759 - VAE load device: mps, offload device: cpu, dtype: torch.bfloat16
2025-05-12T14:25:54.829291 - Requested to load FluxClipModel_
2025-05-12T14:25:54.833560 - loaded completely 9.5367431640625e+25 4777.53759765625 True
2025-05-12T14:25:54.834805 - CLIP/text encoder model load device: cpu, offload device: cpu, current: cpu, dtype: torch.float16
2025-05-12T14:25:54.873855 - clip missing: ['text_projection.weight']
2025-05-12T14:25:59.566656 - Requested to load CLIPVisionModelProjection
2025-05-12T14:25:59.570377 - loaded completely 9.5367431640625e+25 787.7150573730469 True
2025-05-12T14:26:00.605024 - Token indices sequence length is longer than the specified maximum sequence length for this model (101 > 77). Running this sequence through the model will result in indexing errors
2025-05-12T14:26:04.423586 - Requested to load AutoencodingEngine
2025-05-12T14:26:04.724094 - loaded completely 9.5367431640625e+25 159.87335777282715 True
2025-05-12T14:26:05.028573 - !!! Exception during processing !!! Can't be indexed using 32-bit iterator
2025-05-12T14:26:05.029873 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 347, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 222, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 194, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 183, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 434, in encode
    concat_latent = vae.encode(pixels)
                    ^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/sd.py", line 639, in encode
    out = self.first_stage_model.encode(pixels_in).to(self.output_device).float()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/models/autoencoder.py", line 130, in encode
    z = self.encoder(x)
        ^^^^^^^^^^^^^^^
  File "/Users/fanzhang/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1755, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fanzhang/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1766, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 602, in forward
    h = self.mid.attn_1(h)
        ^^^^^^^^^^^^^^^^^^
  File "/Users/fanzhang/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1755, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fanzhang/Documents/ComfyUI/.venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1766, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 343, in forward
    h_ = self.optimized_attention(q, k, v)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 255, in normal_attention
    r1 = slice_attention(q, k, v)
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/ldm/modules/diffusionmodules/model.py", line 227, in slice_attention
    s1 = torch.bmm(q[:, i:end], k) * scale
         ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
RuntimeError: Can't be indexed using 32-bit iterator

2025-05-12T14:26:05.030562 - Prompt executed in 36.40 seconds


## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.


## Additional Context
(Please add any additional context or steps to reproduce the error here)

Other

No response

Jasonzhangf avatar May 12 '25 06:05 Jasonzhangf