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

'NoneType' object has no attribute 'shape' ??
That resource is almost a year old by now and a lot has likely changed in the code since then. Some suggestions: Press R to refresh node definitions. Recreate that node using the right click context menu. Replace that node with a different one that does the same thing. Learn what you can from the workflow and remake it from scratch with nodes that do work together. Pick a different workflow to learn from and come back to this one another time when you know more. A no attribute error is generally a sign of a version mismatch, where something old and something new don't understand one another because something has a different name now or works in a different way. Or was removed. As long as you aren't in a production environment and are okay reinstalling everything if something else goes wrong or breaks, you can try updating everything to make sure everything is 'on the same page'. This is less likely to help older custom nodes that are no longer receiving updates, however. If you need to work with older stuff, you may need to install specific past versions to get everything to work together. I have no advice on how to do that, but I would say that if you do have a setup that works the way you want, I would make another separate install to test new things to avoid ruining it. More on reddit.com
🌐 r/comfyui
2
0
February 20, 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
florence2run
Custom Node Testing I have tried disabling custom nodes and the issue persists (see how to disable custom nodes if you need help) Your question ComfyUI Error Report Error Details Node ID: 95 Node T... More on github.com
🌐 github.com
1
January 4, 2026
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
🌐
GitHub
github.com › comfyanonymous › ComfyUI › issues › 6590
NoneType' object has no attribute 'shape' problem · Issue #6590 · comfyanonymous/ComfyUI
January 24, 2025 - 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 different models try set union control net t...
Author   nadainterior
🌐
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?

🌐
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 › 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 › 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 - '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, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui\ComfyUI_windows_portable\ComfyUI\execution.py", l
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, ...
Find elsewhere
🌐
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.
🌐
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
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 ...
🌐
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)
🌐
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)', ...
🌐
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
🌐
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...
🌐
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'
While attempting to train the model using the SFTTrainer, I encountered an error related to a NoneType object during the training loop. The error occurs specifically in the _merge_input_ids_with_image_features method in the modeling_llava.py file. ... Error Occurrence: The error occurs after calling trainer.train(), and it seems that during the training, the image_features passed into the _merge_input_ids_with_image_features function is None, causing the AttributeError when the code tries to access its shape.
🌐
Reddit
reddit.com › r/comfyui › issue with florence2
r/comfyui on Reddit: Issue with FLorence2
June 5, 2025 -

I need some serious help with florence2 as i have been trying to use it and first it was giving me the error about "list.remove(x): x not in list" and i did manage to fix it with the modification to the nodes.py.

Now though it is giving me a different error that i don't know anything about: "DaViT' object has no attribute '_initialize_weights"

Anyone have any tips on how to resolve this issue ? i really want to use this node and its driving me nuts xD