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

RuntimeError: output with shape [16, 300, 300] doesn't match the broadcast shape [1, 16, 300, 300] #12

Closed
sanmulab opened this issue May 12, 2022 · 5 comments

Comments

@sanmulab
Copy link

I don't know if it is a problem with my environment, I just changed the dataset path to my own, but the error is reported. My torch==1.3.1.
error:
File "/home/ubuntu/.conda/envs/mmlab/lib/python3.7/site-packages/torch/nn/functional.py", line 3352, in multi_head_attention_forward attn_output_weights += attn_mask
RuntimeError: output with shape [16, 300, 300] doesn't match the broadcast shape [1, 16, 300, 300]

@sebgao
Copy link
Collaborator

sebgao commented May 12, 2022

What is your MMCV version? You can view it by pip show mmcv or pip show mmcv-full.

@sebgao
Copy link
Collaborator

sebgao commented May 12, 2022

By the way, we recommend to install pytorch>=1.5

@sanmulab
Copy link
Author

Thanks! Problem solved, I used the new environment for training.

@sanmulab sanmulab reopened this May 13, 2022
@sanmulab
Copy link
Author

Test problem: When the model starts to evaluate, an error is reported: AttributeError: 'InitialQueryGenerator' object has no attribute 'aug_test_rpn'. Why is this? The default test configuration I use: test_cfg=dict(rpn=None, rcnn=dict(max_per_img=300)

@sebgao
Copy link
Collaborator

sebgao commented May 13, 2022

Sorry, multi-scale testing is not currently supported by AdaMixer. Please use the single scale testing data loading protocol.

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