ComfyUI-LayerDivider
ComfyUI LayerDivider is custom nodes that generating layered psd files inside ComfyUI
Perfil del paquete
- Estado
- Verificado
- Publicador
- @jtydhr88
- Fuente
- GitHub
Léeme
EN | 中文
ComfyUI LayerDivider
ComfyUI LayerDivider is custom nodes that generating layered psd files inside ComfyUI, original implement is mattyamonaca/layerdivider
image1 image2 https://github.com/jtydhr88/ComfyUI-LayerDivider/assets/860985/3ceb0638-1ed7-4e01-b231-03c4408c95e3
Environment
I tested the following environment, it might work on other environment, but I don't test:
Common
- Windows 10/Ubuntu
- GTX 3090
- Cuda 12.1
Env 1 - see Method 1
- ComfyUI embedded python (python 3.11) and ComfyUI Manager
Env 2 - see Method 2
- conda
- Python 3.11
Env 3 - see Method 3
- conda
- Python 3.11
Env 4 - see Method 4
- Ubuntu
- conda/Python 3.11
- cuda 12.1
(Common) Installation - CUDA & cuDNN
This repo requires specific versions of CUDA and cuDNN to be installed locally:
- For CUDA, I only install and test CUDA 12.1, you can find it from https://developer.nvidia.com/cuda-12-1-0-download-archive
- For cuDNN, it MUST be v8.9.2 - CUDA 12.x (according to https://github.com/mdboom/pytoshop/issues/9), you can find it from https://developer.nvidia.com/rdp/cudnn-archive
- After install and unzip, make sure you configure the PATH of your system variable Path
(Common) Installation - Visual Studio Build Tools
It might also require Visual Studio Build Tools. However, I am not sure because my local already installed previously. If it needs, you can find from Visual Studio Build Tools.
(Method 1) Installation - ComfyUI Embedded Plugin & ComfyUI Manager
- You could clone this repo inside comfyUI/custom_notes directly
git clone https://github.com/jtydhr88/ComfyUI-LayerDivider.git - or use ComfyUI Manager manager
- However, no matter which way you choose, it will fail at first time error
- Stop ComfyUI
- Then go to custom_nodes\ComfyUI-LayerDivider, and run install_windows_portable_win_py311_cu121.bat
Done!
(If you prefer to use conda and python 3.10, you could follow the next)
(Method 2) Installation - ComfyUI
You could use conda to manage and create the ComfyUI runtime environment:
- use cmd/terminal to enter the comfyui root folder (which includes run_cpu.bat and run_nvidia_gpu.bat)
conda create --name comfy-py-310 python=3.10conda activate comfy-py-310pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu121pip install -r ComfyUI\requirements.txt
Then you can run python -s ComfyUI\main.py --windows-standalone-build to check ComfyUI running properly.
(Method 2) Installation - ComfyUI LayerDivider
Then we can clone and configure this repo for ComfyUI:
cd ComfyUI\custom_nodespip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/pip install Cythonpip install pytoshop -I --no-cache-dirpip install psd-tools --no-depsgit clone https://github.com/jtydhr88/ComfyUI-LayerDivider.gitcd ComfyUI-LayerDividerpip install -r requirements.txt
Congratulation! You complete all installation!
(Method 3) Installation - ComfyUI LayerDivider
Assume you already have a conda python3.11 env
- activate your env
- go into this folder and run install_conda_win_py311_cu121.bat
Congratulation! You complete all installation!
(Method 4) Ubuntu Installation - ComfyUI LayerDivider
Assume you already have a python3.11 env + cuda 12.1
- clone this repo inside custom_nodes folder
- cd ComfyUI-LayerDivider/
- pip install -r requirements.txt
Then make sure run them one by one:
- pip install cython
- pip install pytoshop -I --no-cache-dir
- pip install psd_tools
- pip install onnxruntime-gpu==1.17.0 --extra-index-url https://aiinfra.pkgs
Nodos de este paquete
4 nodos
Nodos de este paquete
4 nodos- LayerDivider - Color Base
- LayerDivider - Divide Layer
- LayerDivider - Load SAM Mask Generator
- LayerDivider - Segment Mask
Fuentes
3 fuentes
Fuentes
3 fuentesVerificado 23 oct
Verificado 23 oct
Extractos de fuentes
1 extracto
Extractos de fuentes
1 extractoSource context: Repo jtydhr88/ComfyUI-LayerDivider
