GitHub
github.com › chflame163 › ComfyUI_LayerStyle › issues › 575
LayerUtility: Florence2Image2Prompt 'NoneType' object has no attribute 'shape' · Issue #575 · chflame163/ComfyUI_LayerStyle
October 27, 2025 - LayerUtility: Florence2Image2Prompt 'NoneType' object has no attribute 'shape'#575 · Copy link · Dannyboy2000 · opened · on Oct 27, 2025 · Issue body actions · Having hard time with this things, any solution how to solve it? LayerUtility: Florence2Image2Prompt 'NoneType' object has no attribute 'shape' No one assigned ·
Author Dannyboy2000
Reddit
reddit.com › r/comfyui › 'nonetype' object has no attribute 'shape' ??
r/comfyui on Reddit: 'NoneType' object has no attribute 'shape' ??
February 20, 2025 -
Hello, I was trying this (https://civitai.com/models/382182/img2vid-fast-loop-animation-v10-utopia) and it works up until this error appears: AttributeError: 'NoneType' object has no attribute 'shape'
What could be done to get around this?
NoneType' object has no attribute 'shape' problem
Your question This message keep showing when using any controlent node no matter what i do i try all suggested solutions like reinstall control net reinstall comfy change python version trying diff... More on github.com
AttributeError: 'NoneType' object has no attribute 'shape' - Part 1 (2018) - fast.ai Course Forums
My data is organised as: train:- containing folder for each class valid :- containing folder for each class test:- contains all test images More on forums.fast.ai
how to fix error NoneType' object has no attribute 'shape'
Eff. Loader SDXL Models Cache: Ckpt: [1] CheckpointAsianReal_v10 Requested to load BaseModel Loading 1 new model 100%|██████████████████████████████████████████████████████████... More on github.com
Florence2 模型加载器 'NoneType' object has no attribute 'get'
ComfyUI Error Report Error Details Node ID: 12 Node Type: Florence2ModelLoader Exception Type: AttributeError Exception Message: 'NoneType' object has no attribute 'get' Stack Trace File "D:\ComfyU... More on github.com
GitHub
github.com › Comfy-Org › ComfyUI › issues › 11612
florence2run · Issue #11612 · Comfy-Org/ComfyUI
January 4, 2026 - 'NoneType' object has no attribute 'shape' 2026-01-04T10:34:27.063626 - Traceback (most recent call last): File "C:\Users\xyf20\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI\execution.py", line 516, in execute output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C
Author fengfeng6888
GitHub
github.com › comfyanonymous › ComfyUI › issues › 6590
NoneType' object has no attribute 'shape' problem · Issue #6590 · comfyanonymous/ComfyUI
January 24, 2025 - 'NoneType' object has no attribute 'shape' 2025-01-24T20:57:56.434706 - Traceback (most recent call last): File "D:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 327, 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 "D:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 202, in get_output_data return_value
Author nadainterior
GitHub
github.com › ltdrdata › ComfyUI-Impact-Pack › issues › 591
how to fix error NoneType' object has no attribute 'shape' · Issue #591 · ltdrdata/ComfyUI-Impact-Pack
May 7, 2024 - 0: 640x640 1 face, 17.0ms Speed: 5.0ms preprocess, 17.0ms inference, 73.0ms postprocess per image at shape (1, 3, 640, 640) Detailer: segment upscale for ((207.98477, 292.54047)) | crop region (623, 877) x 1.167757847226974 -> (727, 1024) Requested to load ControlNet Requested to load BaseModel Loading 2 new models 0%| | 0/20 [00:00<?, ?it/s] !!! Exception during processing!!! 'NoneType' object has no attribute 'shape' Traceback (most recent call last): File "D:\comfyui\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj,
Author mcvnpro
GitHub
github.com › kijai › ComfyUI-Florence2 › issues › 161
Florence2 模型加载器 'NoneType' object has no attribute 'get' · Issue #161 · kijai/ComfyUI-Florence2
June 5, 2025 - s"},"link":null},{"localized_name":"采样","name":"do_sample","shape":7,"type":"BOOLEAN","widget":{"name":"do_sample"},"link":null},{"localized_name":"选中输出遮罩","name":"output_mask_select","shape":7,"type":"STRING","widget":{"name":"output_mask_select"},"link":null},{"localized_name":"随机种","name":"seed","shape":7,"type":"INT","widget":{"name":"seed"},"link":null}],"outputs":[{"label":"图像","localized_name":"image","name":"image","type":"IMAGE","links":null},{"label":"遮罩","localized_name":"mask","name":"mask","type":"MASK","links":null},{"label":"caption","localized_name
Author ok1248
YouTube
youtube.com › watch
Fixing the NoneType Object Has No Attribute 'Shape' Error in OpenCV on Mac - YouTube
Summary: Learn how to fix the common `'NoneType' object has no attribute 'shape'` error in your OpenCV project on Mac. Understand the root causes and apply s...
Published October 14, 2024 Views 313
Raspberry Pi Forums
forums.raspberrypi.com › board index › programming › python
AttributeError: 'NoneType' object has no attribute 'shape' - Raspberry Pi Forums
(venv) cheeyong@raspberrypi:~ $ python3 /home/cheeyong/github1.py pygame 2.5.2 (SDL 2.28.3, Python 3.11.2) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "/home/cheeyong/github1.py", line 35, in <module> frame = imutils.resize(frame, width=900) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/cheeyong/venv/lib/python3.11/site-packages/imutils/convenience.py", line 69, in resize (h, w) = image.shape[:2] ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'shape' (venv) cheeyong@raspberrypi:~ $ I have totally no idea for this, but I can provide my code here, not sure it contain any error or not.
Hugging Face
discuss.huggingface.co › beginners
Error: AttributeError: 'NoneType' object has no attribute 'shape' when prompt tuning with Chatglm2 - Beginners - Hugging Face Forums
October 9, 2023 - I modified simple code of peft to train chatglm2-6b witn prompt-tuning. Below is my code: from transformers import AutoModelForCausalLM from peft import get_peft_config, get_peft_model, PromptTuningInit, PromptTuningConfig, TaskType, PeftType import torch from datasets import load_dataset import ...
Faceswap Forum
forum.faceswap.dev › forum home › support › training support
'NoneType' object has no attribute 'shape' - Faceswap Forum - The place to discuss Faceswap and Deepfakes
May 13, 2021 - All training images for each side must have the same dimensions. 05/14/2021 13:15:05 ERROR The batch that failed contains the following files: 05/14/2021 13:15:05 ERROR ['10_070801_0.png (1024px)', <class 'NoneType'>, '7_029351_0.png (1024px)', '12_011101_0.png (1024px)'].
OpenCV
forum.opencv.org › t › attributeerror-nonetype-object-has-no-attribute-shape › 4910
AttributeError: 'NoneType' object has no attribute 'shape' - imgcodecs - OpenCV
August 24, 2021 - What is this error?? Traceback (most recent call last): File "code.py", line 1717, in shape height, width = input.shape AttributeError: 'NoneType' object has no attribute 'shape' This is the code: input = cv2.imread('IMAGES/UAV.tif') #, cv2.IMREAD_UNCHANGED) height, width = input.shape print("HEIGHT:", height) print("WIDTH:", width)
PyTorch Forums
discuss.pytorch.org › t › attributeerror-nonetype-object-has-no-attribute-shape › 70838
AttributeError: 'NoneType' object has no attribute 'shape' - PyTorch Forums
February 24, 2020 - When i train my data which like cocodataset,an error occurred,can someone help me fix it ? The error information is : libpng error: Read Error Traceback (most recent call last): File “tools/train.py”, line 142, in main() File “tools/train.py”, line 138, in main meta=meta) File “/cache/user-job-dir/codes/mmdetection/mmdet/apis/train.py”, line 111, in train_detector meta=meta) File “/cache/user-job-dir/codes/mmdetection/mmdet/apis/train.py”, line 305, in _non_dist_train runner.run(data...
Reddit
reddit.com › r/comfyui › ksampler 'nonetype' object has no attribute 'shape'
r/comfyui on Reddit: KSampler 'NoneType' object has no attribute 'shape'
February 27, 2025 -
hello people, I would like to ask what could cause this problem. everything be working and when I load a controlnet union sdxl it just doesn't work after I try to apply it, I tried many workflows online and all have the same issue. Any one would know what a possible solution for this?
I checked this in Change 'c_adm' to 'y' in ControlNet.get_control by Kosinkadink · Pull Request #1836 · comfyanonymous/ComfyUI but the whole y thing was not found.
thank you <3
Top answer 1 of 2
3
If you came from Google, also check if you didn't disconnected any nodes, I accidentally disconnected the "model" node from the loader. Just check to see if everything is properly connected, from the loaders to the Ksampler
2 of 2
1
I can probably spot issue if you give a screenshot showing workflow setup
Top answer 1 of 4
1
Fix:
You are passing images=image_tensor to model.generate, but your model or generation config likely does not support the images argument—or your finetuned model doesn’t handle multimodal input as expected.
Direct script correction:
Try this: Remove images if the model doesn’t support multimoda…
2 of 4
0
You’re probably passing images=image_tensor into a model that doesn’t expect or properly handle that argument. Inside the generate() method, HuggingFace or custom model logic might be expecting the images argument to be processed by a prepare_inputs_for_generation() or forward() call — and if not co…
GitHub
github.com › Comfy-Org › ComfyUI › issues › 6845
SamplerCustomAdvanced 'NoneType' object has no attribute 'shape' · Issue #6845 · Comfy-Org/ComfyUI
February 17, 2025 - ... # ComfyUI Error Report ## Error Details - **Node ID:** 634 - **Node Type:** SamplerCustomAdvanced - **Exception Type:** AttributeError - **Exception Message:** 'NoneType' object has no attribute 'shape' ## Stack Trace File "/teamspace/studios/this_studio/ComfyUI/execution.py", line 327, 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 "/teamspace/studios/this_studio/ComfyUI/execution.py", line 202, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.F
Author nihu6969