strongwolf / DW

A Dual Weighting Label Assignment Scheme for Object Detection
Apache License 2.0
136 stars 17 forks source link

运行出现错误 #13

Open sharp-xiang opened 2 years ago

sharp-xiang commented 2 years ago

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation:

strongwolf commented 2 years ago

Which version of PyTorch and mmdetection do you use?

sharp-xiang commented 2 years ago

您使用哪个版本的 PyTorch 和 mmdetection?

I‘m sorry to reply you so late

Python: 3.7.0 (default, Oct 9 2018, 10:31:47) [GCC 7.3.0] CUDA available: True GPU 0: NVIDIA GeForce RTX 2080 Ti CUDA_HOME: /usr/local/cuda-11.4 NVCC: Cuda compilation tools, release 11.4, V11.4.152 GCC: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 PyTorch: 1.10.2 PyTorch compiling details: PyTorch built with:

TorchVision: 0.11.3 OpenCV: 4.5.5 MMCV: 1.5.2 MMCV Compiler: GCC 7.3 MMCV CUDA Compiler: 11.3 MMDetection: 2.24.1+

strongwolf commented 2 years ago

This error may arise from the FPN code of MMDetection. Similar problems can also be found at https://github.com/open-mmlab/mmdetection/issues/7933. My environment is: pytorch: 1.9.0+cuda11.1, mmdet: 2.23.0, mmcv:1.4.8.