QVPR / Patch-NetVLAD

Code for the CVPR2021 paper "Patch-NetVLAD: Multi-Scale Fusion of Locally-Global Descriptors for Place Recognition"
MIT License
510 stars 72 forks source link

problem on training #75

Closed bestwo01 closed 2 months ago

bestwo01 commented 1 year ago

Hello, professors. When I tried to train the MSLS dataset, there is an error, do you have any suggestions on this error? command: python train.py --config_path patchnetvlad/configs/train.ini --cache_path cache --save_path checkpoint --dataset_root_dir Dataset --nocuda error: ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (441280,) + inhomogeneous part. image image

bestwo01 commented 1 year ago

It seems the training array has wrong dimensions and may be a numpy problem. Could you please tell me which numpy version did you use?

Tobias-Fischer commented 1 year ago

1.21 should work

bestwo01 commented 1 year ago

Thanks for your reply. Which python version did you use?

Tobias-Fischer commented 1 year ago

3.9

Tian0906 commented 12 months ago

Hi, I'm experiencing the same problem, have you solved it yet?

vampire1204 commented 2 months ago

Thanks for your reply. Which python version did you use?

I find the same problem, and then change the version of numpy to 1.21.0, it's ok