aigc-apps/sd-webui-EasyPhoto

Template 1 error: Error info is module 'torch.nn.functional' has no attribute 'scaled_dot_product_attention'

comtewu opened this issue · 0 comments

在阿里云使用交互式建模(DSW),在训练完lora,进行相片生成时报以下错误:
File "/mnt/workspace/demos/stable_diffusion_easyphoto_festival/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/controlmodel_ipadapter.py", line 261, in attn_forward_hacked
out = torch.nn.functional.scaled_dot_product_attention(q, k, v, attn_mask=None, dropout_p=0.0, is_causal=False)
AttributeError: module 'torch.nn.functional' has no attribute 'scaled_dot_product_attention'. Did you mean: '_scaled_dot_product_attention'?
2024-02-28 11:04:36,439 - scripts - Template 1 error: Error info is module 'torch.nn.functional' has no attribute 'scaled_dot_product_attention', skip it.
Loading weights [59ffe2243a] from /mnt/workspace/demos/stable_diffusion_easyphoto_festival/stable-diffusion-webui/models/Stable-diffusion/Chilloutmix-Ni-pruned-fp16-fix.safetensors