- 官网下载Cityscapes数据集,百度网盘有备份
- pip install cityscapesscripts
生成脚本文件
# Set CITYSCAPES_DATASET to your dataset root.
# Create train ID label images.
CITYSCAPES_DATASET='.' csCreateTrainIdLabelImgs
# To generate panoptic groundtruth, run the following command.
CITYSCAPES_DATASET='.' csCreatePanopticImgs --use-train-id
# [Optional] Generate panoptic groundtruth with EvalId to match evaluation
# on the server. This step is not required for generating TFRecords.
CITYSCAPES_DATASET='.' csCreatePanopticImgs