1. 数据准备
1.1 原始数据格式
标签为二值图,后缀为png
- ${your data root}
-- train_images
--- xxx.tif
--- xxx.tif
...
-- train_labels
--- xxx.png
--- xxx.png
...
train_images
train_labels
1.2 生成connect标签
cd ${your project root}/dataGenerators
python create_connection.py --base_dir D:\MyWorkSpace\dl_dataset\road_extraction\masa\test\png
运行完成后,你的数据根目录如下
- ${your data root}
-- train_images
--- xxx.tif
--- xxx.tif
...
-- train_labels
--- xxx.png
--- xxx.png
...
-- train_connect_8_d1
-