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

division by zero when all ip adapter strengths == 0 #271

Closed
vtvrv opened this issue Dec 24, 2023 · 0 comments
Closed

division by zero when all ip adapter strengths == 0 #271

vtvrv opened this issue Dec 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@vtvrv
Copy link
Contributor

vtvrv commented Dec 24, 2023

divisionbyzero
https://github.com/Acly/krita-ai-diffusion/blob/3c3bd77089b83b9a2c2515a1e23e642f65fc4388/ai_diffusion/workflow.py#L421C1-L422C62

max_weight = max(ip_weights)
ip_weights = [w / max_weight for w in ip_weights]
@Acly Acly added the bug Something isn't working label Dec 26, 2023
@Acly Acly closed this as completed Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants