Skip to content

ImportError: cannot import name 'DropPath' from 'mmcv.cnn.bricks' (/opt/anaconda3/envs/fgd/lib/python3.8/site-packages/mmcv/cnn/bricks/__init__.py) #100

@junthbasnet

Description

@junthbasnet

python 3.8
mmcv-full==1.2.4

and cloned mmdetection using
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -v -e .

while running #single GPU
python tools/train.py configs/distillers/fgd/fgd_retina_rx101_64x4d_distill_retina_r50_fpn_2x_coco.py

I am getting following error:

from mmcv.cnn.bricks import DropPath
ImportError: cannot import name 'DropPath' from 'mmcv.cnn.bricks' (/opt/anaconda3/envs/fgd/lib/python3.8/site-packages/mmcv/cnn/bricks/init.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions