facebookresearch / maskrcnn-benchmark

Fast, modular reference implementation of Instance Segmentation and Object Detection algorithms in PyTorch.
MIT License
9.31k stars 2.49k forks source link

ModuleNotFoundError: No module named 'cityscapesscripts' #1353

Open Yuejingkun opened 1 year ago

Yuejingkun commented 1 year ago

❓ Questions and Help

I just follow the readme.md and download the coco dataset and symlink the coco dataset. but when I run this command : python /path_to_maskrcnn_benchmark/tools/train_net.py --config-file "/path/to/config/file.yaml"

and it tells me:

Traceback (most recent call last): File "tools/train_net.py", line 15, in from maskrcnn_benchmark.data import make_data_loader File "/home/xxx/code/maskrcnn-benchmark/maskrcnn_benchmark/data/init.py", line 2, in from .build import make_data_loader File "/home/xxx/code/maskrcnn-benchmark/maskrcnn_benchmark/data/build.py", line 11, in from . import datasets as D File "/home/xxx/code/maskrcnn-benchmark/maskrcnn_benchmark/data/datasets/init.py", line 7, in from .cityscapes import CityScapesDataset File "/home/xxx/code/maskrcnn-benchmark/maskrcnn_benchmark/data/datasets/cityscapes.py", line 16, in from cityscapesscripts.helpers import csHelpers ModuleNotFoundError: No module named 'cityscapesscripts'

what's wrong with it? how to solve it. Thanks a lot!