TUI-NICR / ESANet

ESANet: Efficient RGB-D Semantic Segmentation for Indoor Scene Analysis
Other
236 stars 51 forks source link

No module named 'cityscapesscripts' #15

Closed 18306125266 closed 3 years ago

18306125266 commented 3 years ago

'Hello, I have run the evaluation process: "python eval.py --dataset sunrgbd --dataset_dir ./datasets/sunrgbd --ckpt_path ./trained_models/sunrgbd/r34_NBt1D.pth", and python inference_dataset.py \ --dataset sunrgbd \ --dataset_dir ./datasets/sunrgbd \ --ckpt_path ./trained_models/sunrgbd/r34_NBt1D_scenenet.pth \ --batch_size 4

There always report "No module named 'cityscapesscripts'" ,because this line of code“ from cityscapesscripts.helpers.labels import labels” But I didn't use the citycityscapes datasets ,How can I sovle it?

Thank you!

mona0809 commented 3 years ago

The error probably comes from this import: https://github.com/TUI-NICR/ESANet/blob/56b7aff77e3fc05ce4ffe55142dc805b07956f22/src/prepare_data.py#L12

If you are not interested in Cityscapes, you could try commenting out this import and any usage of it in the specified file.

danielS91 commented 3 years ago

Did you use our provided conda environment? CityscapesScripts is already part of it, see here.