facebookresearch / facebookresearch/detectron2

ModuleNotFoundError: No module named 'deeplearning' when running evaluation on cityscapes dataset

Open
#5,436 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
34.7k
Forks
7.9k
PR merge metrics
No merged PRs in 30d

Description

I am trying to evaluate a pretrained mask2former model on cityscapes using the mask2former repository here https://github.com/facebookresearch/Mask2Former. It uses detectron2 for evaluation, and I have made no changes to either of the repositories from my side.

```
Traceback (most recent call last):
File "train_net.py", line 321, in
launch(
File "/raid/scripts/mudit/detectron2/detectron2/engine/launch.py", line 84, in launch
main_func(*args)
File "train_net.py", line 306, in main
res = Trainer.test(cfg, model)
File "/raid/scripts/mudit/detectron2/detectron2/engine/defaults.py", line 653, in test
results_i = inference_on_dataset(model, data_loader, evaluator)
File "/raid/scripts/mudit/detectron2/detectron2/evaluation/evaluator.py", line 172, in inference_on_dataset
evaluator.process(inputs, outputs)
File "/raid/scripts/mudit/detectron2/detectron2/evaluation/cityscapes_evaluation.py", line 143, in process
from deeplearning.projects.cityscapesApi.cityscapesscripts.helpers.labels import trainId2label
ModuleNotFoundError: No module named 'deeplearning'
```

Contributor guide

Open the contributing guide

Research direction

Start at detectron2/evaluation/cityscapes_evaluation.py, where process imports trainId2label, and inspect the traceback's deeplearning.projects.cityscapesApi.cityscapesscripts.helpers.labels path. Verify the Cityscapes evaluation dependency and import path in the evaluation setup; done means cityscapes evaluation runs without ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.