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

Different from the original code of MaskDINO #264

Open
winpih opened this issue May 23, 2023 · 1 comment
Open

Different from the original code of MaskDINO #264

winpih opened this issue May 23, 2023 · 1 comment

Comments

@winpih
Copy link

winpih commented May 23, 2023

  1. maskdino_encoder.py of detrex
    line 303
# stride = 4, self.common_stride = 4 -> self.num_fpn_levels = 0
self.num_fpn_levels = int(np.log2(stride) - np.log2(self.common_stride))
  1. maskdino_encoder.py of Original MaskDINO
    line 305
# stride = 4, self.common_stride = 4 -> self.num_fpn_levels = 1
self.num_fpn_levels = max(int(np.log2(stride) - np.log2(self.common_stride)), 1)

The size of "pred_masks" varies depending on the difference in the above code.
Please check it.

@rentainhe
Copy link
Collaborator

Thanks for reporting this issue, we will refine it carefully in the future release

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