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

Fix gradient mask values range #6688

Merged

Conversation

StAlKeR7779
Copy link
Contributor

@StAlKeR7779 StAlKeR7779 commented Jul 26, 2024

Summary

Gradient mask node outputs mask tensor with values in range [-1, 1], which unexpected range for mask.
It handled in denoise node the way it translates to [0, 2] mask, which looks even more wrongly)
From discussion with @dunkeroni I understand him as he thought that negative values will be treated same as 0, so clamping values not change intended node logic.

Related Issues / Discussions

#6643

QA Instructions

-

Merge Plan

-

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

@github-actions github-actions bot added python PRs that change python files invocations PRs that change invocations labels Jul 26, 2024
@blessedcoolant blessedcoolant enabled auto-merge July 31, 2024 01:01
@blessedcoolant blessedcoolant merged commit 94d64b8 into invoke-ai:main Jul 31, 2024
14 checks passed
@StAlKeR7779 StAlKeR7779 deleted the stalker7779/fix_gradient_mask branch July 31, 2024 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invocations PRs that change invocations python PRs that change python files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants