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

Runtime error in extract_mrcn_det_feats.py #39

Open
asanganuwan opened this issue Jan 20, 2021 · 3 comments
Open

Runtime error in extract_mrcn_det_feats.py #39

asanganuwan opened this issue Jan 20, 2021 · 3 comments

Comments

@asanganuwan
Copy link

asanganuwan commented Jan 20, 2021

It gives a runtime error when I run the command
CUDA_VISIBLE_DEVICES=gpu_id python tools/extract_mrcn_det_feats.py --dataset refcoco --splitBy unc.
***` RuntimeError: Dimension out of range (expected to be in range of [-2, 1], but got 3)

Error corresponds to line #59 fc7 = fc7.mean(3).mean(2)

When I debug the code, in line 58, fc7 is a tensor with the dimensions of [1,2048].

@lichengunc I kindly request your help with this issue. I am not sure whether I am doing anything wrong here.

@Millielele
Copy link

It gives a runtime error when I run the command
CUDA_VISIBLE_DEVICES=gpu_id python tools/extract_mrcn_det_feats.py --dataset refcoco --splitBy unc.
***` RuntimeError: Dimension out of range (expected to be in range of [-2, 1], but got 3)

Error corresponds to line #59 fc7 = fc7.mean(3).mean(2)

When I debug the code, in line 58, fc7 is a tensor with the dimensions of [1,2048].

@lichengunc I kindly request your help with this issue. I am not sure whether I am doing anything wrong here.

Have you solved that?

@asanganuwan
Copy link
Author

It gives a runtime error when I run the command
CUDA_VISIBLE_DEVICES=gpu_id python tools/extract_mrcn_det_feats.py --dataset refcoco --splitBy unc.
***` RuntimeError: Dimension out of range (expected to be in range of [-2, 1], but got 3)
Error corresponds to line #59 fc7 = fc7.mean(3).mean(2)
When I debug the code, in line 58, fc7 is a tensor with the dimensions of [1,2048].
@lichengunc I kindly request your help with this issue. I am not sure whether I am doing anything wrong here.

Have you solved that?

I removed that line and the code worked fine. But not sure whether it alters any intentions of the author.

@Millielele
Copy link

It gives a runtime error when I run the command
CUDA_VISIBLE_DEVICES=gpu_id python tools/extract_mrcn_det_feats.py --dataset refcoco --splitBy unc.
***` RuntimeError: Dimension out of range (expected to be in range of [-2, 1], but got 3)
Error corresponds to line #59 fc7 = fc7.mean(3).mean(2)
When I debug the code, in line 58, fc7 is a tensor with the dimensions of [1,2048].
@lichengunc I kindly request your help with this issue. I am not sure whether I am doing anything wrong here.

Have you solved that?

I removed that line and the code worked fine. But not sure whether it alters any intentions of the author.

thanks . I then run the evaluate 1 and get the same results. (Maybe the author wants us to know clearly)

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