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

Understanding the UnSupervised Dataloader #15

Closed
nbansal90 opened this issue Jul 29, 2021 · 2 comments
Closed

Understanding the UnSupervised Dataloader #15

nbansal90 opened this issue Jul 29, 2021 · 2 comments

Comments

@nbansal90
Copy link

Hey @X-Lai ,

Thank you for sharing your work!

I was able to set up the repository and run the experiments in accordance with the steps provided. However , I am finding it difficult to understand some part of the code related to unsupervised data loader. Please find my queries below:

  1. Why have we chosen 320x320 for VOC dataset and 720x720 for Cityscapes? Just wanted to understand the rational behind it.
  2. In code, in file dataloaders/voc.py:
        overlap1_ul = [max(0, y2-y1), max(0, x2-x1)]
        overlap1_br = [min(self.crop_size, self.crop_size+y2-y1, h//self.stride * self.stride), min(self.crop_size, self.crop_size+x2-x1, w//self.stride * self.stride)]
        overlap2_ul = [max(0, y1-y2), max(0, x1-x2)]
        overlap2_br = [min(self.crop_size, self.crop_size+y1-y2, h//self.stride * self.stride), min(self.crop_size, self.crop_size+x1-x2, w//self.stride * self.stride)]

I am not quite able to understand the utility of self.stride, why is this necessary and what exactly does overlap1_ul and overlap1_br represent

Regards
Nitin

@X-Lai
Copy link
Collaborator

X-Lai commented Jul 30, 2021

Thanks for your interest in our work.

  1. We choose 320x320 crop for VOC just because the previous works such as CCT uses this setting, and we just follow them. For Cityscapes, we follow the common practice, i.e., 720x720 crop.
  2. overlap1_ul and overlap1_br represent the relative coordinates of the upper-left corner and bottom-right corner of the overlapping region (relative to the first crop). And self.stride is set to 8 in our experiments, which represents the stride of the feature maps, i.e., phi_u1 and phi_u2.

Hope the reply helps.

@X-Lai
Copy link
Collaborator

X-Lai commented Aug 2, 2021

I will close this issue. If you have further question, feel free to reopen it.

@X-Lai X-Lai closed this as completed Aug 2, 2021
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