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

DatasetNoPair #1

Open
weizequan opened this issue Dec 8, 2017 · 1 comment
Open

DatasetNoPair #1

weizequan opened this issue Dec 8, 2017 · 1 comment

Comments

@weizequan
Copy link

If the pair_constraint = false, the code will use DatasetNoPair. Like DatasetPair, the DatasetNoPair also can call transform (RandomRot, RandomFlip). In paired mode, the cover and stego images will be both rotated or flipped using the same setting.
However, when in no-pair mode, it can rotate or flip the cover image only, the corresponding stego image may not be rotated or flipped. Because the DatasetNoPair only load one image once.
Therefore, if set pair_constraint = false, the only transforms.Compose([
utils.ToTensor()
]) can be used?

@Caenorst
Copy link
Owner

Caenorst commented Dec 9, 2017

I rotate and flip them the same way because it's just easier to do (it doesn't really matter there is no real dependencies between cover and stego when you use DatasetNoPair).

Statistically the data augmentation is the same (the probability of being flipped and rotate is the same whether it's a cover or a stego).

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

2 participants