MAttNet icon indicating copy to clipboard operation
MAttNet copied to clipboard

Runtime error in extract_mrcn_det_feats.py

Open asanganuwan opened this issue 5 years ago • 3 comments

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.

asanganuwan avatar Jan 20 '21 03:01 asanganuwan

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?

Millielele avatar Mar 28 '21 11:03 Millielele

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.

asanganuwan avatar Mar 30 '21 01:03 asanganuwan

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)

Millielele avatar Mar 30 '21 08:03 Millielele