GlassyWu / AECR-Net

Contrastive Learning for Compact Single Image Dehazing, CVPR2021
339 stars 48 forks source link

Hi, from DCNv2.dcn_v2 import DCN , import _ext as _backend makes mistakes and I don't know how to cope "ModuleNotFoundError: No module named '_ext'" problem after several trials. Should I delete "build" and recreate it by "python setup.py build develop", but when I run it in terminal, "running build_ext" occurs. #26

Open wangxr-1 opened 2 years ago

holotrace commented 2 years ago

you can install mmcv-full by your cuda and pythorch version , pip install mmcv-full -f ttps://download.openmmlab.com/mmcv/dist/cu113/torch1.11.0/index.html just change the DCN class as “from mmcv.ops import DeformConv2dPack as DCN”。

janice459 commented 1 year ago

谢谢你的回复,解决了我的问题,~~~~灰常感谢