How to make your own custom ComfyUI nodes

preview_player
Показать описание
Learn how to make your own custom ComfyUI nodes and evaluate the other nodes you find online!

0:00 - Intro
0:45 - What does the Image Sizer node do?
2:23 - Requirements and tips
7:58 - Exploring example_node, discovering its interface
45:41 - Building your own custom node
48:47 - How to see your custom node
49:30 - Debugging and troubleshooting
56:18 - Final overview
Рекомендации по теме
Комментарии
Автор

Coming from over 2 decades of coding - I have to say that you have one of the best (and accurate) perspectives on coding that I've come across in a long while. Appreciate you greatly

patMacom
Автор

thank you so much, i was trying to find way develop my own custom nodes and i found this clip. perfect for me

AIAngelGallery
Автор

I like the small bit at the start where you gave tips and encouragement. Im only a few months into it and little hints like that really do help.

HistoryIsAbsurd
Автор

Really liking this so far. I’ve reached the point where I have such specific node needs that only custom can do it. I’ve started small and cobbled together some small nodes but trying to level up. Thanks!

done.
Автор

I have been doing my own nodes in my local, but i find your video still good, thanks a lot for taking efforts for the video... i am too lazy to make something like this, hope you get lots of views and subscribers :)

sidheart
Автор

I would love to see break downs of what the existing nodes actually do. Like going through its code and seeing their input to output explained. Might help gear some ideas on what we could customize, or modify ourselves.

Foolsjoker
Автор

Thanks for this, Cody... I've been wanting to sort cobble my own for a while now, but didn't know where to start. You showed not only where to look but how to nut out what you're looking at. I've written custom stuff for Blender so some of this was basic, but I did watch it all the way through because you did such a good job explaining stuff. That @classmethod stuff also exists in Blender and I never really figured out what it was, exactly. Thanks again - hope you make more videos! Subscribed 😊

robinhahn
Автор

4:00 that's very kind and encouraging! I appreciate that!
You need to explain that the initial file inside a custom node folder should be named "__init__.py" else it will not be recognized by ComfyUI

falconbmstutorials
Автор

That is really nice!! So little on this is out there!! 😊

swannschilling
Автор

Thanks loads for this tutorial. This is literally the only coherent explanation I could find on how to make a custom node. I've taken an introductory python class, so I've written some code myself and even made a couple of really basic one-file programs (mostly just complicated specialized calculators), but trying to decipher the example_node.py.example just gave me a headache. I couldn't figure out what the code was doing because I didn't know what ComfyUI was doing outside of that one file, and following the directions in the example was like trying to have a conversation in Spanish after spending a month using Duolingo; I could vaguely see what it was supposed to do in some chunks, but I was missing important pieces and couldn't put the whole thing together.

I still don't feel like I can breeze through this, but I definitely feel like you've given me enough of a shove in the right direction that I can probably get it to do what I want with some experimentation. I also never knew GPT could give me coding advice, so I'm definitely going to use that now. Thanks again man.

Vhourgannox
Автор

You are well done. Where should I put the my file(new node) itself so that the Comfy can take it?

TheMaxvin
Автор

Nice video thank you for taking the time to do this.

glibsonoran
Автор

how can I call other developed nodes by community in my own node scripts?

reginaldli
Автор

Thanks Cody. Very good tutorial. Any idea how to attach a debugger from VScode and set breakpoints?

certainframe
Автор

Nice, maybe I'll make some custom nodes now. So far I've just edited some existing ones to my liking. By the way George Boole was of course an Englishman as the name already suggests, not a French guy.

gordonbrinkmann
Автор

I have something useful for you to use your programming skills to produce, a GUI for making CompyUI custom nodes. Whoever made Comfy should have made one but they didn't. You should be able to bring up a blank node and then have a thing for putting inputs and outputs on it and titling the node and labeling the various parts by simply typing them into a box, and eventually exporting the node as a package.

There's a program called Channer, which seems to be what Comfy was based on. In Chainner you can browse to, and load into a node, models in different formats, like pth, onnx and ones that have param and bin sets, like in RealESRGAN portable. You can't do that in Comfy, to my knowledge. I can't load a RealESRGAN model into Comfy but I can in Chainner, I'd like to have a Comfy node to do that. How could a Chainner node be "ported", or whatever you would call it, over to being a Comfy node? That would be a handy converter to have. You can do a lot of things in Chainner, it's a very extensive image program. What you could do is make GUI that looks like Chainner, or Comfy, but it's just a node editing GUI. Something about Chainner, it's not on a web browser, it has its own screen.

MetalMakeover
Автор

I believe this is going to be very helpful to me when I start digging into it-- Thank you!
This question misses the point of your broader message entirely, I understand, but I tried to use the node you created and realized that my latent image node does not have a height or width inputs. Am I using the wrong latent image node, or has ComfyUI updated since you created this video three weeks ago? Not a huge issue as it is, like I say, tangential to your broader purpose, but I just found that curious.

GREATMAGICIANLYNEY
Автор

Great content, highly raccomented tutorial.
However if you are already a programmer you must listen to this at 2x because it is a bit too "for beginners"

blender_wiki
Автор

Can you please teach us how to download image from ComfyUi using api.

yadav-r
Автор

hi Cody.. you need a better microphone. whatever rode mics would be fine... Since i am interested in coding i am subscribing to suport you...Good luck with your streams... ❤❤🌹🌹

buxsin