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

Some questions about the ‘delta’ in the pgd_attack() function. #3

Open
904763189cy opened this issue Nov 30, 2023 · 0 comments
Open

Comments

@904763189cy
Copy link

delta = torch.zeros(self.lq.shape[0], self.lq.shape[1], int(self.lq.shape[2]//self.opt['noise_scale']), int(self.lq.shape[3]//self.opt['noise_scale'])).to(self.device)

Why use ‘//self.opt[‘noise_scale’]’?

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