SD1.5 - ComfyUI in Photoshop
4.8
19 reviewsDescription
Table of Contents
Photoshop Enters a New Universe 🚀
Welcome to ComfyUI for Photoshop plugin repository!🎨 This plugin integrates with an AI-powered image generation system to enhance your Photoshop experience with advanced features.
🛠️ Install Photoshop Plugin:
1- Install the plugin from 🔗THIS LINK (or, install it locally using 📄This .CCX file, then set it up with ZXP UXP Installer)
2- open comfyUi manager and press UpdateAll
3- load the Workflow and install all missing nodes
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
🗃️ Required Files for Workflow
1. Check points: (Place in ComfyUi/Models/Checkpoints folder)
• Default: EpicRealism Natural Sin RC1 VAE ⬇️
• In-Painting: EpicRealism pure Evolution V5-inpainting ⬇️
2. Loras (Place in ComfyUi/Models/Loras folder)
• Detailer Lora: Doownload ⬇️
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
Node Diagram
Discussion
Bit stumped with an error for the first time ever. any help is appreciated.
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: ^^^^^^^^^^^^^^^
could you please send an image of it on this link:
https://github.com/NimaNzrii/comfyui-photoshop/issues/new
i will make a video for you to how to fix it
the problem is not from photoshop plugin
its from ImageResize+ node
can do. submitted https://github.com/NimaNzrii/comfyui-photoshop/issues/26
Thank you for all the help. I narrowed it down to that. Expanded that section to nodes. But could not find a resolution.
Download The workflow again and the error Will fix
just updated now!
- I have followed the instructions, downloadedd the plugin to photoshop, enabled remote connection, installed the necessary models and missing nodes, however it seems there is an error with the actual custom node....not sure what the issue is
When loading the graph, the following node types were not found:
- 🔹Photoshop ComfyUI Plugin
- 🔹SendTo Photoshop PluginNodes that have failed to load will show as red on the graph.
Hi this problem has been fixed, update the comfyui-photoshop node and enjoy❤️
!!! Exception during processing!!! expected size to be one of int or Tuple[int] or Tuple[int, int] or Tuple[int, int, int], but got size with types [<class 'str'>, <class 'int'>]
now i got this ;D
updated 1 min ago
(Edited)Download The workflow again and the error Will fix
just updated now!
(IMPORT FAILED) comfyui-photoshop
I've try to reinstall the node several times but i've always get same error in ComfyUI Manager.
Can you help me? thx
could you please send your comfyui log file here:
https://github.com/NimaNzrii/comfyui-photoshop/issues/new
Hi this problem has been fixed, update the comfyui-photoshop node and enjoy❤️
Seems to be installed fine, but input from PS only works on the first generation and then stops updating. Any thoughts? Seems like a simple fix
Could you please test it again and sebd the log file here?: https://github.com/NimaNzrii/comfyui-photoshop/issues/new
Amazing 🤩
Error occurred when executing KSampler: 'NoneType' object has no attribute 'shape' 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\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\nodes.py", line 1344, in sample return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1314, in common_ksampler samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control_reference.py", line 47, in refcn_sample return orig_comfy_sample(model, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\sample.py", line 37, in sample samples = sampler.sample(noise, positive, negative, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 761, in sample return sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_image=latent_image, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 663, in sample return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 650, in sample output = self.inner_sample(noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 629, in inner_sample samples = sampler.sample(self, sigmas, extra_args, callback, noise, latent_image, denoise_mask, disable_pbar) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 534, in sample samples = self.sampler_function(model_k, noise, sigmas, extra_args=extra_args, callback=k_callback, disable=disable_pbar, **self.extra_options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\k_diffusion\sampling.py", line 583, in sample_dpmpp_2m denoised = model(x, sigmas[i] * s_in, **extra_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 272, in __call__ out = self.inner_model(x, sigma, model_options=model_options, seed=seed) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 616, in __call__ return self.predict_noise(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 619, in predict_noise return sampling_function(self.inner_model, x, timestep, self.conds.get("negative", None), self.conds.get("positive", None), self.cfg, model_options=model_options, seed=seed) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 258, in sampling_function out = calc_cond_batch(model, conds, x, timestep, model_options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 192, in calc_cond_batch c['control'] = control.get_control(input_x, timestep_, c, len(cond_or_uncond)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\controlnet.py", line 184, in get_control control = self.control_model(x=x_noisy.to(dtype), hint=self.cond_hint, timesteps=timestep.float(), context=context.to(dtype), y=y) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1511, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 1520, in _call_impl return forward_call(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\comfy\cldm\cldm.py", line 295, in forward assert y.shape[0] == x.shape[0] ^^^^^^^
Please first select Update All on your manager
and then make sure you have enabled only one Render gorups ( green groups )
Only one
I'm not sure if the error is the same but error appears on every render groups except simple img2img
Hi Nima, could you please add a SDXL version of your workflow, at least please recommend a SDXL checkpoint and correspondings controlnet models & loras, would be nice :)
it's a little bit hard for me because i have 6gb vram-_- but i will try it 100%
Error occurred when executing CheckpointLoaderSimple: 'NoneType' object has no attribute 'lower' File "L:\ComfyUI-aki\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "L:\ComfyUI-aki\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 "L:\ComfyUI-aki\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 "L:\ComfyUI-aki\ComfyUI-aki-v1.3\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 "L:\ComfyUI-aki\ComfyUI-aki-v1.3\comfy\sd.py", line 446, in load_checkpoint_guess_config sd = comfy.utils.load_torch_file(ckpt_path) File "L:\ComfyUI-aki\ComfyUI-aki-v1.3\comfy\utils.py", line 13, in load_torch_file if ckpt.lower().endswith(".safetensors"):
please download the requierments
make sure to put the checkpoint file inside of ComfyUi/Models/Checkpoints folder
Error occurred when executing KSampler: KSampler.sample() missing 4 required positional arguments: 'seed', 'steps', 'sampler_name', and 'scheduler' File "D:\AI Programs\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\AI Programs\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:\AI Programs\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
Please first select Update All on your manager
and then make sure you have enabled only one Render Gorups ( green groups )
Only one
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 File "/Users/christopheregbutu/AI/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/christopheregbutu/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/christopheregbutu/AI/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/christopheregbutu/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 33, in PS_Execute self.loadConfig() File "/Users/christopheregbutu/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 75, in loadConfig self.loadConfig(retry_count + 1) File "/Users/christopheregbutu/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 75, in loadConfig self.loadConfig(retry_count + 1) File "/Users/christopheregbutu/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 75, in loadConfig self.loadConfig(retry_count + 1) [Previous line repeated 1 more time] File "/Users/christopheregbutu/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 77, in loadConfig raise Exception("Failed to load directory after 5 attempts. \n 🔴 Make sure you have installed and started the Photoshop Plugin Succesfully. \n 🔴 otherwise you can restart your photosop and your plugin to Fix this problem")
Hi Nima. This is pretty amazing. Do you know if it's possible to use with an instance of Comfy I'm running on RunPods or does it only work with a local installation?
Bonjour,
Merci et bravo pour ce plugin !
Sous ComfyUI,
🔹 Photoshop RemoteConnection fonctionne très bien.
🔹Photoshop ComfyUI Plugin et 🔹SendTo Photoshop Plugin
n'arrivent pas à se connecter.
Sous Photoshop,
🔹ComfyUI for adobe Photoshop est totalement aveugle et ne peux charger aucun modèle.
Par ailleurs, il semble que 🔹Preview Pop-up fonctionne exclusivement sous Windows et pas sur Mac.
Merci d'avance pour votre aide.
Hello,
Thank you and congratulations for this plugin!
Under ComfyUI,
🔹 Photoshop RemoteConnection works very well.
🔹Photoshop ComfyUI Plugin and 🔹SendTo Photoshop Plugin
are unable to connect.
Under Photoshop,
🔹ComfyUI for adobe Photoshop is totally blind and cannot load any templates.
Also, it seems that 🔹Preview Pop-up works exclusively on Windows and not on Mac.
Thanks in advance for your help.
Translated with DeepL.com (free version)
ZXP/ UXP inst ---- .ccx not installed PS2024 =(
err: the extension cannot be installed at moment
Unknown UPIA error
W11 , PS 25.3.1
is there another way to connect with photoshop?
the rest was installed normally
Thank you!
(Edited)there is 3 way to install
none of them worked for you?
Creative Cloud doesn’t work in Russia due to sanctions, and in general there’s a problem with licensed software, so these methods don’t work
you have to unzip .ccx file with 7z app, and then put files in to C:\Users\Username\AppData\Roaming\Adobe\UXP\Plugins\External\NewPluginName\
works fine to me
Can you please help me with this issue? Thanks in advance
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 File "/Users/tsevis/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/tsevis/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/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/tsevis/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 33, in PS_Execute self.loadConfig() File "/Users/tsevis/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 75, in loadConfig self.loadConfig(retry_count + 1) File "/Users/tsevis/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 75, in loadConfig self.loadConfig(retry_count + 1) File "/Users/tsevis/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 75, in loadConfig self.loadConfig(retry_count + 1) [Previous line repeated 1 more time] File "/Users/tsevis/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 77, in loadConfig raise Exception("Failed to load directory after 5 attempts. \n 🔴 Make sure you have installed and started the Photoshop Plugin Succesfully. \n 🔴 otherwise you can restart your photosop and your plugin to Fix this problem")
Is it normal to get lower resolution after inpainting?
HI,I have subscribed to your channel, installed successfully according to your way, but an error occurred, how should I solve it?
Error occurred when executing ImageResize+: Input Error: Only 3D, 4D and 5D input Tensors supported (got 4D) for the modes: nearest | linear | bilinear | bicubic | trilinear | area | nearest-exact (got upscale if smaller) File "E:\comfyui\comfyui\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\comfyui\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 "E:\comfyui\comfyui\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\comfyui\comfyui\ComfyUI\custom_nodes\ComfyUI_essentials-main\essentials.py", line 91, in execute outputs = F.interpolate(outputs, size=(height, width), mode=interpolation) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\comfyui\comfyui\python_embeded\Lib\site-packages\torch\nn\functional.py", line 4088, in interpolate raise NotImplementedError(
Didn't work! Plugin in Photoshop is running, comfyui node not!
/Users/xxx/Documents/Stability Matrix/Packages/ComfyUI/custom_nodes/comfyui-photoshop/Backend.py: /Users/xxx/Documents/Stability: No such file or directory
Traceback (most recent call last):
File "/Users/xxx/Documents/Stability Matrix/Packages/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/xxx/Documents/Stability Matrix/Packages/ComfyUI/nodes.py", line 1879, in load_custom_node
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/xxx/Documents/Stability Matrix/Packages/ComfyUI/custom_nodes/comfyui-photoshop/__init__.py", line 68, in <module>
imported_module = importlib.import_module(".{}".format(module_name), __name__)
File "/Users/xxx/Documents/Stability Matrix/Assets/Python310/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/xxx/Documents/Stability Matrix/Packages/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop-noplugin.py", line 11, in <module>
subprocess.run(["python", "-m", "pip", "uninstall", "photoshop"], check=True)
File "/Users/xxx/Documents/Stability Matrix/Assets/Python310/lib/python3.10/subprocess.py", line 503, in run
with Popen(*popenargs, **kwargs) as process:
File "/Users/xxx/Documents/Stability Matrix/Assets/Python310/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Users/xxx/Documents/Stability Matrix/Assets/Python310/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'
Using Stability Matrix on a MacStudio M1.
So cool! Thank you for this great work!
Any thoughts why "Send to Layer" and Inpaint mode don't work?
Maybe my AMD with zluda could be the reason or I don't know
Hi, when I install everything that follows your video on Youtube, but it can't show anything in Photoshop.
I don't know what problem it has.
Please can you tell me how to fix it?
Thank you very much.
Sorry to bother you but met this issue here.
https://github.com/NimaNzrii/comfyui-photoshop/issues/70
It seems that PS plugin cannot read the data from comfyUI or "Output node"
Image could generate in ComfyUI but cannot sync to PS canvas. Please can you tell us how to fix it? Thank you!
Running into the Imageresize error. I tried doing a reinstall like one did in the issue list, but it is still giving me the error.
Any ideas?
_PS_ Photoshop node added('127.0.0.1', 49385)
got prompt
Failed to validate prompt for output 1661:
* ImageResize+ 1680:3:
- Value not in list: method: 'True' not in ['stretch', 'keep proportion', 'fill / crop', 'pad']
* ImageResize+ 1680:4:
- Value not in list: method: 'True' not in ['stretch', 'keep proportion', 'fill / crop', 'pad']
Output will be ignored
Failed to validate prompt for output 1428:
* ImageResize+ 1031:
- Value not in list: method: 'False' not in ['stretch', 'keep proportion', 'fill / crop', 'pad']
Output will be ignored
Failed to validate prompt for output 1157:
Output will be ignored
[rgthree] Using rgthree's optimized recursive execution.
!!! Exception during processing!!! 'bool' object has no attribute 'startswith'
Traceback (most recent call last):
File "E:\AI Stuff\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI Stuff\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 "E:\AI Stuff\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 "E:\AI Stuff\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials\image.py", line 288, in execute
elif method.startswith('fill'):
^^^^^^^^^^^^^^^^^
AttributeError: 'bool' object has no attribute 'startswith'
Hi - your plugin looks awesome. I just don't get it working. I have all bits and pieces ok in comfyui and I have got your plugin installed in photoshop. Pressing the render in the plugin does not do anything though. In comfy when I "Queue Prompt" I get this:
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 File "/Users/kaisairanen/AI/ComfyUI/execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/kaisairanen/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/kaisairanen/AI/ComfyUI/execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/kaisairanen/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 33, in PS_Execute self.loadConfig() File "/Users/kaisairanen/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 75, in loadConfig self.loadConfig(retry_count + 1) File "/Users/kaisairanen/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 75, in loadConfig self.loadConfig(retry_count + 1) File "/Users/kaisairanen/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 75, in loadConfig self.loadConfig(retry_count + 1) [Previous line repeated 1 more time] File "/Users/kaisairanen/AI/ComfyUI/custom_nodes/comfyui-photoshop/node-Photoshop.py", line 77, in loadConfig raise Exception("Failed to load directory after 5 attempts. \n 🔴 Make sure you have installed and started the Photoshop Plugin Succesfully. \n 🔴 otherwise you can restart your photosop and your plugin to Fix this problem")
ComfyUi and photoshop do not seem to communicate. Is there something I have missed? Restarting Photoshop does not do the trick. I'm running on a MacBook Pro M1-processor OS Sonoma 14.2.1
Please add UNICODE support so that you can automatically translate promt into other languages through embedding the translator node.
I need help with this error,
415 | NimaNzrii | (IMPORT FAILED) comfyui-photoshop | Photoshop node inside of ComfyUi, send and get data from Photoshop | 146 | 2024-05-22 |
i would be really appreciate it if you can lend a hand. Thnx
I have error when try to inpaint.
New version:
workflow-comfyui-in-photoshop-lreWarJbqiYPcDXnD8hh-spoonbill_hospitable_34-openart.ai
Error occurred when executing ImageResize+:
'bool' object has no attribute 'startswith'
File "E:\SD\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "E:\SD\StabilityMatrix-win-x64\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:\SD\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "E:\SD\StabilityMatrix-win-x64\Data\Packages\ComfyUI\custom_nodes\ComfyUI_essentials\image.py", line 288, in execute
elif method.startswith('fill'):
This worked for me:
Edit the file <your_path>\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials\image.py
class ImageResize:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"image": ("IMAGE",),
"width": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }),
"height": ("INT", { "default": 512, "min": 0, "max": MAX_RESOLUTION, "step": 8, }),
"interpolation": (["nearest", "bilinear", "bicubic", "area", "nearest-exact", "lanczos"],),
"method": ("STRING", ["stretch", "keep proportion", "fill / crop", "pad"],),
Above lines 233 to 242 are shown for context. It is only the last line that needs to change, it needs to have the type "STRING", added to the value.
Error occurred when executing ImageResize+: 'bool' object has no attribute 'startswith' File "C:\AI\Data\Packages\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\AI\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 "C:\AI\Data\Packages\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "C:\AI\Data\Packages\ComfyUI\custom_nodes\ComfyUI_essentials\image.py", line 288, in execute elif method.startswith('fill'):
Is there any solution to the error? There was no problem when I installed and used it alone some time ago. While installing and using StabilityMatrix, the above problem occurred, so I tried reinstalling it 5 times now, but it did not solve the problem. Has anyone solved the same error as me?
(Edited)please help - i cant output
[rgthree] Using rgthree's optimized recursive execution.
Error in is_changed_file for E:\Comfy Portable\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\input\PS_canvas.png: [Errno 2] No such file or directory: 'E:\\Comfy Portable\\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\\ComfyUI_windows_portable\\ComfyUI\\input\\PS_canvas.png'
Error in is_changed_file for E:\Comfy Portable\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\input\PS_mask.png: [Errno 2] No such file or directory: 'E:\\Comfy Portable\\new_ComfyUI_windows_portable_nvidia_cu121_or_cpu\\ComfyUI_windows_portable\\ComfyUI\\input\\PS_mask.png'
Prompt executed in 0.00 seconds
Hello, after I updated to the latest version, the plug-in no longer works. After clicking Run, the screen in the plug-in does not respond. The version before June 8th can run correctly, but this version cannot be used after the update. How can I solve this problem?
My comfyUI is missing the most important node that I cannot find .. Photoshop ComfyUI Plugin
same here . I can't find it in comfy manager , can anyone do a recheck
I think you can use Git to install it, not from comfyui manager
you can install Git from https://git-scm.com/ to your computer
and then, go to the "ComfyUI_windows_portable\ComfyUI\custom_nodes" floder, and type "cmd" to run terminal
type "git clone https://github.com/NimaNzrii/comfyui-photoshop.git " in the terminal windows
when finish clone, you can find "comfyui-photoshop" floder in custom_nodes
then you can start your comfyui and add the node in it
(Edited)When loading the graph, the following node types were not found:
- 🔹SendTo Photoshop Plugin
- 🔹Photoshop ComfyUI PluginNodes that have failed to load will show as red on the graph.
100% updated
100% all models installed
Error occurred when executing Float:
Invalid value provided for FLOAT
File "D:\AICG\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\AICG\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:\AICG\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:\AICG\ComfyUI-aki-v1.3\custom_nodes\ComfyLiterals\nodes.py", line 57, in to_float
raise Exception("Invalid value provided for FLOAT")
Hello, Nima Nazari. I just started learning COMFYUI. I saw your PS-COMFYUI workflow and I think it is very good. However, I have installed it from 1.4 to 1.6.5 and followed your deployment process. However, it always gets stuck at the sampler. I don't know why. Only the sinple fast upscale can run. Others are stuck at the sampler. Hope you can help me. Thank you.
Im getting the error "No Data" even though I connected it to photoshop.
It does not seem to recognise what I write or import in PS
Its not connecting for me, any suggestions?
Don't comment here!
i cant get the notification, sorry
please make an issue tab in this link:
https://github.com/NimaNzrii/comfyui-photoshop/issues
Thanks, seems all is working except from the MTB nodes. Neither 'Try fix' nor 'Uninstall' and reinstall solves the problem. Can you help me out? Would realy appreciate it.
Hello, thank you for this amazing work. I have a weird bug and can't seem to make it work.
It says in the terminal tht PS not connected.
And thus can' load the models inside of photoshop. Any idea of what might happen ? Tried reintall, tried another bunch of stuff but couldn't make it work. Thx for your time appreciate you !! :)
Don't comment here!
i cant get the notification, sorry
please make an issue tab in this link:
https://github.com/NimaNzrii/comfyui-photoshop/issues
how can i solve this problem?It shows that AdvancedControlNetApply.apply_controlnet() got an unexpected keyword argument 'vae_optional'
Hello Nima, I appreciate your work and your intelligence, you have opened the doors for "independent designers"! My installation is all correct, but I still haven't been able to work with layers in Photoshop, of the images created in ConfyUI. Note: I use a very weak card, Gforce GTX 1650. Thanks Nima!
Author isn't getting messages from here anymore, go to his GitHub repo and post an issue: https://github.com/NimaNzrii/comfyui-photoshop/issues
Good afternoon, I connected everything As you told me according to the instructions and all that, the Photoshop plugin has loaded as well and is working Comfortably. But there is one problem.The picture does not load into the Comfy itself. Writes No Data. That is, as if the image is not loaded from Photoshop, no matter what I do, the generation takes place. But the selected fragment, comfy, does not see it. I do not know what to do. 3 hours of time spent, thanks for the reply. PS . The problem seems to be the following, Comfy does not see the ACNE_Advanced Control Net Apply and ScaledSoftControlNetWeights nodes, please tell me where to get them. Since in the instal manager, comfy does not see, neither does google
Missing Node Types
When loading the graph,the following node types were not found
ACN AdvancedControlNetApply
ScaledSoftControlNetWeights
SimpleMath+
was perfect for me until it doesn't work with new version of comfyui.
Model in folder 'loras' with filename 'lcm\SD1.5\pytorch_lora_weights.safetensors' not found.
did you solved that problem?
The error popup displays the message 'missing: workflowKsampler config.' I did not find this in the node manager. Where can I find it, and how can I resolve this error?
Model in folder 'loras' with filename 'lcm\SD1.5\pytorch_lora_weights.safetensors' not found.
运行的时候提示这个,请问是是什么问题?pytorch_lora_weights.safetensors 这个模型已经安装了。可是不知道怎么回事一直提示找不到。是放在Lora文件里的。
你解决这个问题了么,兄弟
我的工作流设置和你的一样,而且别的模块都正常使用,就是img2img和txt2img不能用。这个两个模块的KSampler中steps cfg sampler_name提示错误。
啊,弄好了。语言要改成英文就正常了,用中文的话KSampler会报错。
Loading aborted due to error reloading workflow data
TypeError: Cannot read properties of undefined (reading 'uuid')
TypeError: Cannot read properties of undefined (reading 'uuid')
at onRemoved (http://127.0.0.1:8188/extensions/comfy_mtb/note_plus.js:514:37)
at NotePlus.onRemoved (http://127.0.0.1:8188/assets/index-Hblmz8kc.js:172579:23)
at LGraph2.clear (http://127.0.0.1:8188/assets/index-Hblmz8kc.js:90566:26)
at app.graph.clear (http://127.0.0.1:8188/extensions/ComfyUI-Manager/comfyui-manager.js:1450:15)
at LGraph2.configure (http://127.0.0.1:8188/assets/index-Hblmz8kc.js:91575:25)
at LGraph$1.configure (http://127.0.0.1:8188/assets/index-Hblmz8kc.js:223992:26)
at LGraph.configure (http://127.0.0.1:8188/extensions/ComfyUI-Custom-Scripts/js/reroutePrimitive.js:14:29)
at ComfyApp.loadGraphData (http://127.0.0.1:8188/assets/index-Hblmz8kc.js:224234:18)
at async app.loadGraphData (http://127.0.0.1:8188/extensions/ComfyUI-Manager/components-manager.js:774:9)
at async reader.onload (http://127.0.0.1:8188/assets/index-Hblmz8kc.js:224525:11)This may be due to the following script:
/extensions/comfy_mtb/note_plus.js
··································
········
As a layman, I find it very difficult to deal with this issue. I wonder if anyone else has encountered a similar problem.
help plese
test
Node Details
Primitive Nodes (42)
Anything Everywhere (9)
Anything Everywhere? (16)
Fast Groups Muter (rgthree) (2)
Label (rgthree) (3)
Note Plus (mtb) (2)
Reroute (rgthree) (6)
workflow/Ksampler Config (4)
Custom Nodes (69)
ComfyUI
- VAEEncode (2)
- ControlNetLoader (3)
- CheckpointLoaderSimple (2)
- ControlNetApplyAdvanced (2)
- CLIPTextEncode (12)
- KSampler (6)
- VAEDecode (6)
- DifferentialDiffusion (1)
- InpaintModelConditioning (1)
- EmptyLatentImage (2)
- VAEEncodeForInpaint (1)
- LoraLoader (6)
- ImageUpscaleWithModel (1)
- UpscaleModelLoader (1)
- GrowMask (1)
- PreviewImage (2)
- SimpleMath+ (1)
- InpaintPreprocessor (1)
- AIO_Preprocessor (2)
- ACN_AdvancedControlNetApply (1)
- ScaledSoftControlNetWeights (1)
- 🔹Photoshop ComfyUI Plugin (7)
- 🔹SendTo Photoshop Plugin (7)
Model Details
Checkpoints (2)
epicrealism_naturalSinRC1VAE.safetensors
epicrealism_pureEvolutionV5-inpainting.safetensors
LoRAs (6)
lcm\SD1.5\pytorch_lora_weights.safetensors