Skip to content

ImportError: cannot import name 'DATASETS' from 'mmdet.datasets' #25

@marcsava

Description

@marcsava

In order to make inference with the bdd100k detection models, I launched the test.py script as indicated in the guide (after having installed everything necessary):

python ./test.py "/user/msavarese/bdd100k-models/det/configs/det/atss_r101_fpn_3x_det_bdd100k.py" --format-only --format-dir "/user/msavarese/det.json" [--cfg -options]

I get the following error:

Traceback (most recent call last):
File "./test.py", line 6, in
import datasets # pylint: disable=unused-import
File "/user/msavarese/bdd100k-models/det/datasets/init.py", line 3, in
from .bdd100k import BDD100KDetDataset
File "/user/msavarese/bdd100k-models/det/datasets/bdd100k.py", line 8, in
from mmdet.datasets import DATASETS, CocoDataset
ImportError: cannot import name 'DATASETS' from 'mmdet.datasets' (/user/msavarese/miniconda3/envs/bdd100k-mmdet/lib/python3.8/site-packages/mmdet/datasets/init.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions