nourepide / comfyui-allor Goto Github PK
View Code? Open in Web Editor NEWComfyUI plugin for image processing and work with alpha chanel.
License: MIT License
ComfyUI plugin for image processing and work with alpha chanel.
License: MIT License
When I try using BatchCLIPSeg I get error:
Error occurred when executing BatchCLIPSeg:
Input and output must have the same number of spatial dimensions, but got input with spatial dimensions of [1, 352, 352] and output size of (832, 1216). Please provide input tensor in (N, C, d1, d2, ...,dK) format and output size in (o1, o2, ...,oK) format.
Any idea how to fix?
i believe it is not nessery to check update everytime, it take much more time
In Windows 11 I am setting up my workflow as you described. I have downloaded and added the two named fonts to my system and also placed them in the comfy_extras/fonts folder.
I have changed the settings in the config.json file to the following:
"fonts": {
"folder_path": "comfy_extras/fonts",
"system_fonts": true,
"user_fonts": false
}
Yet when I load the workflow the ImageTextOutlined nodes are red and when I click on the font dropdown list all I can select are ubuntu fonts like Ubuntu-Bold.ttf.
I don't have these fonts installed on Windows.
Can you tell me why the nodes are not finding the system fonts or the ones copied to comfy_extraas/fonts?
Thank you!
getting this error when using AlphaChenlAddByMask -
Error occurred when executing AlphaChanelAddByMask:
too many values to unpack (expected 2)
File "C:\AI\Comfyui\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\AI\Comfyui\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\AI\Comfyui\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\AI\Comfyui\ComfyUI\custom_nodes\ComfyUI-Text_Image-Composite\Zho_AlphaChanel.py", line 23, in node
mask_height, mask_width = mask.shape
^^^^^^^^^^^^^^^^^^^^^^^
README.MD instruction section has a typo that affects installation:
pip install -r requirments.txt <----
pip install -r requirments.txt
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirments.txt'
corrected name should read "requirements.txt"
Hi,
I'm running a docker image on a comfyui serverless worker with Allor installed. I've set update_frequency=never in config.json. The problem is, during at runtime this node takes too long to import (>30s), which causes the server to timeout. The problem only occurs during cold starts of the worker.
I don't have this issue on my local comfyui portable installation (import time=2.5s).
Do you have any clues on what Allor is trying to do at startup that might take so much time? @Nourepide
I have tried to install several time through the manager. The files are in the custom nodes section.
Every timeI load a workflow with your nodes it still has red nodes. If i go to install missing it is installed already but will not load.
I know there are a ton of problems with dependency hell for Python... here is the situation:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fvcore 0.1.5.post20221221 requires iopath>=0.1.7, which is not installed.
botocore 1.31.65 requires urllib3<2.1,>=1.25.4; python_version >= "3.10", but you have urllib3 2.2.0 which is incompatible.
mediapipe 0.10.8 requires protobuf<4,>=3.11, but you have protobuf 4.25.2 which is incompatible.
sigopt 8.8.2 requires urllib3<2.0.0,>=1.26.5, but you have urllib3 2.2.0 which is incompatible.
tensorboard 2.10.1 requires protobuf<3.20,>=3.9.2, but you have protobuf 4.25.2 which is incompatible.
tensorboardx 2.6 requires protobuf<4,>=3.8.0, but you have protobuf 4.25.2 which is incompatible.
tensorflow 2.10.1 requires protobuf<3.20,>=3.9.2, but you have protobuf 4.25.2 which is incompatible.
tf2onnx 1.14.0 requires flatbuffers<3.0,>=1.12, but you have flatbuffers 23.5.26 which is incompatible.
torchaudio 2.1.2+cu121 requires torch==2.1.2+cu121, but you have torch 2.2.0 which is incompatible.
xformers 0.0.23.post1 requires torch==2.1.2, but you have torch 2.2.0 which is incompatible.
I know flatbuffers
is very painful, onnxruntime seems to have the same thing.
description for input fields for width and height are switched.
add_width is actually for height and vice versa.
I am getting the following error when installing your repo. Despite the error I can access the nodes but get another error when I try to feed more than one image into the AlphaChannelAddByMask node.
First Error @ installation:
#######################################################################
[ComfyUI-Manager] Starting dependency installation/(de)activation for the extension
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: rembg in d:\sd\comfyui\python_embeded\lib\site-packages (2.0.51)
Requirement already satisfied: numpy in d:\sd\comfyui\python_embeded\lib\site-packages (from rembg) (1.26.1)
Requirement already satisfied: onnxruntime in d:\sd\comfyui\python_embeded\lib\site-packages (from rembg) (1.16.1)
Requirement already satisfied: opencv-python-headless in d:\sd\comfyui\python_embeded\lib\site-packages (from rembg) (4.7.0.72)
Requirement already satisfied: pillow in d:\sd\comfyui\python_embeded\lib\site-packages (from rembg) (10.1.0)
Requirement already satisfied: pooch in d:\sd\comfyui\python_embeded\lib\site-packages (from rembg) (1.7.0)
Requirement already satisfied: pymatting in d:\sd\comfyui\python_embeded\lib\site-packages (from rembg) (1.1.10)
Requirement already satisfied: scikit-image in d:\sd\comfyui\python_embeded\lib\site-packages (from rembg) (0.20.0)
Requirement already satisfied: scipy in d:\sd\comfyui\python_embeded\lib\site-packages (from rembg) (1.11.3)
Requirement already satisfied: tqdm in d:\sd\comfyui\python_embeded\lib\site-packages (from rembg) (4.66.1)
Requirement already satisfied: coloredlogs in d:\sd\comfyui\python_embeded\lib\site-packages (from onnxruntime->rembg) (15.0.1)
Requirement already satisfied: flatbuffers in d:\sd\comfyui\python_embeded\lib\site-packages (from onnxruntime->rembg) (23.5.26)
Requirement already satisfied: packaging in d:\sd\comfyui\python_embeded\lib\site-packages (from onnxruntime->rembg) (23.2)
Requirement already satisfied: protobuf in d:\sd\comfyui\python_embeded\lib\site-packages (from onnxruntime->rembg) (3.20.3)
Requirement already satisfied: sympy in d:\sd\comfyui\python_embeded\lib\site-packages (from onnxruntime->rembg) (1.12)
Requirement already satisfied: platformdirs>=2.5.0 in d:\sd\comfyui\python_embeded\lib\site-packages (from pooch->rembg) (3.11.0)
Requirement already satisfied: requests>=2.19.0 in d:\sd\comfyui\python_embeded\lib\site-packages (from pooch->rembg) (2.31.0)
Requirement already satisfied: numba!=0.49.0 in d:\sd\comfyui\python_embeded\lib\site-packages (from pymatting->rembg) (0.58.1)
Requirement already satisfied: networkx>=2.8 in d:\sd\comfyui\python_embeded\lib\site-packages (from scikit-image->rembg) (3.1)
Requirement already satisfied: imageio>=2.4.1 in d:\sd\comfyui\python_embeded\lib\site-packages (from scikit-image->rembg) (2.31.5)
Requirement already satisfied: tifffile>=2019.7.26 in d:\sd\comfyui\python_embeded\lib\site-packages (from scikit-image->rembg) (2023.9.26)
Requirement already satisfied: PyWavelets>=1.1.1 in d:\sd\comfyui\python_embeded\lib\site-packages (from scikit-image->rembg) (1.4.1)
Requirement already satisfied: lazy_loader>=0.1 in d:\sd\comfyui\python_embeded\lib\site-packages (from scikit-image->rembg) (0.3)
Requirement already satisfied: colorama in d:\sd\comfyui\python_embeded\lib\site-packages (from tqdm->rembg) (0.4.6)
Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in d:\sd\comfyui\python_embeded\lib\site-packages (from numba!=0.49.0->pymatting->rembg) (0.41.1)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\sd\comfyui\python_embeded\lib\site-packages (from requests>=2.19.0->pooch->rembg) (3.3.0)
Requirement already satisfied: idna<4,>=2.5 in d:\sd\comfyui\python_embeded\lib\site-packages (from requests>=2.19.0->pooch->rembg) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\sd\comfyui\python_embeded\lib\site-packages (from requests>=2.19.0->pooch->rembg) (2.0.6)
Requirement already satisfied: certifi>=2017.4.17 in d:\sd\comfyui\python_embeded\lib\site-packages (from requests>=2.19.0->pooch->rembg) (2023.7.22)
Requirement already satisfied: humanfriendly>=9.1 in d:\sd\comfyui\python_embeded\lib\site-packages (from coloredlogs->onnxruntime->rembg) (10.0)
Requirement already satisfied: mpmath>=0.19 in d:\sd\comfyui\python_embeded\lib\site-packages (from sympy->onnxruntime->rembg) (1.3.0)
Requirement already satisfied: pyreadline3 in d:\sd\comfyui\python_embeded\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime->rembg) (3.4.1)
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: onnx in d:\sd\comfyui\python_embeded\lib\site-packages (1.14.0)
Requirement already satisfied: numpy in d:\sd\comfyui\python_embeded\lib\site-packages (from onnx) (1.26.1)
Requirement already satisfied: protobuf>=3.20.2 in d:\sd\comfyui\python_embeded\lib\site-packages (from onnx) (3.20.3)
Requirement already satisfied: typing-extensions>=3.6.2.1 in d:\sd\comfyui\python_embeded\lib\site-packages (from onnx) (4.8.0)
[!] ERROR: Invalid requirement: '# If you want you can install onnxruntime with GPU support'
install/(de)activation script failed: D:\SD\comfyui\ComfyUI\custom_nodes\ComfyUI-Allor
[!] ERROR: Invalid requirement: '# onnxruntime[gpu]'
install/(de)activation script failed: D:\SD\comfyui\ComfyUI\custom_nodes\ComfyUI-Allor
[!] ERROR: Invalid requirement: '# For Nvidia (only for GPU onnxruntime)'
install/(de)activation script failed: D:\SD\comfyui\ComfyUI\custom_nodes\ComfyUI-Allor
[!] ERROR: Invalid requirement: '# tensorrt'
install/(de)activation script failed: D:\SD\comfyui\ComfyUI\custom_nodes\ComfyUI-Allor
[!] ERROR: Invalid requirement: '# cuda-python'
install/(de)activation script failed: D:\SD\comfyui\ComfyUI\custom_nodes\ComfyUI-Allor
[ComfyUI-Manager] Startup script completed.
#######################################################################
Second error when feeding more than one image into the AlphaChannelAddByMask node:
ERROR:root:!!! Exception during processing !!!
ERROR:root:Traceback (most recent call last):
File "D:\SD\comfyui\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\comfyui\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\comfyui\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SD\comfyui\ComfyUI\custom_nodes\ComfyUI-Allor\modules\AlphaChanel.py", line 70, in node
return (torch.stack([
^
File "D:\SD\comfyui\ComfyUI\custom_nodes\ComfyUI-Allor\modules\AlphaChanel.py", line 75, in
mask[i]
~~~~^^^
IndexError: index 1 is out of bounds for dimension 0 with size 1
Traceback (most recent call last):
File "E:\stable_diffusion\ComfyUI\nodes.py", line 1735, 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 "E:\stable_diffusion\ComfyUI\custom_nodes\ComfyUI-Allor_init.py", line 6, in
loader.check_updates()
File "E:\stable_diffusion\ComfyUI\custom_nodes\ComfyUI-Allor\Loader.py", line 104, in check_updates
repo = Repo(self.__root_path, odbt=git.db.GitDB)
^^^
UnboundLocalError: cannot access local variable 'git' where it is not associated with a value
Cannot import E:\stable_diffusion\ComfyUI\custom_nodes\ComfyUI-Allor module for custom nodes: cannot access local variable 'git' where it is not associated with a value
Hi there,
Having some trouble with the Multi-line text node.
It's throwing the following error;
Error occurred when executing ImageTextMultilineOutlined:
'FreeTypeFont' object has no attribute 'getsize_multiline'
File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "F:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Allor\modules\ImageText.py", line 309, in node
text_size = font.getsize_multiline(text)
Any suggestions?
Thanks!
When installing this extension, ImageScaleBy becomes a missing node.
i want to use system fonts, how to do that ?
Always get "Import Failed" error while starting ComfyUI and no nodes showing up
Terminal logs look like this:
File "/Volumes/SSD/ComfyUI/custom_nodes/comfyui_allor/__init__.py", line 10, in <module>
NODE_CLASS_MAPPINGS = loader.get_modules()
File "/Volumes/SSD/ComfyUI/custom_nodes/comfyui_allor/Loader.py", line 84, in get_modules
from .modules import ImageContainer
File "/Volumes/SSD/ComfyUI/custom_nodes/comfyui_allor/modules/ImageContainer.py", line 3, in <module>
from .Utils import create_rgba_image
File "/Volumes/SSD/ComfyUI/custom_nodes/comfyui_allor/modules/Utils.py", line 123, in <module>
size: tuple[int] | tuple[int, int],
TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'types.GenericAlias'
When loading the graph, the following node types were not found:
ImageScale
ImageBlur
Nodes that have failed to load will show as red on the graph.
is there something wrong?
D:\a_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:743 onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page (https://onnxruntime.ai/docs/execution-providers/CUDA-ExecutionProvider.html#requirements), make sure they're in the PATH, and that your GPU is supported.,出现C盘问题,我连C盘都没有
Update error: D:\WORK\conda_envs\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Allor
Nothing more comes up, just this message.
Hi there,
At the moment there doesn't appear to be a way to create multi-line text from a file (perhaps I'm missing an obvious solution).
Is it possible to add the ability to read <br> in text, or to set an automatic line break feature at a set character / word / container width?
Thanks!
Attention! You are currently using an unstable fyb;main update branch.
This branch is intended for the development of fmb;Allor v.2.
Please be aware that changes made in fmb;Allor v.2 may disrupt your current workflow.
Nodes may be renamed, parameters within them may be altered or even removed.
If backward compatibility of your workflow is important to you, consider this.
You can change the fcb;branch_name_param parameter to fbb;v1 in your fgb;config_json.
If you are prepared for potential changes, you can modify your configuration file.
To accept, switch the fcb;confirm_unstable_param parameter in your fgb;config_json to fbb;true.
This will result in this warning no longer appearing.
We appreciate your support and understanding during this transition period.
Thank you and welcome to fmb;Allor v.2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.