-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
降低显存的方法 (供参考) #45
Comments
|
Wow that's awesome! Thanks! Could you open a PR with these changes? |
速度会变慢吗 |
Does this work? |
My 4090 (with 24G vRAM) still OOM, :-( |
Works without problem. |
ok,i have submitted for review. |
大佬,为什么我照你说的改了代码,还是出现内存不足的报错啊 |
Thanks for sharing this tip, it works fine. |
Wow awesome, thank you so much for this finding! Could you create a PR for this? |
升级以后这个方法报错,vton无法导入了,请问该如何修改? |
it works,老铁 |
在下面函数(ComfyUI-IDM-VTON\src\nodes\pipeline_loader.py),
def load_pipeline(self, weight_dtype):
修改两点:
修改1> 把所有的 .to(DEVICE) ,全部注释掉,所有的。
修改2> 函数结尾处
修改前:
pipe.unet_encoder = unet_encoder
pipe = pipe.to(DEVICE)
pipe.weight_dtype = weight_dtype
修改为:
在显卡12G测试,完全无压力。查看显存占用大概6G多点,估计在8G下也能跑。
The text was updated successfully, but these errors were encountered: