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

Potential Bug: inconsistent pixel value range for tiny-imagenet models #1

Open
njuaplusplus opened this issue Jul 12, 2020 · 0 comments

Comments

@njuaplusplus
Copy link

The pixel range of ULP in tiny-imagenet/train_ULP.py is [0,255].

However, when training the clean/poisoned models, the pixel range of inputs is [0, 1] because of the transforms.ToTensor() in tiny-imagenet/train_clean_model.py

See transforms.ToTensor doc.

I wonder if the inconsistency is made purposely or is a bug. Because for CIFAR-10 experiments, the range is the same [0, 255].

By the way, I also wonder why the range [0, 255] was used instead of the usual [0, 1]. Are there any particular reasons?

Thanks.

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