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

关于data augmentation #96

Open
tongtybj opened this issue Mar 18, 2020 · 2 comments
Open

关于data augmentation #96

tongtybj opened this issue Mar 18, 2020 · 2 comments

Comments

@tongtybj
Copy link

请问这里的transformation为什么要 -8 ?
https://github.com/bilylee/SiamFC-TensorFlow/blob/master/datasets/dataloader.py#L38

另外,因为下面的处理,instance embeds的shape永远都是[batch_size, 255-28, 255-28, 3]吗?
https://github.com/bilylee/SiamFC-TensorFlow/blob/master/datasets/dataloader.py#L39

@tongtybj
Copy link
Author

Is it because the random stretch may resize the raw image with a -0.05:

scale = 1.0 + tf.random_uniform([], -self.max_stretch, self.max_stretch)
?

@bilylee
Copy link
Owner

bilylee commented Jun 4, 2020

这是为了对训练图像做 +- 4 个 pixel 的平移。如果直接 RandomCrop(255 - 2 * 8) 会导致平移 +- 8 个 pixel,所以先CenterCrop,再 RandomCrop。相关问题 #19 #32 #56

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