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 the input of ROIAlign #10

Open
hangzhiyiwei opened this issue Dec 5, 2022 · 0 comments
Open

Question about the input of ROIAlign #10

hangzhiyiwei opened this issue Dec 5, 2022 · 0 comments

Comments

@hangzhiyiwei
Copy link

Hi

I have a question about the input image feature size here
https://github.com/NVlabs/Bongard-HOI/blob/master/models/rn_bbox_encoder.py#L116

The input feature size for one image is 25611 (depthheightwidth). If so, how can ROIAlign crop proper ROI region feature? I have seen the output of this self.roi_pooler (with size 25677), and I found that many roi_feats are all zero outputs.
For others, for each channel of the whole 256 channels, only the upper left element has a number. An example shows below.
[ 0.4648, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000],
[ 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000],
[ 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000],
[ 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000],
[ 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000],
[ 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000],
[ 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000]

I am really confused about it. Sorry to bother. Any reply will be appreciated. Thanks very much.

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