Closed y1129800378 closed 3 years ago
when i run train_vcmr.py use my own env(pytorch 1.2),get An error: error:
Traceback (most recent call last):
File "train_vcmr.py", line 403, in
it look like this: https://discuss.pytorch.org/t/solved-pytorch1-5-runtimeerror-one-of-the-variables-needed-for-gradient-computation-has-been-modified-by-an-inplace-operation/90256
It is caused by model/model.py L212【transformed_c_v_feats = transformed_c_v_feats + matched_v_feats】
So I am worried there will be problems, and how to fix it? thanks~
@y1129800378 This may be related with your pytorch version. I used to use pytorch 1.2, and faced with nearly the same problem. I'm now using pytorch 1.7, and do not have this issue for both pre-training and fine-tuning.
when i run train_vcmr.py use my own env(pytorch 1.2),get An error: