Coder Social home page Coder Social logo

nimanzrii / comfyui-photoshop Goto Github PK

View Code? Open in Web Editor NEW
523.0 12.0 31.0 6.02 MB

ComfyUi inside of your Photoshop! you can install the plugin and enjoy free ai genration

License: Other

Python 43.14% JavaScript 45.07% HTML 0.62% Batchfile 6.12% Shell 5.05%

comfyui-photoshop's Introduction

✨ ComfyUI Photoshop Plugin GitHub Stars

Buy Me a Coffee Discord Email

Seamlessly integrate ComfyUI's powerful AI capabilities into your Photoshop workflow! 🚀

Preview Image

Note

Chinese (ZH & TW), Japanese, and Korean languages have been added!
Simply click the Load SD1.5 button, and the workflow will automatically load in your ComfyUI language.
Compatible with AIGODLIKE-ComfyUI-Translation node.

🔥 What's New in v1.9

  • Crop Over Selection with Padding
  • Port Change Support
  • Tiny Shortcuts for efficiency
  • Preserve Selection feature
  • Improved "Play on Channels" functionality
  • Convenient In-Plugin Updates
📜 Full Patch Notes
Version Key Updates
1.9 • Crop Over Selection
• Padding for Crop Selection
• Connect to ComfyUI Cloud
• Port Change Support
• Tiny Shortcuts
• Preserve Selection
• Smarter "Play on Channels"
• In-Plugin Updates
1.8 • Optimized UI
• Randomization Feature
• New Functional Buttons
• Resizable Text Fields
• Improved Panel Animations
1.6 - 1.4 • 2x Smoother Experience
• Real-Time Workflow Sync
• 3x Simpler Workflow
• Enhanced Image Saving
• Mask Preview
• Plugin Install Button
• 6x Faster Start-Up
• macOS Support
• Photopea Integration
1.0 Initial Release

youtubelink

🛠️ Installation

click to expand

Minimum: 6GB Vram - 12GB RAM - Photoshop 2022 or newer

  1. Photoshop Plugin:

  2. ComfyUI Workflow:

    • Download THIS Workflow
    • Drop it onto your ComfyUI
    • Install missing nodes via "ComfyUI Manager"

💡 New to ComfyUI? Follow our step-by-step installation guide!

📦 Required Files

click to expand
  1. Checkpoints: (Place in ComfyUi/Models/Checkpoints/ folder)

  2. Loras: (Place in ComfyUi/Models/Loras/ folder)

  3. Install via ComfyUI manager > install Models > search:

    • LCM LoRA SD1.5
    • ControlNet-v1-1 (lineart; fp16)
    • ControlNet-v1-1 (scribble; fp16)
    • ControlNet-v1-1 (inpaint; fp16)
    • 4x-UltraSharp

📜 This project is licensed.


Made with ❤️ by Nima Nazari

⭐ Star this repo if you find it helpful!

comfyui-photoshop's People

Contributors

nimanzrii avatar

Stargazers

Juan Granados avatar 缘炒 avatar Spire avatar Anil Reddy avatar  avatar  avatar 苏可欣 avatar Pol Vila avatar Tia avatar  avatar Kapital avatar Jescal Lin avatar  avatar AWWalker avatar  avatar Tenney avatar  avatar  avatar SGN avatar  avatar  avatar lds avatar  avatar dengdeng avatar  avatar Mo Nuaimat avatar  avatar yicafe avatar  avatar Robert avatar sarmat avatar  avatar FFei avatar Jefferson Phillips avatar  avatar  avatar  avatar  avatar Luna_K avatar Jason Chen avatar  avatar  avatar  avatar samnyan avatar  avatar martinmuzhe avatar  avatar omart avatar  avatar Tyler avatar moonway avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar UNxlQZ avatar Yue avatar Liamm avatar  avatar  avatar  avatar  avatar Henry avatar 苏子客 avatar  avatar Vitaliy Zuev avatar  avatar  avatar  avatar Kevin Saltarelli avatar smxy avatar  avatar etowner avatar  avatar Xinyue Chai avatar 粤D权志龙 avatar Ivan Prikot avatar  avatar  avatar BenX avatar  avatar Grachev Ilya avatar  avatar PDZ avatar  avatar Mino avatar  avatar  avatar  avatar  avatar Holy avatar  avatar 怕冷爱上雪 avatar

Watchers

 avatar Rahul Y Gupta avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

comfyui-photoshop's Issues

MacBook (IMPORT FAILED)

Hi Im on mac M3 and everything is installed but your custom node refuses to be imported, tried to download it from the git but nothing helps, any ideas?

Problem with MacStudio M1

Hi, Thanks for this plug-in. Highly appreciated.
However I couldn't make it run on my MacStudio. This is the error message I am getting.
Thanks in advance.

Error occurred when executing ImageResize+:

'>' not supported between instances of 'str' and 'int'

File "/Users/tsevis/AI/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tsevis/AI/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 "/Users/tsevis/AI/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tsevis/AI/ComfyUI/custom_nodes/ComfyUI_essentials/essentials.py", line 100, in execute
if multiple_of > 1:
^^^^^^^^^^^^^^^

I can't install your nodes

I can't install your nodes, Can you tell me what needs to be done to install them? Recently, this problem has arisen with many nodes and it is impossible to solve it (I already asked on the forums, but to no avail)
image

image doesn't change in PS

I selected Enable img 2 img (Scribble CN) and got an error.

(Error occurred when executing SimpleMath+:

compile() arg 1 must be a string, bytes or AST object

File "D:\Program Files\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\Program Files\ComfyUI-aki-v1.3\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:\Program Files\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\Program Files\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_essentials\essentials.py", line 1096, in execute
result = eval_(ast.parse(value, mode='eval').body)
File "D:\Program Files\ComfyUI-aki-v1.3\python\lib\ast.py", line 50, in parse
return compile(source, filename, mode, flags,)

Also Enable img 2 img in comfyui works, but the image doesn't change in PS!

just a white output in photoshop!

hello there ,thanks alot for your efforts for making this awesome tool !
i have some issues regarding using it when i use it in photoshop it only outputs white image the only tab working is text2img also send to layer dosnt work i dont have any issues in the comfyui log , i recorded a vid showing the issue

Video_2024-05-14_050029.mp4

Error occurred when executing SimpleMath

Error occurred when executing SimpleMath+:

compile() arg 1 must be a string, bytes or AST object

File "L:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\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 "L:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "L:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials\essentials.py", line 1089, in execute
result = eval_(ast.parse(value, mode='eval').body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "ast.py", line 50, in parse

Is this still available?

Is this still available? No installation details/not getting installed through comfy manager.

Import failed Inference core/Photoshop ComfyUI Plugin

I read other bug reports. So as I understand the whole problem is in ComfyUI-Inference-Core-Nodes.

I completely reinstalled ComfyUi, but the problem remained exactly the same. Is there an option that the workflow will be rewritten without using Inference Core Nodes? I've been trying for a long time to fix the fact that it gives an error, and I've probably tried everything.


C:\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2024-05-12 12:22:45.401657
** Platform: Windows
** Python version: 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
** Python executable: C:\ComfyUI_windows_portable\python_embeded\python.exe
** Log path: C:\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes:
0.0 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
0.3 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 6144 MB, total RAM 65260 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 Laptop GPU : cudaMallocAsync
VAE dtype: torch.bfloat16
Using pytorch cross attention
Error:
[WinError 1314] A required privilege is not held by the client: 'C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals\js' -> 'C:\ComfyUI_windows_portable\ComfyUI\web\extensions\ComfyLiterals'
Failed to create symlink to C:\ComfyUI_windows_portable\ComfyUI\web\extensions\ComfyLiterals. Please copy the folder manually.
Source: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals\js
Target: C:\ComfyUI_windows_portable\ComfyUI\web\extensions\ComfyLiterals
Traceback (most recent call last):
File "C:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1864, 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 "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inference-Core-Nodes_init
.py", line 1, in
from inference_core_nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
ModuleNotFoundError: No module named 'inference_core_nodes'

Cannot import C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inference-Core-Nodes module for custom nodes: No module named 'inference_core_nodes'

Loading: ComfyUI-Manager (V2.30.1)

ComfyUI Revision: 2128 [258dbc06] | Released on '2024-04-14'

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_main
.py", line 22, in
from pip._internal.cli.main import main as _main
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\main.py", line 10, in
from pip._internal.cli.autocompletion import autocomplete
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\autocompletion.py", line 10, in
from pip._internal.cli.main_parser import create_main_parser
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\main_parser.py", line 9, in
from pip._internal.build_env import get_runnable_pip
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\build_env.py", line 19, in
from pip._internal.cli.spinners import open_spinner
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\spinners.py", line 9, in
from pip._internal.utils.logging import get_indentation
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\logging.py", line 29, in
from pip._internal.utils.misc import ensure_dir
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\misc.py", line 44, in
from pip.internal.locations import get_major_minor_version
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations_init
.py", line 14, in
from . import _sysconfig
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations_sysconfig.py", line 11, in
from .base import change_root, get_major_minor_version, is_osx_framework
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations\base.py", line 9, in
from pip._internal.utils import appdirs
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\appdirs.py", line 13, in
from pip._vendor import platformdirs as appdirs
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs_init
.py", line 46, in
PlatformDirs = set_platform_dir_class() #: Currently active platform
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs_init
.py", line 26, in _set_platform_dir_class
from pip.vendor.platformdirs.windows import Windows as Result
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs\windows.py", line 4, in
import ctypes
File "ctypes_init
.py", line 8, in
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_main
.py", line 22, in
from pip._internal.cli.main import main as _main
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\main.py", line 10, in
from pip._internal.cli.autocompletion import autocomplete
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\autocompletion.py", line 10, in
from pip._internal.cli.main_parser import create_main_parser
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\main_parser.py", line 9, in
from pip._internal.build_env import get_runnable_pip
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\build_env.py", line 19, in
from pip._internal.cli.spinners import open_spinner
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\spinners.py", line 9, in
from pip._internal.utils.logging import get_indentation
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\logging.py", line 29, in
from pip._internal.utils.misc import ensure_dir
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\misc.py", line 44, in
from pip.internal.locations import get_major_minor_version
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations_init
.py", line 14, in
from . import _sysconfig
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations_sysconfig.py", line 11, in
from .base import change_root, get_major_minor_version, is_osx_framework
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations\base.py", line 9, in
from pip._internal.utils import appdirs
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\appdirs.py", line 13, in
from pip._vendor import platformdirs as appdirs
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs_init
.py", line 46, in
PlatformDirs = set_platform_dir_class() #: Currently active platform
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs_init
.py", line 26, in _set_platform_dir_class
from pip.vendor.platformdirs.windows import Windows as Result
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs\windows.py", line 4, in
import ctypes
File "ctypes_init
.py", line 8, in
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.
PS An error occurred while running a subprocess: Command '['C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Scripts\python.exe', '-m', 'pip', 'install', '--upgrade', 'pip']' returned non-zero exit status 1.
Skip C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop module for custom nodes due to the lack of NODE_CLASS_MAPPINGS.
[comfyui_controlnet_aux] | INFO -> Using ckpts path: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts
[comfyui_controlnet_aux] | INFO -> Using symlinks: False
[comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']

Full error log from comfyui_controlnet_aux:
Traceback (most recent call last):
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux_init_.py", line 32, in load_nodes
module = importlib.import_module(
^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init_.py", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\dwpose.py", line 5, in
from controlnet_aux.dwpose import DwposeDetector, AnimalposeDetector
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\dwpose_init
.py", line 15, in
from . import util
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\dwpose\util.py", line 8, in
from .body import BodyResult, Keypoint
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\dwpose\body.py", line 6, in
import matplotlib.pyplot as plt
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\matplotlib\pyplot.py", line 66, in
from matplotlib.figure import Figure, FigureBase, figaspect
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\matplotlib\figure.py", line 43, in
from matplotlib import _blocking_input, backend_bases, docstring, projections
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\matplotlib\projections_init
.py", line 55, in
from .. import axes, docstring
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\matplotlib\axes_init
.py", line 2, in
from .axes import *
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\matplotlib\axes_axes.py", line 11, in
import matplotlib.category # Register category unit converter as side effect.
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\matplotlib\category.py", line 14, in
import dateutil.parser
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\dateutil\parser_init
.py", line 2, in
from ._parser import parse, parser, parserinfo, ParserError
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\dateutil\parser_parser.py", line 42, in
import six
ModuleNotFoundError: No module named 'six'

[comfyui_controlnet_aux] | INFO -> Some nodes failed to load:
Failed to import module dwpose because ModuleNotFoundError: No module named 'six'

Check that you properly installed the dependencies.
If you think this is a bug, please report it on the github page (https://github.com/Fannovel16/comfyui_controlnet_aux/issues)
[comfy_mtb] | INFO -> loaded 73 nodes successfuly
[comfy_mtb] | INFO -> Some nodes (5) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.

[rgthree] Loaded 38 fantastic nodes.
[rgthree] Will use rgthree's optimized recursive execution.

Import times for custom nodes:
0.0 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
0.0 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere
0.0 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Logic
0.0 seconds (IMPORT FAILED): C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inference-Core-Nodes
0.0 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals
0.0 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-image-saver
0.0 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
0.0 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials
0.0 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
0.3 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
0.3 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
0.8 seconds: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb
1.1 seconds (IMPORT FAILED): C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop

Starting server

To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE]

Does not work

In the morning, something else was working (transferring the image to the comfy, but not back). And now it has stopped working altogether.
image

The mask output from the main node is not correct

I've noticed the mask output of the main plugin node gives the mask with R1 G1 B1 values on the "black" area. So we are getting the whole photoshop canvas as masked area. Maybe this is the intended behavior, but I can't understand the reason for this.

I've saved mask as image and opened it in photoshop to check, I'm including the screenshot.

image

I can solve this problem in my workflow by converting mask to image and rising levels slightly, so it's not a deal breaker, but still.

No Photoshop Canvas Image from main ComfyUI node

Hello !

Love your work ! :)
Am I doing something wrong - so I can't receive image from PS at main Comfy node ?

chrome_8NQnoRwIXJ

PS plugin is running (Get Started button clicked)
"SendTo Photoshop Plugin" Comfy node is working - when I pass image there it shows at PS plugin
Legacy (I guess) Comfy node is working, as shown

Windows 11, Portable ComfyUI, PS 2022

Best regards
Manru

An error while trying to render

Error occurred when executing CheckpointLoaderSimple:

'NoneType' object has no attribute 'lower'

File "C:\Users\gkori\AI APPS\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gkori\AI APPS\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 "C:\Users\gkori\AI APPS\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gkori\AI APPS\ComfyUI_windows_portable\ComfyUI\nodes.py", line 516, in load_checkpoint
out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gkori\AI APPS\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 446, in load_checkpoint_guess_config
sd = comfy.utils.load_torch_file(ckpt_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\gkori\AI APPS\ComfyUI_windows_portable\ComfyUI\comfy\utils.py", line 13, in load_torch_file
if ckpt.lower().endswith(".safetensors"):
^^^^^^^^^^

Please advise

Working with remote comfy instance.

By creating a tunnel I'm able to connect to the node...

The problem arises because it expects the file system to be local, so the Photoshop_import method fails when trying to save the temp file. Do you have any idea what the approach should be to modify it so that it's agnostic to local/remote comfy installation?

Denoise slider doesn't work

Currently I am using Adobe Photoshop Version: 25.6.0 20240312.r.433 2bfcbf1 x64
And changing the slider on the right (responsible for Denoise, as I understand it) does not change anything.

Originally posted by @matroxI in #47 (comment)

Error occurred when executing ImageToMask: True is not in list

Great job dude!!!!

Setup all ok. ComfyUi is connected to Photoshop.

But when I press render (in any type, eq. txt2img, img2img etc) I get an error:

Error occurred when executing ImageToMask:

True is not in list

File "D:\PortablesAI\ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\PortablesAI\ComfyUI\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:\PortablesAI\ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\PortablesAI\ComfyUI\ComfyUI\comfy_extras\nodes_mask.py", line 129, in image_to_mask
mask = image[:, :, :, channels.index(channel)]
^^^^^^^^^^^^^^^^^^^^^^^

Which model for the IP Adapter?

First of all, thank you for your work!
Trying to do some out-paint and I get this:

* IPAdapterUnifiedLoader 1431:
  - Exception when validating inner node: tuple index out of range
* IPAdapter 1430:
  - Required input is missing: clip_vision
  - Value not in list: model_name: '0' not in ['ioclab_sd15_recolor.safetensors']
  - Value not in list: dtype: '0.7000000000000001' not in ['fp16', 'fp32']
Output will be ignored
Failed to validate prompt for output 1428:
Output will be ignored
[rgthree] Using rgthree's optimized recursive execution.
!!! Exception during processing!!! AdvancedControlNetApply.apply_controlnet() got an unexpected keyword argument 'timestep_kf'
Traceback (most recent call last):
  File "E:\AI\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "E:\AI\StabilityMatrix\Data\Packages\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 "E:\AI\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI-0246\utils.py", line 381, in new_func
    res_value = old_func(*final_args, **kwargs)
  File "E:\AI\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
TypeError: AdvancedControlNetApply.apply_controlnet() got an unexpected keyword argument 'timestep_kf'

From what I understand, there is at least a missing model there, since your workflow didn't find any.
The ioclab_sd15_recolor.safetensors is the only model that it finds if I try to manually load one.
So, what is the model that you are using there?
error
Never used IP adapter until now, but I try to understand what's more is missing after that..

All the other modes work as expected (even the in-paint)
Great plugin!

Have error on mac, can you help ?

Error occurred when executing ImageToMask:

True is not in list

File "/Users/xxxxxxxx/pinokio/api/comfyui.pinokio.git/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/Users/xxxxxxxx/pinokio/api/comfyui.pinokio.git/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 "/Users/xxxxxxxx/pinokio/api/comfyui.pinokio.git/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/Users/xxxxxxxx/pinokio/api/comfyui.pinokio.git/ComfyUI/comfy_extras/nodes_mask.py", line 129, in image_to_mask
mask = image[:, :, :, channels.index(channel)]

I'm getting problem to install it on Macbook M2 Pro Max. Does it work for Mac?

Traceback (most recent call last):
File "/Users/fabiogarcia/pinokio/api/comfyui11.git/app/nodes.py", line 1888, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/Users/fabiogarcia/pinokio/api/comfyui11.git/app/custom_nodes/comfyui-photoshop/init.py", line 17, in
subprocess.run(["python.exe", "-m", "pip", "uninstall", "photoshop"])
File "/Users/fabiogarcia/pinokio/bin/miniconda/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/Users/fabiogarcia/pinokio/bin/miniconda/lib/python3.10/subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/fabiogarcia/pinokio/bin/miniconda/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'python.exe'

Import times for custom nodes:
0.0 seconds (IMPORT FAILED): /Users/fabiogarcia/pinokio/api/comfyui11.git/app/custom_nodes/comfyui-photoshop

This is really great.

This is really great. He can work now. But now I have a problem? The model won't load and the slider doesn't show the numbers

微信截图_20240504230858
微信截图_20240504230915

Feature request: View size 100%

Wonderful pack, I love it!

I would like to suggest one feature for the right clic menu of the Preview window: view size 100%.

Similar to View 100% of Photoshop, it allows as to see the window in the real size in pixels.

Thank you for this wonder!

Parsing PNG images incorrectly

Images arrive at ComfyUI as jpg images so I cannot use transparent images

I tried to fix it but didn't succeed

 def Photoshop_import(self, password):
        self.path = tempfile.gettempdir().replace("\\", "/")+'/temp_image.png'
        try:
            with PhotoshopConnection(password=password) as ps_conn:
                ps_conn.execute(f'var saveFile = new File("{self.path}");'
                            'var pngOptions = new PNGSaveOptions();'

                            'activeDocument.saveAs(saveFile, pngOptions, true);')

        except Exception as e:
            print("Your photoshop Password is incorrect or it didn't launch")
        return False
def Waitforchange(self, password):
        while True:
            try:
                with PhotoshopConnection(password=password) as conn:
                    conn.subscribe('imageChanged', self.Photoshop_import, block=True)
                    conn.execute(f'var saveFile = new File("{self.path}");'
                                 'var pngOptions = new PNGSaveOptions();'
                                 'activeDocument.saveAs(saveFile, pngOptions, true);')
                break  # در صورت عدم بروز خطا، از حلقه خارج شوید
            except Exception as e:
                print(f"An error occurred: {e}")
                time.sleep(0.5)  
                self.Photoshop_import(password)
        image=i.convert('RGBA')
        image = np.array(image).astype(np.float32) / 255.0
        image = torch.from_numpy(image)[None,]`

        ``` 
        

real time issue

Hi @NimaNzrii, hope you're doing well! : )

While trying to use comfyui-photoshop I'm running into the issue that the updates that I'm making on my image are not being reflected on the ComfyUI Photoshop Plugin and neither on ComfUI itself.

In order to see my updated image I need to save the changes, close everything PS and Comfy and restart everything once again. Is there any solution to get the updates in real time like the ones you're showing on your video? Thanks!

imageNotUpdating

imageNotUpdating2

I'm getting a report and I'll be posting here soon

Import Failed

I keep seeing module not found 'Photoshop' in the terminal and import failed on this node. I removed almost all other custom nodes except those required by the workflow from your video. Not sure what i'm doing wrong.

File "D:\GitHub\ComfyUI\custom_nodes\comfyui-photoshop\photoshop.py", line 6, in
from photoshop import PhotoshopConnection
ModuleNotFoundError: No module named 'photoshop'

Cannot import D:\GitHub\ComfyUI\custom_nodes\comfyui-photoshop module for custom nodes: No module named 'photoshop'

Setup for SDXL

What ControlNet model do you recommend for SDXL?

Could you provide a link to a functional tile model?

(IMPORT FAILED) comfyui-photoshop

trough manager installed the plugin, and its listed as installed , however workflow shows Plugin not installed.
I tried the "Try Fix" but it tells me "Import Failed "

ComfyUI-Photoshop Node won't import in ComfyUi on Mac

This is the Log I get. Maybe it has to do with my environment being in Python3?


Restarting... [Legacy Mode]


/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2024-05-12 23:52:31.798069
** Platform: Darwin
** Python version: 3.11.9 (v3.11.9:de54cf5be3, Apr  2 2024, 07:12:50) [Clang 13.0.0 (clang-1300.0.29.30)]
** Python executable: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
** Log path: /Users/franck/Documents/ComfyUI/comfyui.log

Prestartup times for custom nodes:
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/rgthree-comfy
   0.1 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI-Manager

Total VRAM 98304 MB, total RAM 98304 MB
Set vram state to: SHARED
Device: mps
VAE dtype: torch.float32
Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --use-split-cross-attention
Adding extra search path checkpoints /Volumes/FrankX9/comfyui/models/Stable-diffusion
Adding extra search path configs /Volumes/FrankX9/comfyui/models/Stable-diffusion
Adding extra search path vae /Volumes/FrankX9/comfyui/models/VAE
Adding extra search path loras /Volumes/FrankX9/comfyui/models/Lora
Adding extra search path loras /Volumes/FrankX9/comfyui/models/LyCORIS
Adding extra search path upscale_models /Volumes/FrankX9/comfyui/models/ESRGAN
Adding extra search path upscale_models /Volumes/FrankX9/comfyui/models/RealESRGAN
Adding extra search path upscale_models /Volumes/FrankX9/comfyui/models/SwinIR
Adding extra search path embeddings /Volumes/FrankX9/comfyui/embeddings
Adding extra search path hypernetworks /Volumes/FrankX9/comfyui/models/hypernetworks
Adding extra search path controlnet /Volumes/FrankX9/comfyui/models/ControlNet
### Loading: ComfyUI-Manager (V2.32.2)
### ComfyUI Revision: 2178 [ece5acb8] | Released on '2024-05-12'
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ReActor] - STATUS - Running v0.5.0-b2 in ComfyUI
Torch version: 2.4.0.dev20240507
No module named 'ultralytics'
[inference_core_nodes.controlnet_preprocessors] | INFO -> Using ckpts path: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes/src/inference_core_nodes/controlnet_preprocessors/ckpts
[inference_core_nodes.controlnet_preprocessors] | INFO -> Using symlinks: False
[inference_core_nodes.controlnet_preprocessors] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
Downloading: "https://download.pytorch.org/models/mobilenet_v2-b0353104.pth" to /Users/franck/.cache/torch/hub/checkpoints/mobilenet_v2-b0353104.pth

[rgthree] Loaded 38 epic nodes.
[rgthree] Will use rgthree's optimized recursive execution.

_PS_ All packages are installed.
_PS_ backend_path /Users/franck/Documents/ComfyUI/custom_nodes/comfyui-photoshop/Backend.py
Traceback (most recent call last):
  File "/Users/franck/Documents/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop-noplugin.py", line 9, in <module>
    from photoshop import PhotoshopConnection
ModuleNotFoundError: No module named 'photoshop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/franck/Documents/ComfyUI/nodes.py", line 1879, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/franck/Documents/ComfyUI/custom_nodes/comfyui-photoshop/__init__.py", line 68, in <module>
    imported_module = importlib.import_module(".{}".format(module_name), __name__)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/franck/Documents/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop-noplugin.py", line 11, in <module>
    subprocess.run(["python", "-m", "pip", "uninstall", "photoshop"], check=True)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'python'

Cannot import /Users/franck/Documents/ComfyUI/custom_nodes/comfyui-photoshop module for custom nodes: [Errno 2] No such file or directory: 'python'
[comfyui_controlnet_aux] | INFO -> Using ckpts path: /Users/franck/Documents/ComfyUI/custom_nodes/comfyui_controlnet_aux/ckpts
[comfyui_controlnet_aux] | INFO -> Using symlinks: False
[comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
Python 3.11.9 (v3.11.9:de54cf5be3, Apr  2 2024, 07:12:50) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> Web extensions folder found at /Users/franck/Documents/ComfyUI/web/extensions/ComfyLiterals
OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
[comfy_mtb] | INFO -> loaded 78 nodes successfuly
Traceback (most recent call last):
  File "/Users/franck/Documents/ComfyUI/nodes.py", line 1879, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 936, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1073, in get_code
  File "<frozen importlib._bootstrap_external>", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Users/franck/Documents/ComfyUI/custom_nodes/insightface/__init__.py'

Cannot import /Users/franck/Documents/ComfyUI/custom_nodes/insightface module for custom nodes: [Errno 2] No such file or directory: '/Users/franck/Documents/ComfyUI/custom_nodes/insightface/__init__.py'

Import times for custom nodes:
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/websocket_image_save.py
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI-Logic
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/cg-use-everywhere
   0.0 seconds (IMPORT FAILED): /Users/franck/Documents/ComfyUI/custom_nodes/insightface
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyLiterals
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI_essentials
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/comfy-image-saver
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/rgthree-comfy
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI_ExtraModels
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/comfyui_controlnet_aux
   0.0 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI-Manager
   0.1 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI_InstantID
   0.3 seconds (IMPORT FAILED): /Users/franck/Documents/ComfyUI/custom_nodes/comfyui-photoshop
   0.4 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/comfyui-reactor-node
   0.5 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI-Inference-Core-Nodes
   2.3 seconds: /Users/franck/Documents/ComfyUI/custom_nodes/comfy_mtb

Starting server

To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI-Manager/.cache/1514988643_custom-node-list.json [DONE]
FETCH DATA from: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI-Manager/.cache/1742899825_extension-node-map.json [DONE]
FETCH DATA from: /Users/franck/Documents/ComfyUI/custom_nodes/ComfyUI-Manager/.cache/1742899825_extension-node-map.json [DONE]

FR: Random button

Just a feature request for the lazy between us..
A small random button next to the "Render".
Because I keep pressing the "Star" button and then the randomize until I get a satisfying render.
We can cut these clicks in half! 🎆 🍾 🥳

please lead me to make things works

Hai thanks for make this plugin happen, i can't wait to try it, but i got some problems, i'm already install the requirement files, and also the photoshop plugin, enable remote connections and put 12341234 as password

first i launch my PS 2024 then run main.py to start comfyui,
place image on the layer then select img2img and placing prompt and hit render

and got this line on cmd :

Starting server

To see the GUI go to: http://127.0.0.1:8188
PS Photoshop launched('127.0.0.1', 50317)
PS comfyUi Not Connected
FETCH DATA from: D:\comfy ui\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json
PS Photoshop node added('127.0.0.1', 50334)
got prompt
Failed to validate prompt for output 1157:

  • ImageResize+ 1677:5:
    • Value not in list: interpolation: 'True' not in ['nearest', 'bilinear', 'bicubic', 'area', 'nearest-exact', 'lanczos']
    • Value not in list: condition: 'lanczos' not in ['always', 'downscale if bigger', 'upscale if smaller']
      Output will be ignored
      Failed to validate prompt for output 1428:
  • CheckpointLoaderSimple 1074:
    • Value not in list: ckpt_name: 'epicrealism_naturalSinRC1VAE_2.safetensors' not in ['LCM_Dreamshaper_v7_4k.safetensors', 'epicrealism_naturalSinRC1VAE.safetensors', 'epicrealism_pureEvolutionV5-inpainting.safetensors', 'juggernautXL_v8Rundiffusion.safetensors', 'realismEngineSDXL_v30VAE.safetensors']
  • LoraLoader 1392:
    • Value not in list: lora_name: 'lcm\SD1.5\pytorch_lora_weights.safetensors' not in ['add_detail.safetensors', 'balloonz-sdxl.safetensors', 'lcm-lora-sdv1-5.safetensors', 'lcm-lora-sdxl.safetensors', 'pytorch_lora_weights.safetensors']
  • SDXLPromptStyler 1677:4:
    • Value not in list: log_prompt: 'False' not in ['No', 'Yes']
      Output will be ignored
      Failed to validate prompt for output 1661:
      Output will be ignored
      [rgthree] Using rgthree's optimized recursive execution.
      [rgthree] First run patching recursive_output_delete_if_changed and recursive_will_execute.
      [rgthree] Note: If execution seems broken due to forward ComfyUI changes, you can disable the optimization from rgthree settings in ComfyUI.
      !!! Exception during processing!!! 'NoneType' object has no attribute 'lower'
      Traceback (most recent call last):
      File "D:\comfy ui\ComfyUI\execution.py", line 151, in recursive_execute
      output_data, output_ui = get_output_data(obj, input_data_all)
      File "D:\comfy ui\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:\comfy ui\ComfyUI\execution.py", line 74, in map_node_over_list
      results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
      File "D:\comfy ui\ComfyUI\nodes.py", line 516, in load_checkpoint
      out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"))
      File "D:\comfy ui\ComfyUI\comfy\sd.py", line 446, in load_checkpoint_guess_config
      sd = comfy.utils.load_torch_file(ckpt_path)
      File "D:\comfy ui\ComfyUI\comfy\utils.py", line 13, in load_torch_file
      if ckpt.lower().endswith(".safetensors"):
      AttributeError: 'NoneType' object has no attribute 'lower'

Prompt executed in 0.53 seconds
got prompt
Failed to validate prompt for output 1157:

  • ImageResize+ 1677:5:
    • Value not in list: interpolation: 'True' not in ['nearest', 'bilinear', 'bicubic', 'area', 'nearest-exact', 'lanczos']
    • Value not in list: condition: 'lanczos' not in ['always', 'downscale if bigger', 'upscale if smaller']
      Output will be ignored
      Failed to validate prompt for output 1428:
  • CheckpointLoaderSimple 1074:
    • Value not in list: ckpt_name: 'epicrealism_naturalSinRC1VAE_2.safetensors' not in ['LCM_Dreamshaper_v7_4k.safetensors', 'epicrealism_naturalSinRC1VAE.safetensors', 'epicrealism_pureEvolutionV5-inpainting.safetensors', 'juggernautXL_v8Rundiffusion.safetensors', 'realismEngineSDXL_v30VAE.safetensors']
  • LoraLoader 1392:
    • Value not in list: lora_name: 'lcm\SD1.5\pytorch_lora_weights.safetensors' not in ['add_detail.safetensors', 'balloonz-sdxl.safetensors', 'lcm-lora-sdv1-5.safetensors', 'lcm-lora-sdxl.safetensors', 'pytorch_lora_weights.safetensors']
  • SDXLPromptStyler 1677:4:
    • Value not in list: log_prompt: 'False' not in ['No', 'Yes']
      Output will be ignored
      Failed to validate prompt for output 1661:
      Output will be ignored
      [rgthree] Using rgthree's optimized recursive execution.
      !!! Exception during processing!!! 'NoneType' object has no attribute 'lower'
      Traceback (most recent call last):
      File "D:\comfy ui\ComfyUI\execution.py", line 151, in recursive_execute
      output_data, output_ui = get_output_data(obj, input_data_all)
      File "D:\comfy ui\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:\comfy ui\ComfyUI\execution.py", line 74, in map_node_over_list
      results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
      File "D:\comfy ui\ComfyUI\nodes.py", line 516, in load_checkpoint
      out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"))
      File "D:\comfy ui\ComfyUI\comfy\sd.py", line 446, in load_checkpoint_guess_config
      sd = comfy.utils.load_torch_file(ckpt_path)
      File "D:\comfy ui\ComfyUI\comfy\utils.py", line 13, in load_torch_file
      if ckpt.lower().endswith(".safetensors"):
      AttributeError: 'NoneType' object has no attribute 'lower'

Prompt executed in 0.06 seconds

need your guidance, thanks

Trouble with "Send To Layers" | Mac M1 Max

Hello.

CUI-PSD-Plugin-SendToLayers

I am having trouble with the "send to layers" feature. As described in your presentation YouTube video; "if you press on the empty space on your plugin it will add the image as a layer". Is there a setting I don't see that allows for this? I am not sure if this is a Mac Photoshop issue versus the Windows. Everything seems to be working fine except for this function. Video with Img-2-Img LCM "Render on Changes" and mouse clicks below.

SEND-TO-LAYERS-CUI-PSD.mp4

Thank-you for your plugin and assistance.

Mac M1 Max
32GB Ram
Latest Version of CC Photoshop 25.7.0 (Not the Beta)

ImportError: DLL load failed while importing _ctypes: The specified module could not be found.

I'm getting this error after installing the custom node. It will not load properly, although the rest of ComyUI will. This is on a fresh install of the portable version with everything updated. Any idea how to fix it?:

I:\1_PROGRAMS\COMFYUI_2024>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2024-05-10 21:08:49.401099
** Platform: Windows
** Python version: 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
** Python executable: I:\1_PROGRAMS\COMFYUI_2024\python_embeded\python.exe
** Log path: I:\1_PROGRAMS\COMFYUI_2024\comfyui.log

#######################################################################
[ComfyUI-Manager] Starting dependency installation/(de)activation for the extension

Install: pip packages for 'I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\ComfyUI-Manager'

[ComfyUI-Manager] Startup script completed.
#######################################################################

Prestartup times for custom nodes:
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\rgthree-comfy
4.9 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 24563 MB, total RAM 65459 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
VAE dtype: torch.bfloat16
Using pytorch cross attention

Loading: ComfyUI-Manager (V2.30)

ComfyUI Revision: 2128 [258dbc06] | Released on '2024-04-14'

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_main
.py", line 22, in
from pip._internal.cli.main import main as _main
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\main.py", line 10, in
from pip._internal.cli.autocompletion import autocomplete
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\autocompletion.py", line 10, in
from pip._internal.cli.main_parser import create_main_parser
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\main_parser.py", line 9, in
from pip._internal.build_env import get_runnable_pip
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\build_env.py", line 19, in
from pip._internal.cli.spinners import open_spinner
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\spinners.py", line 9, in
from pip._internal.utils.logging import get_indentation
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\logging.py", line 29, in
from pip._internal.utils.misc import ensure_dir
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\misc.py", line 44, in
from pip.internal.locations import get_major_minor_version
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations_init
.py", line 14, in
from . import _sysconfig
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations_sysconfig.py", line 11, in
from .base import change_root, get_major_minor_version, is_osx_framework
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations\base.py", line 9, in
from pip._internal.utils import appdirs
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\appdirs.py", line 13, in
from pip._vendor import platformdirs as appdirs
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs_init
.py", line 46, in
PlatformDirs = set_platform_dir_class() #: Currently active platform
^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs_init
.py", line 26, in _set_platform_dir_class
from pip.vendor.platformdirs.windows import Windows as Result
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs\windows.py", line 4, in
import ctypes
File "ctypes_init
.py", line 8, in
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_main
.py", line 22, in
from pip._internal.cli.main import main as _main
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\main.py", line 10, in
from pip._internal.cli.autocompletion import autocomplete
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\autocompletion.py", line 10, in
from pip._internal.cli.main_parser import create_main_parser
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\main_parser.py", line 9, in
from pip._internal.build_env import get_runnable_pip
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\build_env.py", line 19, in
from pip._internal.cli.spinners import open_spinner
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\cli\spinners.py", line 9, in
from pip._internal.utils.logging import get_indentation
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\logging.py", line 29, in
from pip._internal.utils.misc import ensure_dir
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\misc.py", line 44, in
from pip.internal.locations import get_major_minor_version
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations_init
.py", line 14, in
from . import _sysconfig
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations_sysconfig.py", line 11, in
from .base import change_root, get_major_minor_version, is_osx_framework
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\locations\base.py", line 9, in
from pip._internal.utils import appdirs
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_internal\utils\appdirs.py", line 13, in
from pip._vendor import platformdirs as appdirs
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs_init
.py", line 46, in
PlatformDirs = set_platform_dir_class() #: Currently active platform
^^^^^^^^^^^^^^^^^^^^^^^^^
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs_init
.py", line 26, in _set_platform_dir_class
from pip.vendor.platformdirs.windows import Windows as Result
File "I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs\windows.py", line 4, in
import ctypes
File "ctypes_init
.py", line 8, in
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.
PS An error occurred while running a subprocess: Command '['I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop\venv\Scripts\python.exe', '-m', 'pip', 'install', '--upgrade', 'pip']' returned non-zero exit status 1.
Skip I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop module for custom nodes due to the lack of NODE_CLASS_MAPPINGS.
[ReActor] - STATUS - Running v0.5.0-b2 in ComfyUI
Torch version: 2.2.2+cu121
No module named 'ultralytics'
Workspace manager - Openning file hash dict

Loading: Workspace Manager (V1.0.0)

[comfyui_controlnet_aux] | INFO -> Using ckpts path: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts
[comfyui_controlnet_aux] | INFO -> Using symlinks: False
[comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
[comfy_mtb] | INFO -> loaded 76 nodes successfuly
[comfy_mtb] | INFO -> Some nodes (2) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.

[rgthree] Loaded 38 magnificent nodes.
[rgthree] Will use rgthree's optimized recursive execution.

WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite Warning: ffmpeg_bin_path is not set in I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json config file. Will attempt to use system ffmpeg binaries if available.
WAS Node Suite: Finished. Loaded 211 nodes successfully.

    "Great minds discuss ideas; average minds discuss events; small minds discuss people." - Eleanor Roosevelt

Import times for custom nodes:
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\websocket_image_save.py
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\image-resize-comfyui
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\ComfyUI-Logic
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\cg-use-everywhere
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\sd-ppp
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-popup_preview
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfy-image-saver
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-workspace-manager
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\rgthree-comfy
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\ComfyUI_essentials
0.0 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\facerestore_cf
0.1 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\ComfyUI-Manager
0.4 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui_controlnet_aux
0.8 seconds (IMPORT FAILED): I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-photoshop
1.1 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfyui-reactor-node
1.3 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\comfy_mtb
1.5 seconds: I:\1_PROGRAMS\COMFYUI_2024\ComfyUI\custom_nodes\was-node-suite-comfyui

Starting server

To see the GUI go to:

module 'cv2' has no attribute 'resize'

No matter what I do, I get the following error for CN Inline & CN scribble. Whats missing here?

Error occurred when executing AIO_Preprocessor:

module 'cv2' has no attribute 'resize'

File "H:\sd\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\sd\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 "H:\sd\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\sd\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux_init_.py", line 117, in execute
return getattr(aux_class(), aux_class.FUNCTION)(**params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\sd\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\scribble.py", line 37, in execute
return (common_annotator_call(model, image, resolution=resolution, thr_a=threshold), )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\sd\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\utils.py", line 84, in common_annotator_call
np_result = model(np_image, output_type="np", detect_resolution=detect_resolution, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\sd\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\scribble_init_.py", line 27, in call
input_image, remove_pad = resize_image_with_pad(input_image, detect_resolution, upscale_method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\sd\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\src\controlnet_aux\util.py", line 157, in resize_image_with_pad
img = cv2.resize(img, (W_target, H_target), interpolation=get_upscale_method(upscale_method) if k > 1 else cv2.INTER_AREA)
^^^^^^^^^^
2024-05-13 03_01_31-ComfyUI - Brave
2024-05-13 03_02_02-ComfyUI - Brave

plugin not working

Error occurred when executing 🔹Photoshop ComfyUI Plugin:

Failed to load directory after 5 attempts.
🔴 Make sure you have installed and started the Photoshop Plugin Succesfully.
🔴 otherwise you can restart your photosop and your plugin to Fix this problem this is the error m getting

ImageResize_ + error

Error occurred when executing ImageResize+:

'>' not supported between instances of 'str' and 'int'

File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\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 "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246\utils.py", line 381, in new_func
res_value = old_func(*final_args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials\essentials.py", line 100, in execute
if multiple_of > 1:
^^^^^^^^^^^^^^^
error

No module named Photoshop(will fix soon)

          Hey NimaNzrii, thanks for the updates! : )  

And np! But unfortunately I still stuck on the same problem. I'm not sure if it helps, but I got an updated report:

Z:\ComfyUI\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2024-05-04 19:49:19.515451
** Platform: Windows
** Python version: 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
** Python executable: Z:\ComfyUI\ComfyUI_windows_portable\python_embeded\python.exe
** Log path: Z:\ComfyUI\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes:
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
0.4 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 8191 MB, total RAM 32689 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
VAE dtype: torch.bfloat16
Using pytorch cross attention
Adding extra search path checkpoints Z:\A1111\stable-diffusion-webui\models/Stable-diffusion
Adding extra search path configs Z:\A1111\stable-diffusion-webui\models/Stable-diffusion
Adding extra search path vae Z:\A1111\stable-diffusion-webui\models/VAE
Adding extra search path loras Z:\A1111\stable-diffusion-webui\models/Lora
Adding extra search path loras Z:\A1111\stable-diffusion-webui\models/LyCORIS
Adding extra search path upscale_models Z:\A1111\stable-diffusion-webui\models/ESRGAN
Adding extra search path upscale_models Z:\A1111\stable-diffusion-webui\models/RealESRGAN
Adding extra search path upscale_models Z:\A1111\stable-diffusion-webui\models/SwinIR
Adding extra search path embeddings Z:\A1111\stable-diffusion-webui\embeddings
Adding extra search path hypernetworks Z:\A1111\stable-diffusion-webui\models/hypernetworks
Adding extra search path controlnet Z:\A1111\stable-diffusion-webui\models/ControlNet
Error:
[WinError 1314] A required privilege is not held by the client: 'Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals\js' -> 'Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\web\extensions\ComfyLiterals'
Failed to create symlink to Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\web\extensions\ComfyLiterals. Please copy the folder manually.
Source: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals\js
Target: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\web\extensions\ComfyLiterals
Adding Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes to sys.path
Could not find efficiency nodes
[comfyui_controlnet_aux] | INFO -> Using ckpts path: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts
[comfyui_controlnet_aux] | INFO -> Using symlinks: False
[comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider']
DWPose: Onnxruntime with acceleration providers detected
Loaded ControlNetPreprocessors nodes from Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
Loaded AdvancedControlNet nodes from Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
Could not find AnimateDiff nodes
Loaded IPAdapter nodes from Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
Could not find VideoHelperSuite nodes
Could not load ImpactPack nodes Could not find ImpactPack nodes
Traceback (most recent call last):
File "Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1866, 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 "Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inference-Core-Nodes_init
.py", line 1, in
from inference_core_nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
ModuleNotFoundError: No module named 'inference_core_nodes'

Cannot import Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inference-Core-Nodes module for custom nodes: No module named 'inference_core_nodes'

Loading: ComfyUI-Manager (V2.25.1)

ComfyUI Revision: 2160 [72508a8d] | Released on '2024-05-04'

Traceback (most recent call last):
File "Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop_init_.py", line 40, in
from photoshop import PhotoshopConnection
ModuleNotFoundError: No module named 'photoshop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1866, 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 "Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop_init
.py", line 42, in
subprocess.run([python_executable, "-m", "pip", "uninstall", "photoshop"], check=True)
^^^^^^^^^^^^^^^^^
NameError: name 'python_executable' is not defined

Cannot import Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop module for custom nodes: name 'python_executable' is not defined
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[comfy_mtb] | INFO -> loaded 70 nodes successfuly
[comfy_mtb] | INFO -> Some nodes (5) could not be loaded. This can be ignored, but go to http://127.0.0.1:8188/mtb if you want more information.

[rgthree] Loaded 38 magnificent nodes.
[rgthree] Will use rgthree's optimized recursive execution.

WAS Node Suite: OpenCV Python FFMPEG support is enabled
WAS Node Suite Warning: ffmpeg_bin_path is not set in Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json config file. Will attempt to use system ffmpeg binaries if available.
WAS Node Suite: Finished. Loaded 211 nodes successfully.

    "The purpose of art is washing the dust of daily life off our souls." - Pablo Picasso

Import times for custom nodes:
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\sdxl_prompt_styler
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Logic
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Eagle-PNGInfo
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials
0.0 seconds (IMPORT FAILED): Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inference-Core-Nodes
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-popup_preview
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyLiterals
0.0 seconds (IMPORT FAILED): Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-image-saver
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-various
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet
0.0 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy
0.4 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
1.1 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture
1.2 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb
2.5 seconds: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui

Starting server

To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json
[comfy_mtb] | WARNING -> Found multiple match, we will pick the first Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\models\upscale_models
['Z:\ComfyUI\ComfyUI_windows_portable\ComfyUI\models\upscale_models', 'Z:\A1111\stable-diffusion-webui\models/ESRGAN', 'Z:\A1111\stable-diffusion-webui\models/RealESRGAN', 'Z:\A1111\stable-diffusion-webui\models/SwinIR']


thanks once again!

Originally posted by @triplediple in #11 (comment)

photoshop awesome plugin issues

hey, when launching comfy ui plugin in ps getting this error in comfy ui :

Error occurred when executing ImageResize+:

'>' not supported between instances of 'str' and 'int'

File "C:\Users\siecz\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\siecz\Documents\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 "C:\Users\siecz\Documents\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\siecz\Documents\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials\essentials.py", line 100, in execute
if multiple_of > 1:
^^^^^^^^^^^^^^^

plugin black window

Hi, I get a black plugin window from photoshop even when I have a drawing on a layer, any ideas? I had to install the extension manually because the app to install it (locally) gave me an error. Seems like the plugin is not interacting with photoshop. The only function that works is txt2img. When I first installed the extension I saw the dolphin once. Comfyui is running but it only generates txt2img. "send to layers" doesn't work.

Capturewww Captureaaa

(IMPORT FAILED) comfyui-photoshop

(IMPORT FAILED) comfyui-photoshop

I've tried reinstalling the node several times but always got the same error in ComfyUI Manager.

run "TRY FIX" in ComfyUI Manager... same issue

run "FIX_Rquierments.bat" and got this error.

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "E:_Generazione Immagini IA\COMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_main
.py", line 22, in
...
...
...
File "E:_Generazione Immagini IA\COMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop\venv\Lib\site-packages\pip_vendor\platformdirs\windows.py", line 4, in
import ctypes
File "ctypes_init
.py", line 8, in
### ImportError: DLL load failed while importing _ctypes: Could not find the specified module.
Requirements installed successfully.

Press a key to continue. . .

But I've all the requirements correctly installed

E:_Generazione Immagini IA\COMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop>pip install pillow
Requirement already satisfied: pillow in c:\users\zoidberg\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (10.1.0)

E:_Generazione Immagini IA\COMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop>pip install asyncio
Requirement already satisfied: asyncio in c:\users\zoidberg\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (3.4.3)

E:_Generazione Immagini IA\COMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-photoshop>pip install websockets
Requirement already satisfied: websockets in c:\users\zoidberg\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (12.0)

There is no change in the image, why is that?

There is no change in the image, why is that?
ComfyUI_temp_eybnl_00003_

ComfyUI_temp_eybnl_00003_

Originally posted by @zxtmzxtm in #33 (comment)

Hi , it may be because you are using too low value for slider , increase it and test it again

Or maybe your workflow is cuttupted

So let me know if it worked for you
Otherwise just send me an image of your workflow

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.