ZHO-ZHO-ZHO / ComfyUI-InstantID

Unofficial implementation of InstantID for ComfyUI
1.35k stars 78 forks source link

GPU显存不足怎么解决啊? Error occurred when executing IDBaseModelLoader_fromhub: #78

Open lixuekai2001 opened 9 months ago

lixuekai2001 commented 9 months ago

Error occurred when executing IDBaseModelLoader_fromhub:

Allocation on device 0 would exceed allowed memory. (out of memory) Currently allocated : 7.30 GiB Requested : 12.50 MiB Device limit : 8.00 GiB Free (according to CUDA): 0 bytes PyTorch limit (set by user-supplied memory fraction) : 17179869184.00 GiB

by517840374 commented 9 months ago

去autodl吧,我也是显存不够

Torcelllo commented 9 months ago

Me too ... 8Gb VRAM RTX 2070, 64Gb RAM, Win 10

Exact same error

by517840374 commented 9 months ago

Me too ... 8Gb VRAM RTX 2070, 64Gb RAM, Win 10

Exact same error

2070,找个gpu 租赁网站吧,我刚刚在https://www.autodl.com/这个上面创建成功了,3090显存24g

Torcelllo commented 9 months ago

Website GPU Rental - xiexie

谢谢

wenshaoru commented 9 months ago

我发现了问题。这个工作流不对输出图片尺寸进行设置,默认可能就是面部或者姿态识别的图片尺寸,因此爆显存的原因就是读取的图片尺寸太大了,我试着把图片裁剪降低分辨率后,不会再爆问题了

by517840374 commented 9 months ago

我昨天看了作者的介绍视频,他说要占用他24g内存,这个是爆内存了,我总内存32g,任务占用12g,再来24g超过了我的内存,我感觉再加个32g应该就没问题了

time-river commented 8 months ago

you can use my branch: https://github.com/time-river/ComfyUI-InstantID/tree/main