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.92k stars 5.9k forks source link

New error occuring after latest update : Given groups=1, weight of size [1536, 16, 1, 1], expected input[1, 4, 256, 256] to have 16 channels, but got 4 channels instead #2838

Open patientx opened 8 months ago

patientx commented 8 months ago

It is on the default cascade workflow , in the end of first ksampler.

johnwoltman commented 8 months ago

Same issue here.

ltdrdata commented 8 months ago

It appears that the latent for stage_b is connected to KSampler, which receives the stage_c model. Please verify if the model has been correctly applied.

stage_c model requires 16 channel latent. stage_b model requires 4 channel latent.

johnwoltman commented 8 months ago

That fixed it. I'm not sure if the error is in the example png or if i messed up my model configs but it's working now.

Pancat007 commented 2 months ago

try to change the vae, like change to ae.sft

davidoffsky commented 1 month ago

Ref It appears that the latent for stage_b is connected to KSampler, which receives the stage_c model. Please verify if the model has been correctly applied. stage_c model requires 16 channel latent. stage_b model requires 4 channel latent.

How do I check that the model has been applied correctly?

ltdrdata commented 4 weeks ago

Ref It appears that the latent for stage_b is connected to KSampler, which receives the stage_c model. Please verify if the model has been correctly applied. stage_c model requires 16 channel latent. stage_b model requires 4 channel latent.

How do I check that the model has been applied correctly?

What is your workflow?

davidoffsky commented 4 weeks ago

ComfyUI Error Report

Error Details

## System Information
- **ComfyUI Version:** v0.2.2-93-g8dfa0cc
- **Arguments:** main.py
- **OS:** posix
- **Python Version:** 3.11.5 (main, Sep 11 2023, 08:31:25) [Clang 14.0.6 ]
- **Embedded Python:** false
- **PyTorch Version:** 2.2.1
## Devices

- **Name:** mps
  - **Type:** mps
  - **VRAM Total:** 137438953472
  - **VRAM Free:** 65751007232
  - **Torch VRAM Total:** 137438953472
  - **Torch VRAM Free:** 65751007232

## Logs

2024-10-10 09:06:38,117 - root - INFO - Total VRAM 131072 MB, total RAM 131072 MB 2024-10-10 09:06:38,117 - root - INFO - pytorch version: 2.2.1 2024-10-10 09:06:38,117 - root - INFO - Set vram state to: SHARED 2024-10-10 09:06:38,117 - root - INFO - Device: mps 2024-10-10 09:06:38,670 - root - INFO - Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --use-split-cross-attention 2024-10-10 09:06:39,053 - root - INFO - [Prompt Server] web root: /Users/macstudiodavidoff/ComfyUI/web 2024-10-10 09:06:40,881 - dinov2 - WARNING - xFormers not available 2024-10-10 09:06:40,882 - dinov2 - WARNING - xFormers not available 2024-10-10 09:06:53,308 - root - INFO - -------------- 2024-10-10 09:06:53,308 - root - INFO -  ### Mixlab Nodes: Loaded 2024-10-10 09:06:53,308 - root - INFO - ChatGPT.available True 2024-10-10 09:06:53,309 - root - INFO - editmask.available True 2024-10-10 09:06:53,746 - root - INFO - ClipInterrogator.available True 2024-10-10 09:06:53,835 - root - INFO - PromptGenerate.available True 2024-10-10 09:06:53,835 - root - INFO - ChinesePrompt.available True 2024-10-10 09:06:53,835 - root - INFO - RembgNode.available True 2024-10-10 09:06:54,244 - root - INFO - TripoSR.available 2024-10-10 09:06:54,245 - root - INFO - MiniCPMNode.available 2024-10-10 09:06:54,442 - root - INFO - Scenedetect.available 2024-10-10 09:06:54,455 - root - INFO - FishSpeech.available False 2024-10-10 09:06:54,763 - root - INFO - SenseVoice.available 2024-10-10 09:06:54,764 - root - INFO -  --------------  2024-10-10 09:06:55,566 - root - WARNING - Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/nodes.py", line 1998, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes/init.py", line 1, in from inference_core_nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes/src/inference_core_nodes/init.py", line 57, in NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = _get_node_mappings() ^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes/src/inference_core_nodes/init.py", line 36, in _get_node_mappings submodule = importlib.import_module(f"{name}.{submodule_info.name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/miniconda3/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes/src/inference_core_nodes/layer_diffuse/init.py", line 1, in from .layered_diffusion import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes/src/inference_core_nodes/layer_diffuse/layered_diffusion.py", line 23, in from .lib_layerdiffusion.models import TransparentVAEDecoder File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes/src/inference_core_nodes/layer_diffuse/lib_layerdiffusion/models.py", line 10, in from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2D, get_down_block, get_up_block ModuleNotFoundError: No module named 'diffusers.models.unets'

2024-10-10 09:06:55,566 - root - WARNING - Cannot import /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes module for custom nodes: No module named 'diffusers.models.unets' 2024-10-10 09:06:55,615 - root - INFO - Total VRAM 131072 MB, total RAM 131072 MB 2024-10-10 09:06:55,615 - root - INFO - pytorch version: 2.2.1 2024-10-10 09:06:55,615 - root - INFO - Set vram state to: SHARED 2024-10-10 09:06:55,615 - root - INFO - Device: mps 2024-10-10 09:06:58,798 - root - WARNING - Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/nodes.py", line 1998, in load_custom_node module_spec.loader.exec_module(module) File "", line 936, in exec_module File "", line 1073, in get_code File "", line 1130, in get_data FileNotFoundError: [Errno 2] No such file or directory: '/Users/macstudiodavidoff/ComfyUI/custom_nodes/impact_subpack/init.py'

2024-10-10 09:06:58,798 - root - WARNING - Cannot import /Users/macstudiodavidoff/ComfyUI/custom_nodes/impact_subpack module for custom nodes: [Errno 2] No such file or directory: '/Users/macstudiodavidoff/ComfyUI/custom_nodes/impact_subpack/init.py' 2024-10-10 09:06:58,803 - root - WARNING - Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 710, in _get_module else:

File "/Users/macstudiodavidoff/miniconda3/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/loaders/controlnet.py", line 17, in from .single_file_utils import ( File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/loaders/single_file_utils.py", line 27, in from ..schedulers import ( ImportError: cannot import name 'EDMDPMSolverMultistepScheduler' from 'diffusers.schedulers' (/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/schedulers/init.py)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 710, in _get_module else:

File "/Users/macstudiodavidoff/miniconda3/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/models/controlnet.py", line 22, in from ..loaders import FromOriginalControlNetMixin File "", line 1229, in _handle_fromlist File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 700, in getattr return result ^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 712, in _get_module RuntimeError: Failed to import diffusers.loaders.controlnet because of the following error (look up to see its traceback): cannot import name 'EDMDPMSolverMultistepScheduler' from 'diffusers.schedulers' (/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/schedulers/init.py)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/nodes.py", line 1998, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-InstantID/init.py", line 1, in from .InstantIDNode import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-InstantID/InstantIDNode.py", line 3, in from diffusers.models import ControlNetModel File "", line 1229, in _handle_fromlist File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 700, in getattr return result ^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/utils/import_utils.py", line 712, in _get_module RuntimeError: Failed to import diffusers.models.controlnet because of the following error (look up to see its traceback): Failed to import diffusers.loaders.controlnet because of the following error (look up to see its traceback): cannot import name 'EDMDPMSolverMultistepScheduler' from 'diffusers.schedulers' (/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/schedulers/init.py)

2024-10-10 09:06:58,803 - root - WARNING - Cannot import /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-InstantID module for custom nodes: Failed to import diffusers.models.controlnet because of the following error (look up to see its traceback): Failed to import diffusers.loaders.controlnet because of the following error (look up to see its traceback): cannot import name 'EDMDPMSolverMultistepScheduler' from 'diffusers.schedulers' (/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/diffusers/schedulers/init.py) 2024-10-10 09:06:58,847 - root - INFO - Import times for custom nodes: 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/websocket_image_save.py 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/SDXLAspectRatio.py 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-saveimage-plus 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/cg-use-everywhere 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/sdxl_prompt_styler 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/sdxl-recommended-res-calc 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds (IMPORT FAILED): /Users/macstudiodavidoff/ComfyUI/custom_nodes/impact_subpack 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-SuperBeasts 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Eagle-PNGInfo 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-post-processing-nodes 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Logic 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/masquerade-nodes-comfyui 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-AutomaticCFG 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI_InstantID-main 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI_InstantID 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Openpose-Editor-Plus 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/mikey_nodes 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/cg-image-picker 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-animatediff 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI_essentials 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-various 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyMath 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds (IMPORT FAILED): /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-InstantID 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-IPAnimate 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-KJNodes 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-portrait-master 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-dream-project 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui_facetools 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-GGUF 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/efficiency-nodes-comfyui 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-DepthAnythingV2 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/rgthree-comfy 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-dynamicprompts 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI_tinyterraNodes 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui_controlnet_aux 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-art-venture 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Impact-Pack 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds (IMPORT FAILED): /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes 2024-10-10 09:06:58,847 - root - INFO - 0.0 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-GlifNodes 2024-10-10 09:06:58,847 - root - INFO - 0.1 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI_LayerStyle 2024-10-10 09:06:58,847 - root - INFO - 0.1 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Manager 2024-10-10 09:06:58,847 - root - INFO - 0.1 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/PuLID_ComfyUI 2024-10-10 09:06:58,847 - root - INFO - 0.1 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Gemini 2024-10-10 09:06:58,847 - root - INFO - 0.1 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfy_controlnet_preprocessors 2024-10-10 09:06:58,847 - root - INFO - 0.2 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite 2024-10-10 09:06:58,847 - root - INFO - 0.2 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfy_PoP 2024-10-10 09:06:58,848 - root - INFO - 0.3 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-propost 2024-10-10 09:06:58,848 - root - INFO - 0.3 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/DZ-FaceDetailer 2024-10-10 09:06:58,848 - root - INFO - 0.4 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-reactor-node 2024-10-10 09:06:58,848 - root - INFO - 0.6 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI_FaceAnalysis 2024-10-10 09:06:58,848 - root - INFO - 0.8 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/was-node-suite-comfyui 2024-10-10 09:06:58,848 - root - INFO - 2.7 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Easy-Use 2024-10-10 09:06:58,848 - root - INFO - 13.2 seconds: /Users/macstudiodavidoff/ComfyUI/custom_nodes/comfyui-mixlab-nodes 2024-10-10 09:06:58,848 - root - INFO - 2024-10-10 09:06:58,853 - root - INFO - Starting server

2024-10-10 09:06:58,853 - root - INFO - To see the GUI go to: http://127.0.0.1:8188 2024-10-10 09:07:03,051 - root - ERROR - [ERROR] An error occurred while retrieving information for the 'Florence2ModelLoader' node. 2024-10-10 09:07:03,053 - root - ERROR - Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/server.py", line 564, in get_object_info out[x] = node_info(x) ^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/server.py", line 531, in node_info info['input'] = obj_class.INPUT_TYPES() ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in INPUT_TYPES "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/miniconda3/lib/python3.11/pathlib.py", line 931, in iterdir for name in os.listdir(self): ^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/Users/macstudiodavidoff/ComfyUI/models/LLM'

2024-10-10 09:07:03,298 - root - ERROR - [ERROR] An error occurred while retrieving information for the 'Florence2ModelLoader' node. 2024-10-10 09:07:03,298 - root - ERROR - Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/server.py", line 564, in get_object_info out[x] = node_info(x) ^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/server.py", line 531, in node_info info['input'] = obj_class.INPUT_TYPES() ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in INPUT_TYPES "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/miniconda3/lib/python3.11/pathlib.py", line 931, in iterdir for name in os.listdir(self): ^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/Users/macstudiodavidoff/ComfyUI/models/LLM'

2024-10-10 09:08:15,938 - root - ERROR - [ERROR] An error occurred while retrieving information for the 'Florence2ModelLoader' node. 2024-10-10 09:08:15,939 - root - ERROR - Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/server.py", line 564, in get_object_info out[x] = node_info(x) ^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/server.py", line 531, in node_info info['input'] = obj_class.INPUT_TYPES() ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in INPUT_TYPES "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/miniconda3/lib/python3.11/pathlib.py", line 931, in iterdir for name in os.listdir(self): ^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/Users/macstudiodavidoff/ComfyUI/models/LLM'

2024-10-10 09:08:17,899 - root - ERROR - [ERROR] An error occurred while retrieving information for the 'Florence2ModelLoader' node. 2024-10-10 09:08:17,899 - root - ERROR - Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/server.py", line 564, in get_object_info out[x] = node_info(x) ^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/server.py", line 531, in node_info info['input'] = obj_class.INPUT_TYPES() ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in INPUT_TYPES "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/miniconda3/lib/python3.11/pathlib.py", line 931, in iterdir for name in os.listdir(self): ^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/Users/macstudiodavidoff/ComfyUI/models/LLM'

2024-10-10 09:08:17,990 - root - ERROR - [ERROR] An error occurred while retrieving information for the 'Florence2ModelLoader' node. 2024-10-10 09:08:17,990 - root - ERROR - Traceback (most recent call last): File "/Users/macstudiodavidoff/ComfyUI/server.py", line 564, in get_object_info out[x] = node_info(x) ^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/server.py", line 531, in node_info info['input'] = obj_class.INPUT_TYPES() ^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in INPUT_TYPES "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/custom_nodes/ComfyUI-Florence2/nodes.py", line 148, in "model": ([item.name for item in Path(folder_paths.models_dir, "LLM").iterdir() if item.is_dir()], {"tooltip": "models are expected to be in Comfyui/models/LLM folder"}), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/miniconda3/lib/python3.11/pathlib.py", line 931, in iterdir for name in os.listdir(self): ^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/Users/macstudiodavidoff/ComfyUI/models/LLM'

2024-10-10 09:09:02,095 - root - INFO - got prompt 2024-10-10 09:09:02,135 - root - INFO - Using split attention in VAE 2024-10-10 09:09:02,136 - root - INFO - Using split attention in VAE 2024-10-10 09:09:02,775 - root - INFO - model weight dtype torch.bfloat16, manual cast: None 2024-10-10 09:09:02,775 - root - INFO - modeltype FLUX 2024-10-10 09:09:29,973 - root - INFO - Using split attention in VAE 2024-10-10 09:09:29,973 - root - INFO - Using split attention in VAE 2024-10-10 09:09:30,353 - root - INFO - Requested to load FluxClipModel 2024-10-10 09:09:30,353 - root - INFO - Loading 1 new model 2024-10-10 09:09:30,357 - root - INFO - loaded completely 0.0 4777.53759765625 True 2024-10-10 09:09:39,879 - root - INFO - Requested to load FluxClipModel_ 2024-10-10 09:09:39,881 - root - INFO - Loading 1 new model 2024-10-10 09:09:44,943 - root - ERROR - !!! Exception during processing !!! 'NoneType' object has no attribute 'float' 2024-10-10 09:09:44,947 - root - ERROR - Traceback (most recent call last): File "/Users/macstudiodavidoff/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 "/Users/macstudiodavidoff/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 "/Users/macstudiodavidoff/ComfyUI/execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "/Users/macstudiodavidoff/ComfyUI/execution.py", line 158, in process_inputs results.append(getattr(obj, func)(inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/nodes.py", line 65, in encode output = clip.encode_from_tokens(tokens, return_pooled=True, return_dict=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd.py", line 125, in encode_from_tokens o = self.cond_stage_model.encode_token_weights(tokens) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/text_encoders/flux.py", line 59, in encode_token_weights t5_out, t5_pooled = self.t5xxl.encode_token_weights(token_weight_pairs_t5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 41, in encode_token_weights o = self.encode(to_encode) ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 229, in encode return self(tokens) ^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 207, in forward z = outputs[1].float() ^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'float'

2024-10-10 09:09:44,948 - root - INFO - Prompt executed in 42.85 seconds 2024-10-10 09:12:24,779 - root - INFO - got prompt 2024-10-10 09:12:31,895 - root - ERROR - !!! Exception during processing !!! 'NoneType' object has no attribute 'float' 2024-10-10 09:12:31,895 - root - ERROR - Traceback (most recent call last): File "/Users/macstudiodavidoff/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 "/Users/macstudiodavidoff/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 "/Users/macstudiodavidoff/ComfyUI/execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "/Users/macstudiodavidoff/ComfyUI/execution.py", line 158, in process_inputs results.append(getattr(obj, func)(inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/nodes.py", line 65, in encode output = clip.encode_from_tokens(tokens, return_pooled=True, return_dict=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd.py", line 125, in encode_from_tokens o = self.cond_stage_model.encode_token_weights(tokens) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/text_encoders/flux.py", line 59, in encode_token_weights t5_out, t5_pooled = self.t5xxl.encode_token_weights(token_weight_pairs_t5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 41, in encode_token_weights o = self.encode(to_encode) ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 229, in encode return self(tokens) ^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 207, in forward z = outputs[1].float() ^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'float'

2024-10-10 09:12:31,896 - root - INFO - Prompt executed in 7.11 seconds 2024-10-10 09:13:43,752 - root - INFO - got prompt 2024-10-10 09:13:43,810 - root - INFO - Using split attention in VAE 2024-10-10 09:13:43,810 - root - INFO - Using split attention in VAE 2024-10-10 09:13:50,951 - root - ERROR - !!! Exception during processing !!! 'NoneType' object has no attribute 'float' 2024-10-10 09:13:50,951 - root - ERROR - Traceback (most recent call last): File "/Users/macstudiodavidoff/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 "/Users/macstudiodavidoff/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 "/Users/macstudiodavidoff/ComfyUI/execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "/Users/macstudiodavidoff/ComfyUI/execution.py", line 158, in process_inputs results.append(getattr(obj, func)(inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/nodes.py", line 65, in encode output = clip.encode_from_tokens(tokens, return_pooled=True, return_dict=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd.py", line 125, in encode_from_tokens o = self.cond_stage_model.encode_token_weights(tokens) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/text_encoders/flux.py", line 59, in encode_token_weights t5_out, t5_pooled = self.t5xxl.encode_token_weights(token_weight_pairs_t5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 41, in encode_token_weights o = self.encode(to_encode) ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 229, in encode return self(tokens) ^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 207, in forward z = outputs[1].float() ^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'float'

2024-10-10 09:13:50,952 - root - INFO - Prompt executed in 7.19 seconds 2024-10-10 09:14:29,788 - root - INFO - got prompt 2024-10-10 09:14:29,791 - root - ERROR - Failed to validate prompt for output 9: 2024-10-10 09:14:29,791 - root - ERROR - * CLIPSetLastLayer 2: 2024-10-10 09:14:29,791 - root - ERROR - - Value 2 bigger than max of -1: stop_at_clip_layer 2024-10-10 09:14:29,791 - root - ERROR - Output will be ignored 2024-10-10 09:14:29,792 - root - WARNING - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extrainfo': {}} 2024-10-10 09:14:39,482 - root - INFO - got prompt 2024-10-10 09:14:39,494 - root - INFO - Requested to load FluxClipModel 2024-10-10 09:14:39,494 - root - INFO - Loading 1 new model 2024-10-10 09:14:46,539 - root - ERROR - !!! Exception during processing !!! 'NoneType' object has no attribute 'float' 2024-10-10 09:14:46,539 - root - ERROR - Traceback (most recent call last): File "/Users/macstudiodavidoff/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 "/Users/macstudiodavidoff/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 "/Users/macstudiodavidoff/ComfyUI/execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "/Users/macstudiodavidoff/ComfyUI/execution.py", line 158, in process_inputs results.append(getattr(obj, func)(inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/nodes.py", line 65, in encode output = clip.encode_from_tokens(tokens, return_pooled=True, return_dict=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd.py", line 125, in encode_from_tokens o = self.cond_stage_model.encode_token_weights(tokens) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/text_encoders/flux.py", line 59, in encode_token_weights t5_out, t5_pooled = self.t5xxl.encode_token_weights(token_weight_pairs_t5) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 41, in encode_token_weights o = self.encode(to_encode) ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 229, in encode return self(tokens) ^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, *kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl return forward_call(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macstudiodavidoff/ComfyUI/comfy/sd1_clip.py", line 207, in forward z = outputs[1].float() ^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'float'

2024-10-10 09:14:46,540 - root - INFO - Prompt executed in 7.05 seconds

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

{"last_node_id":9,"last_link_id":12,"nodes":[{"id":3,"type":"CLIPTextEncode","pos":{"0":930,"1":130},"size":{"0":400,"1":200},"flags":{},"order":4,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":2}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[5],"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["(,((score_9, score_8_up)):1.5),highly detailed,photo,hyper-realistic,photorealism,realistic lighting,((in a ((bright)) hazy castle column lined terrace sunset backdrop:.13)),(front facing),(head to thighs),(side view:0.73),(full body shot),1girl,beautiful,sexy,21 year old, russian,(long black hair),beautiful and aesthetic,beautiful face,cute face,beautiful blue eyes,contoured eyebrows,((big bursting round breasts:1.42)),(deep cleavage),((long open revealing ((black:1.5)) lace robe)),erotic model,one hand behind head, full lips, natural colored lips, glossy lips, seductive,(eyeliner),wide hips, thick thighs,thick body, arched back,(showing lots of skin), sexy clothes,,(bokeh),realistic skin texture,realistic lighting,Award-winning photography,((standing near steps dreamy sunset backlighting))"]},{"id":5,"type":"KSampler","pos":{"0":1430,"1":130},"size":{"0":315,"1":262},"flags":{},"order":6,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":12},{"name":"positive","type":"CONDITIONING","link":5},{"name":"negative","type":"CONDITIONING","link":6},{"name":"latent_image","type":"LATENT","link":7}],"outputs":[{"name":"LATENT","type":"LATENT","links":[9],"shape":3}],"properties":{"Node name for S&R":"KSampler"},"widgets_values":[320907358290580,"randomize",35,3.5,"euler","normal",1]},{"id":6,"type":"EmptyLatentImage","pos":{"0":100,"1":358},"size":{"0":315,"1":106},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"LATENT","type":"LATENT","links":[7],"shape":3}],"properties":{"Node name for S&R":"EmptyLatentImage"},"widgets_values":[832,1216,1]},{"id":7,"type":"VAEDecode","pos":{"0":1845,"1":130},"size":{"0":210,"1":46},"flags":{},"order":7,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":9},{"name":"vae","type":"VAE","link":10}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[8],"shape":3}],"properties":{"Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":9,"type":"SaveImage","pos":{"0":2155,"1":130},"size":{"0":315,"1":58},"flags":{},"order":8,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":8}],"outputs":[],"properties":{"Node name for S&R":"SaveImage"},"widgets_values":["ComfyUI"]},{"id":1,"type":"CheckpointLoaderSimple","pos":{"0":100,"1":130},"size":{"0":315,"1":98},"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[12],"shape":3},{"name":"CLIP","type":"CLIP","links":[1],"shape":3},{"name":"VAE","type":"VAE","links":null,"shape":3}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["flux_dev_pruned_model_fp8.safetensors"]},{"id":4,"type":"CLIPTextEncode","pos":{"0":930,"1":460},"size":{"0":400,"1":200},"flags":{},"order":5,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":3}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[6],"shape":3}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["score_6,score_5,score_4, (minor), bad hands, ugly face, additional fingers, watermark, ((simple background)), bad eyes, ugly eyes,"]},{"id":8,"type":"VAELoader","pos":{"0":100,"1":594},"size":{"0":315,"1":58},"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"VAE","type":"VAE","links":[10],"shape":3}],"properties":{"Node name for S&R":"VAELoader"},"widgets_values":["sdxl_vae_madebyollin.safetensors"]},{"id":2,"type":"CLIPSetLastLayer","pos":{"0":515,"1":130},"size":{"0":315,"1":58},"flags":{},"order":3,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":1}],"outputs":[{"name":"CLIP","type":"CLIP","links":[2,3],"shape":3}],"properties":{"Node name for S&R":"CLIPSetLastLayer"},"widgets_values":[-1]}],"links":[[1,1,1,2,0,"CLIP"],[2,2,0,3,0,"CLIP"],[3,2,0,4,0,"CLIP"],[5,3,0,5,1,"CONDITIONING"],[6,4,0,5,2,"CONDITIONING"],[7,6,0,5,3,"LATENT"],[8,7,0,9,0,"IMAGE"],[9,5,0,7,0,"LATENT"],[10,8,0,7,1,"VAE"],[12,1,0,5,0,"MODEL"]],"groups":[],"config":{},"extra":{"ds":{"scale":1.283902517749503,"offset":[-109.31501745120934,13.624318436798319]}},"version":0.4}



## Additional Context
(Please add any additional context or steps to reproduce the error here)
ltdrdata commented 4 weeks ago

@davidoffsky You are using SDXL vae for FLUX.

davidoffsky commented 3 weeks ago

Ok. which one should I use, please

ltdrdata commented 3 weeks ago

Ok. which one should I use, please

You must use VAE for FLUX. It's ae.safetensor. It can also be downloaded from the Model Manager in ComfyUI-Manager.

davidoffsky commented 3 weeks ago

yes I have, thank you