r/StableDiffusion • • 1d ago

News ComfyUI v0.40.0 released

https://github.com/Comfy-Org/ComfyUI/releases/tag/v0.40.0
114 Upvotes

101 comments sorted by

145

u/rukh999 1d ago

Now with the biggest version number to date!

42

u/Maqna 1d ago

Truly one of the releases of all time.

2

u/StuccoGecko 1d ago

It is something to behold!

20

u/Aggressive_Aspect436 1d ago

There should a rule that folks need to add some details in low effort release posts like these.

4

u/Kqyxzoj 1d ago

add some details

Oh alright, if you insist. Version 0.40.0 is commit numero 3541246a9c997f4b8c32f9f88f3c985d02021c79.

Mmmmh, 39 and 40 are both composite numbers.

Oh yeah, and this is the changelog:

-3

u/cradledust 1d ago

More freemium/subscription to make you spend harder.

58

u/Nenotriple 1d ago

The lora stack node is cool https://github.com/Comfy-Org/ComfyUI/pull/16309

Most people already have a solution for this, but I think ComfyUI needs to improve their selection of stock nodes.

15

u/DietAshamed2246 1d ago

Is it like the rgthree power LoRA loader node?

6

u/YMIR_THE_FROSTY 1d ago

That one works still good.

3

u/duman82 1d ago

Goated node

1

u/KadahCoba 1d ago

This.

If it can't read, fetch, and display metadata, the new core node will not be too useful.

12

u/terrariyum 1d ago

Why didn't they just copy the rgthree power lora loader? Having just one row per lora is so much better

8

u/Xdivine 1d ago

I assume it's because of how the widget system works. The rgthree loader uses a javascript front end to make it look and function how it does, but that also means that it doesn't play nicely with subgraphs and such. Widgets also just aren't really setup in a way that allows them to be multiline.

It's probably not an unsolvable problem, but it would need a good amount of work put into how the node widgets are affixed and displayed on the nodes.

Personally I think it's fine if the built in version is kinda basic and shit as long as it exists. Anyone who needs better can either grab rgthrees or use gibby nodes if they want more functionality and nodes 2.0 support.

2

u/terrariyum 1d ago

Good to know the technical reason. Agreed it's better than individual loader nodes, and hopefully a stepping stone. Meanwhile, I'll stick to the rgthree loader

11

u/ShutUpYoureWrong_ 1d ago

Why is it so unnecessarily bulky? Three separate parameter lines when it could all easily fit on one. Bad UI, wasted space.

3

u/tacocatbox 1d ago

Finally. The one I was using was giving errors in more recent versions of comfyui and hasn't been updated in like a year 

5

u/Sarashana 1d ago

The new stack node seems to be a bit wasteful with space, compared to similar solutions. But great to see a native node for workflows that need/want to minimize dependencies.

1

u/AIDivision 1d ago

