FileNotFoundError: [WinError 3] 系统找不到指定的路径。: ‘e:/SegmentationClass’

1
2
VOCdevkit_path      = "e:/Datasets/LoveDA"
segfilepath = os.path.join(VOCdevkit_path, '/SegmentationClass')

'/SegmentationClass’加入“/”,从最后一个以”/”开头的参数开始拼接,之前的参数全部丢弃。

输出:e:/SegmentationClass

正确输入:'SegmentationClass’会自动填补“/”