Closed wsry888 closed 1 week ago
Please tell me the size(width and height) of the input image. VitMatte method will take up a huge of memory when processing image larger than 2K, you can use other methods to do that.
Yep, 4096*4096
Yep, 4096*4096
emm, this is a problem. I have tested that processing 3840x2160 image with VitMatte will use more than 128G RAM (system memory)
The performance of the vitmate method in large images has been optimized, and if it exceeds 2K, it will shrink to 2K size for operation. 32GB of memory can handle large-sized images.
Error occurred when executing LayerMask: BiRefNetUltra:
[enforce fail at alloc_cpu.cpp:80] data. DefaultCPUAllocator: not enough memory: you tried to allocate 103079215104 bytes.
However, another node is functioning normally,(https://github.com/viperyl/ComfyUI-BiRefNet),
As shown in the figure:
btw, 24g vram