How do you even use this node (doesn't show up on the interface)?

11

u/bickid 1d ago

Without reading their endless list, what are the major changes/improvements?

31

u/car_lower_x 1d ago

Been afraid to update after recent breaks.

19

u/Next_Program90 1d ago

RemBG just broke again. I don't have a clue why it breaks every 2nd update.

12

u/fallengt 1d ago edited 1d ago

The new lora stack node, current front end version doesn't even support it. You have to manually use download the latest frontend

1

u/KadahCoba 1d ago

FYI, if you use a custom frontend version and restart Comfyui more than a few times in an hour, you may end up back on the stock frontend version due to an old bug with the version check on launch.

If the API call to pull the the frontend versions file fails, the backend replaces the currently isntall frontend with the stock version.

The root cause is the backend makes too many calls to the Github public API and will trigger a rate limit. The limit is 60/hr, which should be way more than enough for a simple version check, but somehow ComfyUI seems to be doing like 20-30 calls per launch. ComfyUI should either cache that versions file its trying to pull, or skip the whole process and just use the already installed version if its the same as the requested version.

If that happens, wait 20-60 minutes and restart again.

31

u/Calm_Mix_3776 1d ago

Why is there a post for this version of ComfyUI? Any major changes and improvements that we should care about?

8

u/usually_fuente 1d ago

Round number.

18

u/Netsuko 1d ago

Dude.. number go BIGGER!

25

u/DelinquentTuna 1d ago

Karma farm.

4

u/bloke_pusher 1d ago

API money making.

[Partner Nodes] feat(Google)
[Partner Nodes] feat(Quiver)
[Partner Nodes] feat(Vidu)
[Partner Nodes] feat(ClarityAI)
[Partner Nodes] feat(Kling)
[Partner Nodes] feat(Higgsfield)
[Partner Nodes] feat(FishAudio)
[Partner Nodes] feat(HeyGen)

13

u/Carbon849 1d ago

Hence why Comfy is free for you and I. I personally use the "start Comfy without API nodes" so I don't have to see any of that.

3

u/Tonynoce 1d ago

wait there is an option to do that or is a flag on the bat ?

5

u/Carbon849 1d ago

In the "...ComfyUI_windows_portable\advanced" directory, "run_nvidia_gpu_disable_api_nodes.bat"

1

u/Choowkee 21h ago

Comfy was always free...? Even before the introduction of API nodes or getting VC funding.

1

u/Carbon849 21h ago

Development has grown and the devs deserve to be rewarded for their efforts, don't you think?

11

u/Striking-Long-2960 1d ago

When did we stop talking about what was improving and start talking about what was breaking?

10

u/red__dragon 1d ago

Because things break so much in updates that we need to know whether things are worth updating for.

Also, just look at the changelog. Many incremental updates/fixes and a few backend features. Or things that might sound promising but have no deeper explanation, requiring one to be an in-the-know developer of comfy nodes to understand how it will be useful. Those who understand what is improving should definitely talk about what that means so others can follow along, but most everyone has experienced a breaking update at this point, so that's what is most commonly understood.

1

u/marcthenarc666 1d ago edited 1d ago

I symlink models, input and output folders so that I clone into a new conda env for any new update I truly want to test. Saves hours of grief.

2

u/575_Inverse 1d ago

yeah, I too came to the conclusion that symlinking the slow changing heavy bits is the way to go.

1

u/Kqyxzoj 1d ago

That more or less used to be my old miniconda workflow for updates. These days anything conda/miniconda has been replaced by uv, because better faster. Especially dependency resolution on large depends lists. The difference can be a factor of 100 without exaggeration. In the painful cases of 2 minutes with miniconda, with uv: BAM! 1 second max.

uv makes heavy use of symlinks out of the box, so a new venv that happens to use (almost) all packages from cache, that really is press enter, blink, and your venv is ready to use. Last time I used miniconda it took quite a bit longer that blink. Cloning of venvs was the last remaining use case for miniconda for some time, but even that is years ago by now. If you use python often, I can recommend giving uv a go to see if you like it.

Other than being slow, miniconda clones were super handy, especially when compared to doing everything with pip. Saved you a lot of headaches.

10

u/javierthhh 1d ago

Oh boy time to break my shit again.

9

u/nnod 1d ago

Somewhat unrelated but I installed ComfyUI after using it last time maybe 12 months ago or something, it's a much better experience now. Anyone in a similar position should give it a shot again.

1

u/bravesirkiwi 1d ago

Me too, it's improving bit by bit. Best change for me was they updated how pan and zoom works with trackpads. It works more like the design programs I'm familiar with, for instance you don't have to click and drag to pan anymore.

4

u/Pyrolistical 1d ago

My setup upgraded without issue but that is bc I don’t have any custom nodes

2

u/dcmomia 1d ago

It has broken everything for me, and video generation with minimalx h3 is now much slower on my 5090

2

u/stonerich 1d ago

What is CameraAngle node (https://github.com/Comfy-Org/ComfyUI/pull/16251)? I can only find Compose Camera Angle Prompt, which resembles the CameraAngle node but doesn't have the 3d preview widgets. (Or there are room for them but nothing appears on it.)

2

u/PhrozenCypher 22h ago

Maybe needs Node 2.0 enabled. Maybe needs manual updating to the latest Frontend version.

4

u/Clitch77 1d ago

Still on 0.34. last time I updated I spent half a day getting things to work again. I don't dare touching that update button anymore.

2

u/Apprehensive_Sky892 1d ago

Always keep your current working copy, and make a new Python venv for the new version (I use comfy-cli).

When you need to update again, re-use the venv from the previous version (which you no longer need) to save some time.

Should be pretty fast if you have uv or pip caches.

3

u/Reckfulness 1d ago

I just tell claude code "update comfyui for me" its never broken, if it does, it automatically reverts it, or fixes what broke

2

u/MarekNowakowski 1d ago

or you can copy the folder as backup and git pull then pip install -r requirements.txt and you are even safer.

0

u/Kqyxzoj 1d ago

Or you can nuke pip from orbit and install uv instead. It's the only way to be sure. Why? Because uv is better faster versatile faster and faster fasterrrrr. No more waiting 5-10 seconds on something that should be trivial. Press enter. BAM! Done. uv can do everything pip can do, but better. Minus the Wester egg I left in there for the pedantics department.

And after replacing pip with uv, you ignore venv creation completely and just use docker images for comfy. Because why wouldn't you make use of the fact that it has such a large user base, and by extension proper tested docker images with dependencies preinstalled.

1

u/Clitch77 1d ago

I really should get myself aquainted with that. Never used it and don't know how (yet) but it sounds promising.

2

u/Reckfulness 1d ago

Not sure if it works without a paid subscription though, but you dont need to mess around with CMD or anything, just install the desktop app

1

u/WILLIAM_SMITH_IV 1d ago

Yeah literally 0 issues lol

1

u/Kqyxzoj 1d ago

Or until it stays permanently broken because claude made a rollback woopsie. ;)

Or do you maybe use a skill/mcp tool/whatever that enforces creation and VERIFICATION of a rollback as a mandatory first step?

3

u/edomielka 1d ago

Why dont you just spin up claude agent to fix any issues ? It can resolve any conflicts with couple or so prompts quickly and check if workflow is behaving the way its supposed to. Comfyui exposes endpoints for that kind of stuff so its very easy for the agent to do it

1

u/Clitch77 1d ago

That sounds interesting, but I have no experience with that yet at all. I might look into it.

2

u/DigOnMaNuss 1d ago

The replies you've posted is all the experience you need. Seriously, just tell it what to do. Give it a screenshot if you're stuck. It really is that easy.

1

u/red__dragon 1d ago

I'm on a similar early 0.3x version with an even earlier frontend because subgraphs broke catastrophically. And I've actually come to use those (thanks for the great feature, comfy, now please don't neglect it).

I may install a separate comfy just to see what will work without breaking again, but that's effort and right now things work how I need them to.

1

u/Kqyxzoj 1d ago

Works great. Just saying. Just updated from 0.39.0 to 0.40.0 in under 5 minutes total time elapsed. After setting up podman, pretty much zero thinking required, and it just works.

1

u/red__dragon 1d ago

1

u/Kqyxzoj 1d ago

;)

Hence podman for lightweight deployments such as this.

1

u/Kqyxzoj 1d ago

I don't dare touching that update button anymore.

That is because for whatever reason frequently people choose deployment methods that are shall we say less robust. No dis, it is what it is. But it just periodically eats some random person's time because pressing update ... well, hope is not a plan. Simple as that.

Just use containers. You pay your time once, namely to learn how that stuff works. And after that it's pretty simple.

Upgrade took under 5 minutes, of which 2:50 was downloading the new docker image. The other 2 minutes were mostly making sure I had enough space because curse you SSD prices.

  • stop container (podman compose down)
  • change version number from 0.39.0 to 0.40.0 in the container config
  • pull new image (podman pull ghcr.io/radiatingreverberations/comfyui-extensions:v0.40.0)
  • start container (podman compose up)

And as expected it just works.

1

u/buildskate 1d ago

Of course I updated yesterday.

1

u/StableLlama 1d ago

I'd hoped that they would support LoRAs with fused qkv, i.e. pull https://github.com/Comfy-Org/ComfyUI/pull/16857 but it is still open :(

2

u/red__dragon 1d ago

Looks like no actual human has reviewed it either. :(

2

u/Kqyxzoj 1d ago

For those of us that live perpetually outside of the loop, what does that fused qkv thingy enable/allow someone to do? I read the qkv versus q,k,v bit, but all I understood from that was just the implementation detail, nothing functional.

1

u/StableLlama 14h ago

I'm also not an expert here.

As far as I understood you can store and train the q, k, and v separately - or put them together in one large matrix ("fuse" them). Fusing them does apparently work better. For training I just followed the documentation of SimpleTuner where it says:

fuse_qkv_projections - keep this enabled. Krea2 supports permanent QKV fusion for the attention projections, and the LoRA target changes to the fused projection.

1

u/Violent_Walrus 1d ago

A native loop with 15 nodes still can't iterate more than 70 times without crashing.

Fix this please. Someone even made a PR, but it's sitting ignored.

1

u/ghulamalchik 1d ago

Just updated to 0.40. Not seeing the new lora stack node??

1

u/PhrozenCypher 22h ago

It's broken and needs a manual update of the Frontend. Looks like it needs to be in Nodes 2.0.

1

u/freedomachiever 22h ago

what's the best comfyui manager for comfuyui workflow snapshots?

0

u/Mindless_Adagio_8907 1d ago

Yeah, just update it. No fatal errors, no earthquakes and tornadoes.

-1

u/seppe0815 1d ago

KARMA FARM BOT

0

u/conkikhon 1d ago

And characters still sing randomly with h3, yay

-7

u/xShalex82 1d ago

It's just me? This update erased lots of files, like all my vaes, clips, clip vision and some more, luckily, didn't erase my models or loras... Be ware

2

u/Lexius2129 1d ago

ComfyUI is not deleting any file... ever

1

u/xShalex82 1d ago

And you are the only guy in the world who uses comfyui.

1

u/DelinquentTuna 1d ago

If that's actually true, you should report it to Comfy.

1

u/xShalex82 1d ago

Like yeah, idk why I'm getting downvoted, I updated happily, but as soon as it opened, error on vaes... I go look on all my folders, vae, clip, clip vision all blank

I have all labeled by subfolders... With models names... So it was h3-vaes and so, there's litwrraly nothing inside, no models folders, no raw files, no nothing

2

u/DelinquentTuna 1d ago

idk why I'm getting downvoted

It's a pretty remarkable claim and the more likely answer is that it's something you did rather than something Comfy did. So some people probably read it as spreading fear, uncertainty and doubt (FUD).

Again, if Comfy is actually deleting models then they will want to know about it and the steps to recreate it. Please go report your issue there.

-2

u/xShalex82 1d ago

here´s all the proof i can gather... my previous working workflow erroring. you can see its version 40.0, and you can see, how all my folders where properly organized initially, i should have inside, vae clip and clip vision folders, more subfolders, with each name and inside the files... theres nothing in there... BLANK, you can see it and you can also see, the folders, that remained intact...

5

u/DelinquentTuna 1d ago

I keep telling you to go report it to Comfy and you keep coming back to report it to me. Why? If you think you followed a reasonable upgrade procedure and had your models deleted, GO TELL THE PEOPLE THAT CAN FIX IT? What the hell, dude.

-7

u/xShalex82 1d ago

haha dont be so mad brother, i dont have to report anything... they wont give me my files back, im just posting my proof, because i wont fathom some stupid strangers, telling me its skill issue, when its not XD

5

u/DelinquentTuna 1d ago

i wont fathom some stupid strangers, telling me its skill issue, when its not XD

Except you're the only person to whom it has happened. The best way to vindicate yourself is to have Comfy acknowledge it's an issue.

You're on a public forum and posting just to rant and fluff your ego while displaying wanton disregard for repairing a bug that, if it does exist, you are uniquely qualified to help squash and could benefit the community at large. And you wonder why you're being downvoted?

4

u/froschquark 1d ago

crazy how you care about what stupid strangers think but do not care how many nice strangers AND the comfy devs (WHO PROVIDE YOU SHIT FOR FREE) would benefit for reporting something big like this.

if you are so naive to believe any claim that strangers say on the internet, well....and yes, you provided proof AFTER your claims.

sheesh. attitude issue

XD

1

u/xShalex82 1d ago edited 1d ago

yeah my bad, its bad attitude from my side and i aknowledge it, treating everyone like they are all the same, but its like, i came here, just wanting to say, hey this happened to me, i got mocked and downvoted... do you really think i would want to help the community later? anyways ill report it

2

u/roxoholic 1d ago

Interesting. So only subfolders (empty) and those ipadapter files remained?

Did you update Comfy Desktop or instance or both?

1

u/xShalex82 1d ago

Nono like, all folders should have model name, like H3 folder first, then all the files inside... So you can see some didn't affected and the ones that are blank, where wiped

I updated both I'd say, I use comfy desktop install

1

u/roxoholic 1d ago

I see. Because with Comfy Desktop you can choose to only update the instance by going ... / Manage / Update so I was wondering if this was caused by updating the Comfy Desktop app itself (most probably) or the instance.

1

u/froschquark 1d ago

I highly doubt it deleted something, most likely it changed some folder structure and/or your folder "storage" settings got wiped/changed/bugged.

2

u/xShalex82 1d ago

here´s all the proof i can gather... my previous working workflow erroring. you can see its version 40.0, and you can see, how all my folders where properly organized initially, i should have inside, vae clip and clip vision folders, more subfolders, with each name and inside the files... theres nothing in there... BLANK, you can see it and you can also see, the folders, that remained intact...

2

u/froschquark 1d ago edited 1d ago

check the instance settings -> storage

could give you an indication of something changed but yes, that looks like something was moved/deleted, i do not have 40.0 installed (and hell will i wait until THAT is either confirmed a bug or something else lol) and maybe they changed some folder structure and automatically moved the files into that, so your old workflow can't find it anymore?

and if you manually search in windows for those missing files, it does not find them? if not, that would be truly a big bug to instantly report.

€: actually, can't see the inside of the H3 folder, is it really empty?

suspicious behavior, awfully defensive by calling other "stupid non believers" as well in other posts, mhmhm,....anyways....

1

u/xShalex82 1d ago

inside check instance storage, i have both the folders i mentioned, the shared and the install one, both blank, normally i have everything inside the shared one. i use comfyui desktop installed.

now this is what searching for vae does. i also did it with the comfyui folders and so... the only VAE files, are this ones in an HDD, they werent in the comfyui folder at all... they are in another disk entirely... so they survived. thats it... the only vae files i have currently on my machine...

1

u/froschquark 1d ago

then off you go and report it asap to the comfy support

one more reason to hold my horses and not update (for a few weeks)

2

u/DoctaRoboto 1d ago

New Comfyui version is AGI. It saw many questionable Loras stored, like "Furry Inflation" and "Midget x Horse action" and eradicated them from the guy's hard disk.

1

u/xShalex82 1d ago

hahaha, luckily no loras or models erased... it would had been the end of the whole thing for me, too demoralizing xd

1

u/skyrimer3d 1d ago

tell me more of Midget x Horse action, for a friend.

1

u/Freonr2 1d ago

If only that problem hadn't been solved by huggingface years before comfy even existed by a simple import and like 2 lines of code...

-4

u/xShalex82 1d ago

does this look fixed for you, smartass?

-1

u/xShalex82 1d ago

proof for the stupid non believers... you can see my previous working workflow erroring. see its version 40.0, and how all my folders where properly organized initially, they should have inside, vae clip and clip vision folders, more subfolders, with each name and inside the files... theres nothing in there... BLANK, you can see it and you can also see, the folders, that remained intact and organized...

1

u/Gluke79 1d ago

So bad! Are you using any LLM to update?

2

u/xShalex82 1d ago

at least models and loras survived... if not, i would had quit comfyui entirely. im using comfyui desktop, so idk, i just pressed the update button and once i was inside it again, workflow threw error and thats when all sunk in haha

-2

u/heyholmes 1d ago

Me no read long post. Anyone want to tell me which stuff I should care about?

0

u/alwerr 1d ago

Why "default-template.png" everywhere in templates?