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

question about restriction on xind, yind #603

Open
bewithme opened this issue Mar 31, 2021 · 0 comments
Open

question about restriction on xind, yind #603

bewithme opened this issue Mar 31, 2021 · 0 comments

Comments

@bewithme
Copy link

in the dataset.py source file , after if not exist_positive: code line , why do you restrict the xind, yind to be 0-12 but not 0-25 or 0-51 ?

     ```
   xind = np.clip(xind, 0, self.train_output_sizes[i] - 1)     
            yind = np.clip(yind, 0, self.train_output_sizes[i] - 1)     
            # self.train_output_sizes[i] - 1 =12 all the time here   why ?????????

            # This will mitigate errors generated when the location computed by this is more the grid cell location. 
            # e.g. For 52x52 grid cells possible values of xind and yind are in range [0-51] including both. 
            # But sometimes the coomputation makes it 52 and then it will try to find that location in label array 
            # which is not present and throws error during training.
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