yuanli2333 / Hadamard-Matrix-for-hashing

CVPR2020/TNNLS2023: Central Similarity Quantization/Hashing for Efficient Image and Video Retrieval
MIT License
232 stars 46 forks source link

AttributeError: 'DataParallel' object has no attribute 'src_device_obj' #20

Open Kenny-Li2023 opened 3 years ago

Kenny-Li2023 commented 3 years ago

image Hello, how can I solve this problem?

yayaYsmile commented 2 years ago

I'm having the same problem, did you fix it? Thank you very much!

CyberShadow commented 1 year ago

I think this error happens when trying to load the model with a PyTorch version that is too new. In the README:

Ubuntu 16.04 NVIDIA GPU + CUDA and corresponidng Pytorch framework (v0.4.1) Python 3.6

src_device_obj was added in PyTorch around version 1.1.0 I think.