Hey all, another interesting found, I added a "purgeVram" node to the network, then it could cut almost half vram usage, it's seems too good to be true, would anyone like to test this as well? I am not even sure if this is legit. but It generate the movie fine.
I got 4080S 16G vram, I could generate 576*864 video 65 frames in 50s with only using around 9G vram. I can go much frames without exceeding the vram, so the node can released quite a bit vram before sampling/generating the video. But I did tried higher resolution It start getting weired result.
here are some other test.
now I am very happy what LTX-video could do, especially with the fast speed. Online closed model like Hailuoai/Runway still miles better, but for the local open model running with consumer card, this is currently the best we could get!
Not sure how to get natural motion that way... using the standard out of the box settings, and even adjusting up... it's superfast on my 4090... but the videos either 1. don't move at all... or 2. just disolve into nothing... wish it spit out anything coherent close to being usable for me.
Its almost required cause ComfyUI has habit of caching stuff you might or might not need, including just ton of garbage that just sits there. It gets especially bad if you cancel jobs a lot and retry often. If left unchecked, with FLUX, you might get OOM really fast.
Thanks! I tried and the function looks basically the same, this is much more light-weight custom nodes pack, as I don't need all other nodes other than purgeVram, I will switch to freeMemory.
It fits into any workflow, you can simply load any of these nodes it before for example Ksampler to clean it up a bit before inference. And some after doing inference, so before VAE. Aggresive mode does about same as purgeVRAM, but its still not that "wipe everything" I think.
I use the UnloadAllModels node quite a lot for my 7900xtx. it does essentially the same thing, though you put it in between nodes rather than have it stand on it's own (I put it between my ksampler and vae... I also sometimes put it after the vae encode and before the preview image). It's quite useful, but it does add a few seconds to the total generation time. Don't use it unless you need it.
when it exceeding vram it will be much slower, that's the point freeMemory/purgeVram can release vram cache before generate the movie, do you see the vram usage different with and without the node?
Amazing trick! LTX-Video is really promising. Btw, what text encoder do you use, t5xxl or PixArt? With this trick maybe it's easier to use PixArt which demands more vram during text encoding. And "it seems to have a better prompt adherence in conjunction with the LTXV model. It also produces better video with lower number of steps (in comparison with the same number of steps using t5xxl)." according by this article
Comfyui didn't used to have problems with going and using too much vram. But after the update with the new UI it's gotten pretty bad. Anyone know what happened?
42 comments
I got 4080S 16G vram, I could generate 576*864 video 65 frames in 50s with only using around 9G vram. I can go much frames without exceeding the vram, so the node can released quite a bit vram before sampling/generating the video. But I did tried higher resolution It start getting weired result.
here are some other test.
https://i.redd.it/ih0wbv1eev3e1.gif
https://i.redd.it/5hkigauyhv3e1.gif
https://i.redd.it/s5u49na27w3e1.gif
now I am very happy what LTX-video could do, especially with the fast speed. Online closed model like Hailuoai/Runway still miles better, but for the local open model running with consumer card, this is currently the best we could get!
Not sure how to get natural motion that way... using the standard out of the box settings, and even adjusting up... it's superfast on my 4090... but the videos either 1. don't move at all... or 2. just disolve into nothing... wish it spit out anything coherent close to being usable for me.
same, then we got a amazing tricks to fix the static issue. check my reply. I am using the same tricks
https://www.reddit.com/r/StableDiffusion/comments/1gxxkqy/comment/lzjnob2/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
https://i.redd.it/fc95d3wfjv3e1.gif
Whats the workflow for this ?
https://i.redd.it/ettr3b0ghw3e1.gif
Yea I do use this and https://github.com/ShmuelRonen/ComfyUI-FreeMemory
Its almost required cause ComfyUI has habit of caching stuff you might or might not need, including just ton of garbage that just sits there. It gets especially bad if you cancel jobs a lot and retry often. If left unchecked, with FLUX, you might get OOM really fast.
And yea, they legit.
Thanks! I tried and the function looks basically the same, this is much more light-weight custom nodes pack, as I don't need all other nodes other than purgeVram, I will switch to freeMemory.
https://preview.redd.it/56vwjyvlv04e1.png?width=1161&format=png&auto=webp&s=1bace44beaeec197a715af6ffef85839d3b8b0a2
I didnt really give it that extensive testing, just using FreeMemory based mostly on habit, have you tested if it really works the same?
Can you share your workflows?
It fits into any workflow, you can simply load any of these nodes it before for example Ksampler to clean it up a bit before inference. And some after doing inference, so before VAE. Aggresive mode does about same as purgeVRAM, but its still not that "wipe everything" I think.
I suspect purgeVRAM is a bit more effective.
Great find. Could you please share your workflow?
it's basically just the default example workflow add the freeMemory node.
https://preview.redd.it/8api4e7ow04e1.png?width=1161&format=png&auto=webp&s=e85aca5bc4740242b63416ebbba9a93a3529f086
whoa! this works nicely on my 3080ti laptop / 16gb
you mean you already tried it? and it worked?
I'm wondering if there is such an opportunity to screw with cogVideo, or maybe what is the alternative?)
Do you mind sharing your workflow?
Can you post it to the discord?
sure. I will look into that.
I use the UnloadAllModels node quite a lot for my 7900xtx. it does essentially the same thing, though you put it in between nodes rather than have it stand on it's own (I put it between my ksampler and vae... I also sometimes put it after the vae encode and before the preview image). It's quite useful, but it does add a few seconds to the total generation time. Don't use it unless you need it.
I will try the unloadAllModels later.
Doesn't appear to do anything for me on 8gb, I use --lowvram though so maybe it already does this
Pretty sure lowvram already force offloads everything already
I got it running on my laptop that has a 1070 8GB. It takes about 20 minutes for a 113 frame 768 x 512 at 50 steps doing i2v.
when it exceeding vram it will be much slower, that's the point freeMemory/purgeVram can release vram cache before generate the movie, do you see the vram usage different with and without the node?
https://www.reddit.com/r/comfyui/s/iDKFGXJElJ
What check point do you use?
That sounds intriguing! Can you share the workflow?
Thanks!
I just slammed default comfy blog native workflow
Wrote overly intricate prompt as it said to do.
It generates on 8gb vram 3070+32ram no problem.
Bigger res breaks the animation though.
Can you tell me if there is a workflow with the 1st and last keyframes?
Amazing trick! LTX-Video is really promising. Btw, what text encoder do you use, t5xxl or PixArt? With this trick maybe it's easier to use PixArt which demands more vram during text encoding. And "it seems to have a better prompt adherence in conjunction with the LTXV model. It also produces better video with lower number of steps (in comparison with the same number of steps using t5xxl)." according by this article
Comfyui didn't used to have problems with going and using too much vram. But after the update with the new UI it's gotten pretty bad. Anyone know what happened?
Thank you imma test this tomorrow