You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <module>
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'
The text was updated successfully, but these errors were encountered:
You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template.
The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";
I don't think additional details are required as the error is due to a missing module "deeplearning". It doesn't seem to be included in the detectron2 repository and I can't find any other instructions to install it.
I have also encountered this issue. Seems that a recent commit changed some lines at detectron/data/datasets/cityscapes.py and detectron2/evaluation/cityscapes_evaluation.py as you can see here 4823082. Removing the "deeplearning.projects.cityscapesApi" prefix seems to work for me. For example change
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.
The text was updated successfully, but these errors were encountered: