1. Complicated front end UIs are built for Stable Diffusion 2. Comfyui is built as a node-based alternative for better control and complex workflows 3. Use comfyui as the backend for a new, complicated front end UI We've gone full circle lol
@@zachzimmermann5209lol that’s where you don’t understand. Using comfy as a backend for an easy to use, simple and clean frontend UI. Circle is broken now ;)
Someone should make a mobile app, which users set up with their own comfy URL and workflow a then provides simple UI to input images from the phone for inpainting or other stuff, using this API.
Damn you can't Imagine how much i love your Voice + Music in the background! I've never felt so good while i watched a Video. You have a awesome soothing voice! Thanks for this Video
Thanks for this! It definitely put me on the right path. Only to thank you, a little tip: changing get_image method to def get_image(filename, subfolder, folder_type): data = {"filename": filename, "subfolder": subfolder, "type": folder_type} url_values = urllib.parse.urlencode(data) img_data = requests.get("{}/view?{}".format(server_address, url_values)).content return img_data and your code to ... for node_id in images: for image_data in images[node_id]: with open(f"{args.dest}/{filename}", 'wb') as handler: handler.write(image_data) ... metatags are preserved and dragging a file into ComfyUI loads the workflow and seeds data.
Thanks for the discovery, I program Python and this will be useful. I'm thinking on creating a script you can launch while playing roleplaying games so it generates portraits of NPCs on the fly. Can't wait to see those ideas you have! I've yet to try the API scripting, but one question that comes to mind is the use of custom nodes. It is actually something that I don't have a good grasp using standard comfyUI. My doubt might be good content for a noob friendly short, maybe, and it is as follows: Theoretically you can import a workflow from an image because it is saved in the metadata. What is the behavior in the input nodes when you import this way? Does the prompt come filled? What happens to nodes that import images which, clearly, don't exist in your machine? And in the case of API formatted workflows, is there a way to specify the new nodes? Maybe I'm overthinking, but my logic here is that custom nodes are analogous to importing libraries when programming: you have to hard-code the import at the beginning.
Hi, sorry for the late reply, I think you're mixing up the information a bit :D The workflow that's embedded in the image is a normal workflow (not in API format) and when you import it, comfyui will tell you if any nodes are missing and yes, it will fill the prompt like the last time you saved it. As for adding new nodes to an API-formatted workflow, it is possible but you need to understand how comfyui works and manually create the link between input and output! Yes, custom nodes are in most cases literally a python library, but the syntax you have to write to use them is quite complex if you don't want to use the ComfyUI GUI xD Bdw I think your idea is great though!
@@DreamingAIChannel Thanks! My doubt was if you can program an API workflow with custom nodes. But probably there's a way to force their installation anyway.
@@pericoel21 ohh! sure, you can do that, but I'm not sure about the forced installation process. As far as I know, the only method is to install the ComfyUI manager and do it from the GUI. When you import the workflow with custom nodes you don't have, use the 'Install Missing Custom Nodes' function. This will bring up a view where you can install the missing node by clicking 'install'. This is because, unlike Python libraries where you have package managers like 'pip', there's no equivalent in ComfyUI yet. The manager is the closest thing to 'pip' in this case.
Traceback (most recent call last):
File "D:\BaiduSyncdisk\Proceduralization\default\4comfyui\batch_test0621.py", line 18, in
prompt_workflow = json.load(open('D:\\BaiduSyncdisk\\Proceduralization\\default\\4comfyui\\workflow_api.json'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "json\__init__.py", line 293, in load
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 479: illegal multibyte sequence
Very easy and useful to understand. Thank you!
Now, let's put this into a nice Frontend GUI :)
1. Complicated front end UIs are built for Stable Diffusion
2. Comfyui is built as a node-based alternative for better control and complex workflows
3. Use comfyui as the backend for a new, complicated front end UI
We've gone full circle lol
@@zachzimmermann5209lol that’s where you don’t understand. Using comfy as a backend for an easy to use, simple and clean frontend UI. Circle is broken now ;)
can you update with FLUX?
Someone should make a mobile app, which users set up with their own comfy URL and workflow a then provides simple UI to input images from the phone for inpainting or other stuff, using this API.
There exist several.
@@mstew8386
can you direct to a few?
@@mstew8386 like? Can you name any examples of simple UIs and poassibly endponints?
It seems not?@@mstew8386
Working on already 😉
kill the bg music
Damn you can't Imagine how much i love your Voice + Music in the background! I've never felt so good while i watched a Video. You have a awesome soothing voice! Thanks for this Video
❤️
Is there anyway to connect via Discord or something else? :)@@DreamingAIChannel
@@DreamingAIChannel Which ai system did you use for voice cloning and generation?
is possible to make comfyui into telegram bot? i want to make telegram bot wich it has face swap feature
Hey, I am getting error - ERROR: No matching distribution found for websockets-client
Nice Explanation. Where you able to download a video (from a video workflow) to a user specific folder ?
That was a great explanation. How can I go about inpainting using two images: the original image and the mask data?
Thanks for this! It definitely put me on the right path. Only to thank you, a little tip: changing get_image method to
def get_image(filename, subfolder, folder_type):
data = {"filename": filename, "subfolder": subfolder, "type": folder_type}
url_values = urllib.parse.urlencode(data)
img_data = requests.get("{}/view?{}".format(server_address, url_values)).content
return img_data
and your code to
...
for node_id in images:
for image_data in images[node_id]:
with open(f"{args.dest}/{filename}", 'wb') as handler:
handler.write(image_data)
...
metatags are preserved and dragging a file into ComfyUI loads the workflow and seeds data.
Please show how we can link comfy to telegram bot
Just remove the piano track, very distracting.
This is soectacular
lol your voice is so good that i cant tell if its also AI 😅
oh it actually is ai 😆
yep!😋
Very useful. Learning some advanced concepts from this channel. This can be very useful in building custom apps. Thank you 👏
Thanks for the discovery, I program Python and this will be useful. I'm thinking on creating a script you can launch while playing roleplaying games so it generates portraits of NPCs on the fly. Can't wait to see those ideas you have!
I've yet to try the API scripting, but one question that comes to mind is the use of custom nodes. It is actually something that I don't have a good grasp using standard comfyUI. My doubt might be good content for a noob friendly short, maybe, and it is as follows: Theoretically you can import a workflow from an image because it is saved in the metadata. What is the behavior in the input nodes when you import this way? Does the prompt come filled? What happens to nodes that import images which, clearly, don't exist in your machine? And in the case of API formatted workflows, is there a way to specify the new nodes?
Maybe I'm overthinking, but my logic here is that custom nodes are analogous to importing libraries when programming: you have to hard-code the import at the beginning.
Hi, sorry for the late reply, I think you're mixing up the information a bit :D
The workflow that's embedded in the image is a normal workflow (not in API format) and when you import it, comfyui will tell you if any nodes are missing and yes, it will fill the prompt like the last time you saved it.
As for adding new nodes to an API-formatted workflow, it is possible but you need to understand how comfyui works and manually create the link between input and output!
Yes, custom nodes are in most cases literally a python library, but the syntax you have to write to use them is quite complex if you don't want to use the ComfyUI GUI xD
Bdw I think your idea is great though!
@@DreamingAIChannel Thanks! My doubt was if you can program an API workflow with custom nodes. But probably there's a way to force their installation anyway.
@@pericoel21 ohh! sure, you can do that, but I'm not sure about the forced installation process. As far as I know, the only method is to install the ComfyUI manager and do it from the GUI. When you import the workflow with custom nodes you don't have, use the 'Install Missing Custom Nodes' function. This will bring up a view where you can install the missing node by clicking 'install'. This is because, unlike Python libraries where you have package managers like 'pip', there's no equivalent in ComfyUI yet. The manager is the closest thing to 'pip' in this case.