Skip to content
Snippets Groups Projects
Unverified Commit 3bbdd6dc authored by MengzhangLI's avatar MengzhangLI Committed by GitHub
Browse files

[Fix] Fix unit test image file path error (#1835)

parent 1ded0a42
No related branches found
No related tags found
No related merge requests found
......@@ -97,13 +97,13 @@ class TestSegLocalVisualizer(TestCase):
image = mmcv.imread(
osp.join(
osp.dirname(__file__),
'../data/pseudo_cityscapes_dataset/leftImg8bit/frankfurt_000000_000294_leftImg8bit.png' # noqa
'../data/pseudo_cityscapes_dataset/leftImg8bit/val/frankfurt/frankfurt_000000_000294_leftImg8bit.png' # noqa
),
'color')
sem_seg = mmcv.imread(
osp.join(
osp.dirname(__file__),
'../data/pseudo_cityscapes_dataset/gtFine/frankfurt_000000_000294_gtFine_labelTrainIds.png' # noqa
'../data/pseudo_cityscapes_dataset/gtFine/val/frankfurt/frankfurt_000000_000294_gtFine_labelTrainIds.png' # noqa
),
'unchanged')
sem_seg = torch.unsqueeze(torch.from_numpy(sem_seg), 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment