comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
55.41k stars 5.85k forks source link

CLIPSeg Input image size (352*352) doesn't match model (224*224). #5402

Open deepakpf opened 4 days ago

deepakpf commented 4 days ago

Your question

How do I solve this?? Workflow: workflow easy theme photo openart.ai working.json

Logs

# ComfyUI Error Report
## Error Details
- **Node Type:** CLIPSeg
- **Exception Type:** ValueError
- **Exception Message:** Input image size (352*352) doesn't match model (224*224).
## Stack Trace

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 323, 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 "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 198, 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 "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\clipseg.py", line 127, in segment_image
    outputs = model(**input_prc)

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\models\clipseg\modeling_clipseg.py", line 1436, in forward
    vision_outputs = self.clip.vision_model(

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\models\clipseg\modeling_clipseg.py", line 870, in forward
    hidden_states = self.embeddings(pixel_values, interpolate_pos_encoding=interpolate_pos_encoding)

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)

  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\models\clipseg\modeling_clipseg.py", line 211, in forward
    raise ValueError(

System Information

Logs

2024-10-29 11:50:31,317 - root - INFO - Total VRAM 4096 MB, total RAM 7919 MB
2024-10-29 11:50:31,318 - root - INFO - pytorch version: 2.5.1+cu124
2024-10-29 11:50:31,319 - root - INFO - Set vram state to: NORMAL_VRAM
2024-10-29 11:50:31,319 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3050 Laptop GPU : cudaMallocAsync
2024-10-29 11:50:33,357 - root - INFO - Using pytorch cross attention
2024-10-29 11:50:35,547 - root - INFO - [Prompt Server] web root: C:\StabilityMatrix\Data\Packages\ComfyUI\web
2024-10-29 11:50:35,551 - root - INFO - Adding extra search path checkpoints C:\StabilityMatrix\Data\Models\StableDiffusion
2024-10-29 11:50:35,552 - root - INFO - Adding extra search path vae C:\StabilityMatrix\Data\Models\VAE
2024-10-29 11:50:35,552 - root - INFO - Adding extra search path loras C:\StabilityMatrix\Data\Models\Lora
2024-10-29 11:50:35,552 - root - INFO - Adding extra search path loras C:\StabilityMatrix\Data\Models\LyCORIS
2024-10-29 11:50:35,552 - root - INFO - Adding extra search path upscale_models C:\StabilityMatrix\Data\Models\ESRGAN
2024-10-29 11:50:35,552 - root - INFO - Adding extra search path upscale_models C:\StabilityMatrix\Data\Models\RealESRGAN
2024-10-29 11:50:35,552 - root - INFO - Adding extra search path upscale_models C:\StabilityMatrix\Data\Models\SwinIR
2024-10-29 11:50:35,552 - root - INFO - Adding extra search path embeddings C:\StabilityMatrix\Data\Models\TextualInversion
2024-10-29 11:50:35,552 - root - INFO - Adding extra search path hypernetworks C:\StabilityMatrix\Data\Models\Hypernetwork
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path controlnet C:\StabilityMatrix\Data\Models\ControlNet
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path controlnet C:\StabilityMatrix\Data\Models\T2IAdapter
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path clip C:\StabilityMatrix\Data\Models\CLIP
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path clip_vision C:\StabilityMatrix\Data\Models\InvokeClipVision
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path diffusers C:\StabilityMatrix\Data\Models\Diffusers
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path gligen C:\StabilityMatrix\Data\Models\GLIGEN
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path vae_approx C:\StabilityMatrix\Data\Models\ApproxVAE
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path ipadapter C:\StabilityMatrix\Data\Models\IpAdapter
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path ipadapter C:\StabilityMatrix\Data\Models\InvokeIpAdapters15
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path ipadapter C:\StabilityMatrix\Data\Models\InvokeIpAdaptersXl
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path prompt_expansion C:\StabilityMatrix\Data\Models\PromptExpansion
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path ultralytics C:\StabilityMatrix\Data\Models\Ultralytics
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path ultralytics_bbox C:\StabilityMatrix\Data\Models\Ultralytics\bbox
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path ultralytics_segm C:\StabilityMatrix\Data\Models\Ultralytics\segm
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path sams C:\StabilityMatrix\Data\Models\Sams
2024-10-29 11:50:35,553 - root - INFO - Adding extra search path diffusion_models C:\StabilityMatrix\Data\Models\unet
2024-10-29 11:50:41,579 - root - INFO - Total VRAM 4096 MB, total RAM 7919 MB
2024-10-29 11:50:41,580 - root - INFO - pytorch version: 2.5.1+cu124
2024-10-29 11:50:41,580 - root - INFO - Set vram state to: NORMAL_VRAM
2024-10-29 11:50:41,580 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3050 Laptop GPU : cudaMallocAsync
2024-10-29 11:50:43,247 - root - INFO - --------------
2024-10-29 11:50:43,247 - root - INFO -  ### Mixlab Nodes: Loaded
2024-10-29 11:50:43,250 - root - INFO - ChatGPT.available False
2024-10-29 11:50:43,250 - root - INFO - edit_mask.available True
2024-10-29 11:50:44,129 - root - INFO - ClipInterrogator.available True
2024-10-29 11:50:44,348 - root - INFO - PromptGenerate.available True
2024-10-29 11:50:44,348 - root - INFO - ChinesePrompt.available True
2024-10-29 11:50:44,348 - root - INFO - RembgNode_.available True
2024-10-29 11:50:44,866 - root - INFO - TripoSR.available
2024-10-29 11:50:44,882 - root - INFO - MiniCPMNode.available
2024-10-29 11:50:44,882 - root - INFO - Scenedetect.available False
2024-10-29 11:50:44,992 - root - INFO - FishSpeech.available False
2024-10-29 11:50:44,992 - root - INFO - SenseVoice.available False
2024-10-29 11:50:44,992 - root - INFO - Whisper.available False
2024-10-29 11:50:45,007 - root - INFO - FalVideo.available
2024-10-29 11:50:45,007 - root - INFO -  -------------- 
2024-10-29 11:50:51,199 - root - INFO - 
Import times for custom nodes:
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\websocket_image_save.py
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\sdxl_prompt_styler
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\efficiency-nodes-comfyui
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-YOLO
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Universal-Styler
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\cg-use-everywhere
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_Gemini_Flash
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\stability-ComfyUI-nodes
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-photoshop
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-copilot
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUi_PromptStylers
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\masquerade-nodes-comfyui
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_JPS-Nodes
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus.old
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui_controlnet_aux
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyLiterals
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Impact-Pack
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-stablesr
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-various
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_essentials
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyMath
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-KJNodes-main
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-GGUF
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\rgthree-comfy
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
2024-10-29 11:50:51,199 - root - INFO -    0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2024-10-29 11:50:51,199 - root - INFO -    0.1 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-KJNodes
2024-10-29 11:50:51,199 - root - INFO -    0.1 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\Comfyui-ergouzi-Nodes
2024-10-29 11:50:51,199 - root - INFO -    0.1 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfy_mtb
2024-10-29 11:50:51,199 - root - INFO -    0.2 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_LayerStyle
2024-10-29 11:50:51,199 - root - INFO -    0.2 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\eden_comfy_pipelines
2024-10-29 11:50:51,199 - root - INFO -    0.5 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Gemini
2024-10-29 11:50:51,199 - root - INFO -    0.5 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Crystools
2024-10-29 11:50:51,199 - root - INFO -    0.8 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Manager
2024-10-29 11:50:51,199 - root - INFO -    0.8 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\clipseg.py
2024-10-29 11:50:51,199 - root - INFO -    0.8 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Easy-Use
2024-10-29 11:50:51,199 - root - INFO -    0.9 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-SUPIR
2024-10-29 11:50:51,199 - root - INFO -    1.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-art-venture
2024-10-29 11:50:51,199 - root - INFO -    1.2 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Allor
2024-10-29 11:50:51,199 - root - INFO -    2.2 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\was-node-suite-comfyui
2024-10-29 11:50:51,199 - root - INFO -    2.4 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-YoloWorld-EfficientSAM
2024-10-29 11:50:51,199 - root - INFO -    2.6 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-mixlab-nodes
2024-10-29 11:50:51,199 - root - INFO - 
2024-10-29 11:50:51,235 - root - INFO - Starting server

2024-10-29 11:50:51,235 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-10-29 11:51:46,371 - root - INFO - got prompt
2024-10-29 11:52:02,714 - root - INFO - model weight dtype torch.float16, manual cast: None
2024-10-29 11:52:02,762 - root - INFO - model_type EPS
2024-10-29 11:52:07,249 - root - INFO - Using pytorch attention in VAE
2024-10-29 11:52:07,280 - root - INFO - Using pytorch attention in VAE
2024-10-29 11:52:09,079 - root - INFO - loaded straight to GPU
2024-10-29 11:52:09,083 - root - INFO - Requested to load BaseModel
2024-10-29 11:52:09,083 - root - INFO - Loading 1 new model
2024-10-29 11:52:09,129 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-29 11:52:09,360 - root - INFO - Requested to load SD1ClipModel
2024-10-29 11:52:09,360 - root - INFO - Loading 1 new model
2024-10-29 11:52:09,702 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-10-29 11:52:10,579 - root - INFO - Using pytorch attention in VAE
2024-10-29 11:52:10,579 - root - INFO - Using pytorch attention in VAE
2024-10-29 11:52:12,297 - root - INFO - Requested to load CLIPVisionModelProjection
2024-10-29 11:52:12,297 - root - INFO - Loading 1 new model
2024-10-29 11:52:35,955 - root - INFO - loaded completely 0.0 1208.09814453125 True
2024-10-29 11:52:38,722 - root - INFO - Requested to load AutoencoderKL
2024-10-29 11:52:38,723 - root - INFO - Loading 1 new model
2024-10-29 11:52:42,421 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-10-29 11:52:47,565 - root - ERROR - !!! Exception during processing !!! Input image size (352*352) doesn't match model (224*224).
2024-10-29 11:52:47,653 - root - ERROR - Traceback (most recent call last):
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 323, 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 "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 198, 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 "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\clipseg.py", line 127, in segment_image
    outputs = model(**input_prc)
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\models\clipseg\modeling_clipseg.py", line 1436, in forward
    vision_outputs = self.clip.vision_model(
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\models\clipseg\modeling_clipseg.py", line 870, in forward
    hidden_states = self.embeddings(pixel_values, interpolate_pos_encoding=interpolate_pos_encoding)
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
  File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\models\clipseg\modeling_clipseg.py", line 211, in forward
    raise ValueError(
ValueError: Input image size (352*352) doesn't match model (224*224).

2024-10-29 11:52:47,668 - root - INFO - Prompt executed in 61.26 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

[workflow easy theme photo openart.ai working.json](https://github.com/user-attachments/files/17552324/workflow.easy.theme.photo.openart.ai.working.json)
ltdrdata commented 3 days ago

Try this forked version instead of original custom node. https://github.com/time-river/ComfyUI-CLIPSeg/blob/main/custom_nodes/clipseg.py

If it worked then let me know.

TheForgotten69 commented 3 days ago

SwarmUI also encounter the same bug by default. Commenting here as it's still raised as a ComfyUI exception

deepakpf commented 3 days ago

Try this forked version instead of original custom node. https://github.com/time-river/ComfyUI-CLIPSeg/blob/main/custom_nodes/clipseg.py

If it worked then let me know.

This didn't fix the issue.

ComfyUI Error Report

Error Details

## System Information
- **ComfyUI Version:** v0.2.5-3-g65a8659
- **Arguments:** C:\StabilityMatrix\Data\Packages\ComfyUI\main.py --normalvram --preview-method auto
- **OS:** nt
- **Python Version:** 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.5.1+cu124
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 3050 Laptop GPU : cudaMallocAsync
  - **Type:** cuda
  - **VRAM Total:** 4294443008
  - **VRAM Free:** 2029356697
  - **Torch VRAM Total:** 2113929216
  - **Torch VRAM Free:** 224337970

## Logs

2024-10-30 11:48:17,629 - root - INFO - Total VRAM 4096 MB, total RAM 7919 MB 2024-10-30 11:48:17,629 - root - INFO - pytorch version: 2.5.1+cu124 2024-10-30 11:48:17,631 - root - INFO - Set vram state to: NORMAL_VRAM 2024-10-30 11:48:17,631 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3050 Laptop GPU : cudaMallocAsync 2024-10-30 11:48:19,962 - root - INFO - Using pytorch cross attention 2024-10-30 11:48:22,356 - root - INFO - [Prompt Server] web root: C:\StabilityMatrix\Data\Packages\ComfyUI\web 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path checkpoints C:\StabilityMatrix\Data\Models\StableDiffusion 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path vae C:\StabilityMatrix\Data\Models\VAE 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path loras C:\StabilityMatrix\Data\Models\Lora 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path loras C:\StabilityMatrix\Data\Models\LyCORIS 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path upscale_models C:\StabilityMatrix\Data\Models\ESRGAN 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path upscale_models C:\StabilityMatrix\Data\Models\RealESRGAN 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path upscale_models C:\StabilityMatrix\Data\Models\SwinIR 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path embeddings C:\StabilityMatrix\Data\Models\TextualInversion 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path hypernetworks C:\StabilityMatrix\Data\Models\Hypernetwork 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path controlnet C:\StabilityMatrix\Data\Models\ControlNet 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path controlnet C:\StabilityMatrix\Data\Models\T2IAdapter 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path clip C:\StabilityMatrix\Data\Models\CLIP 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path clip_vision C:\StabilityMatrix\Data\Models\InvokeClipVision 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path diffusers C:\StabilityMatrix\Data\Models\Diffusers 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path gligen C:\StabilityMatrix\Data\Models\GLIGEN 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path vae_approx C:\StabilityMatrix\Data\Models\ApproxVAE 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path ipadapter C:\StabilityMatrix\Data\Models\IpAdapter 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path ipadapter C:\StabilityMatrix\Data\Models\InvokeIpAdapters15 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path ipadapter C:\StabilityMatrix\Data\Models\InvokeIpAdaptersXl 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path prompt_expansion C:\StabilityMatrix\Data\Models\PromptExpansion 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path ultralytics C:\StabilityMatrix\Data\Models\Ultralytics 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path ultralytics_bbox C:\StabilityMatrix\Data\Models\Ultralytics\bbox 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path ultralytics_segm C:\StabilityMatrix\Data\Models\Ultralytics\segm 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path sams C:\StabilityMatrix\Data\Models\Sams 2024-10-30 11:48:22,374 - root - INFO - Adding extra search path diffusion_models C:\StabilityMatrix\Data\Models\unet 2024-10-30 11:48:28,850 - root - INFO - Total VRAM 4096 MB, total RAM 7919 MB 2024-10-30 11:48:28,850 - root - INFO - pytorch version: 2.5.1+cu124 2024-10-30 11:48:28,850 - root - INFO - Set vram state to: NORMAL_VRAM 2024-10-30 11:48:28,850 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3050 Laptop GPU : cudaMallocAsync 2024-10-30 11:48:30,286 - root - INFO - -------------- 2024-10-30 11:48:30,286 - root - INFO -  ### Mixlab Nodes: Loaded 2024-10-30 11:48:30,286 - root - INFO - ChatGPT.available False 2024-10-30 11:48:30,286 - root - INFO - editmask.available True 2024-10-30 11:48:31,247 - root - INFO - ClipInterrogator.available True 2024-10-30 11:48:31,500 - root - INFO - PromptGenerate.available True 2024-10-30 11:48:31,500 - root - INFO - ChinesePrompt.available True 2024-10-30 11:48:31,500 - root - INFO - RembgNode.available True 2024-10-30 11:48:32,128 - root - INFO - TripoSR.available 2024-10-30 11:48:32,128 - root - INFO - MiniCPMNode.available 2024-10-30 11:48:32,128 - root - INFO - Scenedetect.available False 2024-10-30 11:48:32,269 - root - INFO - FishSpeech.available False 2024-10-30 11:48:32,269 - root - INFO - SenseVoice.available False 2024-10-30 11:48:32,269 - root - INFO - Whisper.available False 2024-10-30 11:48:32,286 - root - INFO - FalVideo.available 2024-10-30 11:48:32,286 - root - INFO -  --------------  2024-10-30 11:48:36,265 - root - WARNING - Traceback (most recent call last): File "C:\StabilityMatrix\Data\Packages\ComfyUI\nodes.py", line 2006, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\hd_node__init__.py", line 1, in from .HDNodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\hd_node\HDNodes.py", line 18, in from .reactor_swapper import swap_face, get_current_faces_model, analyze_faces, get_face_single File "C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\hd_node\reactor_swapper.py", line 12, in from insightface.app.common import Face ModuleNotFoundError: No module named 'insightface.app'

2024-10-30 11:48:36,265 - root - WARNING - Cannot import C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\hd_node module for custom nodes: No module named 'insightface.app' 2024-10-30 11:48:38,392 - root - INFO - Import times for custom nodes: 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\websocket_image_save.py 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-NAI-styler 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\efficiency-nodes-comfyui 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\cg-use-everywhere 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\sdxl_prompt_styler 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\masquerade-nodes-comfyui 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_Gemini_Flash 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-copilot 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Universal-Styler 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-YOLO 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyLiterals 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\stability-ComfyUI-nodes 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUi_PromptStylers 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui_controlnet_aux 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_JPS-Nodes 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus.old 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-photoshop 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds (IMPORT FAILED): C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\hd_node 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Impact-Pack 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-stablesr 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyMath 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_essentials 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-various 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-GGUF 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-KJNodes-main 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\rgthree-comfy 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet 2024-10-30 11:48:38,392 - root - INFO - 0.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes 2024-10-30 11:48:38,392 - root - INFO - 0.1 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-KJNodes 2024-10-30 11:48:38,392 - root - INFO - 0.1 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\Comfyui-ergouzi-Nodes 2024-10-30 11:48:38,392 - root - INFO - 0.1 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfy_mtb 2024-10-30 11:48:38,392 - root - INFO - 0.1 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\facerestore_cf 2024-10-30 11:48:38,392 - root - INFO - 0.2 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_LayerStyle 2024-10-30 11:48:38,392 - root - INFO - 0.3 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\eden_comfy_pipelines 2024-10-30 11:48:38,392 - root - INFO - 0.4 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Gemini 2024-10-30 11:48:38,392 - root - INFO - 0.6 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Crystools 2024-10-30 11:48:38,392 - root - INFO - 0.6 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Manager 2024-10-30 11:48:38,392 - root - INFO - 0.8 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\clipseg.py 2024-10-30 11:48:38,392 - root - INFO - 0.9 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-SUPIR 2024-10-30 11:48:38,392 - root - INFO - 1.0 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Easy-Use 2024-10-30 11:48:38,392 - root - INFO - 1.1 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-art-venture 2024-10-30 11:48:38,392 - root - INFO - 1.2 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-Allor 2024-10-30 11:48:38,392 - root - INFO - 2.1 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\was-node-suite-comfyui 2024-10-30 11:48:38,392 - root - INFO - 2.2 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-YoloWorld-EfficientSAM 2024-10-30 11:48:38,392 - root - INFO - 2.7 seconds: C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-mixlab-nodes 2024-10-30 11:48:38,392 - root - INFO - 2024-10-30 11:48:38,438 - root - INFO - Starting server

2024-10-30 11:48:38,438 - root - INFO - To see the GUI go to: http://127.0.0.1:8188 2024-10-30 11:49:20,635 - root - INFO - got prompt 2024-10-30 11:49:39,814 - root - INFO - model weight dtype torch.float16, manual cast: None 2024-10-30 11:49:39,872 - root - INFO - model_type EPS 2024-10-30 11:49:45,211 - root - INFO - Using pytorch attention in VAE 2024-10-30 11:49:45,248 - root - INFO - Using pytorch attention in VAE 2024-10-30 11:49:48,610 - root - INFO - loaded straight to GPU 2024-10-30 11:49:48,612 - root - INFO - Requested to load BaseModel 2024-10-30 11:49:48,612 - root - INFO - Loading 1 new model 2024-10-30 11:49:48,650 - root - INFO - loaded completely 0.0 1639.406135559082 True 2024-10-30 11:49:48,840 - root - INFO - Requested to load SD1ClipModel 2024-10-30 11:49:48,840 - root - INFO - Loading 1 new model 2024-10-30 11:49:49,843 - root - INFO - loaded completely 0.0 235.84423828125 True 2024-10-30 11:49:53,266 - root - INFO - Using pytorch attention in VAE 2024-10-30 11:49:53,280 - root - INFO - Using pytorch attention in VAE 2024-10-30 11:49:56,160 - root - INFO - Requested to load CLIPVisionModelProjection 2024-10-30 11:49:56,160 - root - INFO - Loading 1 new model 2024-10-30 11:50:23,599 - root - INFO - loaded completely 0.0 1208.09814453125 True 2024-10-30 11:50:39,555 - root - INFO - Requested to load AutoencoderKL 2024-10-30 11:50:39,555 - root - INFO - Loading 1 new model 2024-10-30 11:50:45,796 - root - INFO - loaded completely 0.0 159.55708122253418 True 2024-10-30 11:50:54,089 - root - ERROR - !!! Exception during processing !!! Input image size (352352) doesn't match model (224224). 2024-10-30 11:50:54,175 - root - ERROR - Traceback (most recent call last): File "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 323, 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 "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 198, 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 "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "C:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(inputs)) File "C:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\clipseg.py", line 127, in segment_image outputs = model(input_prc) File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, kwargs) File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl return forward_call(*args, *kwargs) File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\models\clipseg\modeling_clipseg.py", line 1436, in forward vision_outputs = self.clip.vision_model( File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl return self._call_impl(args, kwargs) File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl return forward_call(*args, kwargs) File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\models\clipseg\modeling_clipseg.py", line 870, in forward hidden_states = self.embeddings(pixel_values, interpolate_pos_encoding=interpolate_pos_encoding) File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl return self._call_impl(*args, *kwargs) File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl return forward_call(args, kwargs) File "C:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\transformers\models\clipseg\modeling_clipseg.py", line 211, in forward raise ValueError( ValueError: Input image size (352352) doesn't match model (224224).

2024-10-30 11:50:54,192 - root - INFO - Prompt executed in 93.50 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)
mcmonkey4eva commented 3 days ago

This is a bug in the current version of Transformers https://github.com/huggingface/transformers/issues/34415

You can workaround by installing the old version pip install transformers==4.45.0 until they release a fix