You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
当我使用torch1.10.0的时候
执行训练脚本 bash tools/dist_train.sh work_configs/tamper/tamper_convx_b_exp.py 2
报错如下: RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.HalfTensor [5, 512, 32, 32]], which is output 0 of ReluBackward0, is at version 1; expected version 0 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
报错位置处于mmcv库中runner/epoch_based_runner.py文件中
以为是版本问题
于是我降低torch到1.5,变成另外一个报错 RuntimeError: The size of tensor a (2) must match the size of tensor b (128) at non-singleton dimension 3
我不知道该怎么定位这个问题🤔,恳请作者提供requirements对应的版本,以及使用教程文档🙀
The text was updated successfully, but these errors were encountered:
当我使用torch1.10.0的时候
执行训练脚本
bash tools/dist_train.sh work_configs/tamper/tamper_convx_b_exp.py 2
报错如下:
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.HalfTensor [5, 512, 32, 32]], which is output 0 of ReluBackward0, is at version 1; expected version 0 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True).
报错位置处于mmcv库中runner/epoch_based_runner.py文件中
以为是版本问题
于是我降低torch到1.5,变成另外一个报错
RuntimeError: The size of tensor a (2) must match the size of tensor b (128) at non-singleton dimension 3
我不知道该怎么定位这个问题🤔,恳请作者提供requirements对应的版本,以及使用教程文档🙀
The text was updated successfully, but these errors were encountered: