@@ -58,7 +58,7 @@ class CityscapesInstanceEvaluator(CityscapesEvaluator):
58
58
"""
59
59
60
60
def process (self , inputs , outputs ):
61
- from cityscapesscripts .helpers .labels import name2label
61
+ from deeplearning . projects . cityscapesApi . cityscapesscripts .helpers .labels import name2label
62
62
63
63
for input , output in zip (inputs , outputs ):
64
64
file_name = input ["file_name" ]
@@ -96,7 +96,7 @@ def evaluate(self):
96
96
comm .synchronize ()
97
97
if comm .get_rank () > 0 :
98
98
return
99
- import cityscapesscripts .evaluation .evalInstanceLevelSemanticLabeling as cityscapes_eval
99
+ import deeplearning . projects . cityscapesApi . cityscapesscripts .evaluation .evalInstanceLevelSemanticLabeling as cityscapes_eval , deeplearning . projects . cityscapesApi . cityscapesscripts . evaluation . evalInstanceLevelSemanticLabeling
100
100
101
101
self ._logger .info ("Evaluating results under {} ..." .format (self ._temp_dir ))
102
102
@@ -140,7 +140,7 @@ class CityscapesSemSegEvaluator(CityscapesEvaluator):
140
140
"""
141
141
142
142
def process (self , inputs , outputs ):
143
- from cityscapesscripts .helpers .labels import trainId2label
143
+ from deeplearning . projects . cityscapesApi . cityscapesscripts .helpers .labels import trainId2label
144
144
145
145
for input , output in zip (inputs , outputs ):
146
146
file_name = input ["file_name" ]
@@ -161,7 +161,7 @@ def evaluate(self):
161
161
return
162
162
# Load the Cityscapes eval script *after* setting the required env var,
163
163
# since the script reads CITYSCAPES_DATASET into global variables at load time.
164
- import cityscapesscripts .evaluation .evalPixelLevelSemanticLabeling as cityscapes_eval
164
+ import deeplearning . projects . cityscapesApi . cityscapesscripts .evaluation .evalPixelLevelSemanticLabeling as cityscapes_eval , deeplearning . projects . cityscapesApi . cityscapesscripts . evaluation . evalPixelLevelSemanticLabeling
165
165
166
166
self ._logger .info ("Evaluating results under {} ..." .format (self ._temp_dir ))
167
167
0 commit comments