Skip to content

About constrain the pixel #3

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

Open
BIT-LeeJW opened this issue Dec 7, 2023 · 0 comments
Open

About constrain the pixel #3

BIT-LeeJW opened this issue Dec 7, 2023 · 0 comments

Comments

@BIT-LeeJW
Copy link

What is the purpose of the Pytorch.clamp() function in constraining all pixel values to [0,1]?
For example, if you multiply by 11, then all pixels, whether the backdoor sample or the normal sample, will be 1 after the constraint, so there's no difference in the outcome.

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

No branches or pull requests

1 participant