补丁主要用于解决分配不了大于4G内存的问题,类似以下错误提示
Current platform can NOT allocate memory block with size larger than 4GB!
经过测试,打完补丁之后高清修复工作流已可用,包括效率节点的高清修复也没问题。
import intel_extension_for_pytorch as ipex
if torch.xpu.is_available():
from attention import attention_init
然后下载attention放在Comfyui根目录即可。