ImportError: cannot import name 'DATASETS' from 'mmdet.datasets'
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
This is probably due to your version of MMDetection. We are currently using mmdet<3.0. If your version is 3.0 or above you may need to downgrade it by doing pip install 'mmdet<3.0'.