hhaAndroid / mmdetection-mini

mmdetection最小学习版
MIT License
1.08k stars 194 forks source link

请问在使用可视化工具时出现输入不连续的问题怎么办?RuntimeError: input must be contiguous (deform_conv_forward at ./mmcv/ops/csrc/pytorch/deform_conv.cpp:66) #20

Open linsy-ai opened 3 years ago

linsy-ai commented 3 years ago

RuntimeError: input must be contiguous (deform_conv_forward at ./mmcv/ops/csrc/pytorch/deform_conv.cpp:66) frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x47 (0x7f0f42ff1627 in /home/linsy/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/lib/libc10.so) frame #1: deform_conv_forward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, int) + 0x5fa (0x7f0ee575d8ea in /home/linsy/anaconda3/envs/FCOS/lib/python3.8/site-packages/mmcv/_ext.cpython-38-x86_64-linux-gnu.so) frame #2: + 0x96300 (0x7f0ee569f300 in /home/linsy/anaconda3/envs/FCOS/lib/python3.8/site-packages/mmcv/_ext.cpython-38-x86_64-linux-gnu.so) frame #3: + 0x9644e (0x7f0ee569f44e in /home/linsy/anaconda3/envs/FCOS/lib/python3.8/site-packages/mmcv/_ext.cpython-38-x86_64-linux-gnu.so) frame #4: + 0x928fc (0x7f0ee569b8fc in /home/linsy/anaconda3/envs/FCOS/lib/python3.8/site-packages/mmcv/_ext.cpython-38-x86_64-linux-gnu.so)

frame #11: THPFunction_apply(_object*, _object*) + 0xb2f (0x7f0f742dfd1f in /home/linsy/anaconda3/envs/FCOS/lib/python3.8/site-packages/torch/lib/libtorch_python.so)
cemiboou commented 3 years ago

请问楼主测试通过了么,我在尝试yolov5m的特征图可视化过程中并未成功,可以咨询一下么? pytorch 1.7.0 + ubuntu 16.04 + mvcc 1.2.0

linsy-ai commented 3 years ago

还是有不连续问题,我是pytorch1.4.0 Ubuntu16.04 mmcv full=1.1.5