🌐
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?

Discussions

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
🌐 github.com
6
January 24, 2025
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
🌐 forums.fast.ai
2
December 22, 2017
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
🌐 github.com
6
May 7, 2024
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.com
0
June 5, 2025
🌐
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
🌐
Fast.ai
forums.fast.ai › part 1 (2018)
AttributeError: 'NoneType' object has no attribute 'shape' - Part 1 (2018) - fast.ai Course Forums
December 22, 2017 - My data is organised as: train:- containing folder for each class valid :- containing folder for each class test:- contains all test images [error]
🌐
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
🌐
Quora
quora.com › How-do-you-resolve-the-read-file-error-nonetype-object-has-no-attribute-shape-python-file-development
How to resolve the read file error ''nonetype' object has no attribute 'shape'' (python, file, development) - Quora
Answer: In general, that error means that you have a variable that refers to None where you expect it to refer to an object that has an attribute “shape”. Look at the code that created that object; for instance, judging from your question, ...
🌐
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
Find elsewhere
🌐
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

🌐
Hugging Face
huggingface.co › llava-hf › llava-1.5-7b-hf › discussions › 48
llava-hf/llava-1.5-7b-hf · Issue with Trainer Training - AttributeError: 'NoneType' object has no attribute 'shape'
Potential Causes: image_features might not be properly processed or passed to the model. The image preprocessing function might not return the correct features, or the dataset might not have the expected structure.
🌐
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