Skip to content
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

Update sdxl_prompt2prompt_mapper.py #567

Conversation

xiaokun-hadoop
Copy link

当前从官方拉取的main分支,在windows10 python3.9环境,使用源码安装方式之后,运行数据处理demo:python tools/process_data.py --config configs/demo/process.yaml时,会报错 AttributeError:module diffusers.models has no attribute attention,根据报错内容定位到源码,sdxl_prompt2prompt_mapper.py 704行 Attention 使用的是注意力机制相关的模块,所以需要显示导入,增加一行代码 from diffusers.models.attention import Attention,成功解决问题

Standardize the use of attention mechanism related modules
@xiaokun-hadoop xiaokun-hadoop closed this by deleting the head repository Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant