首先需要下载官方提供的imagenet以及coco的预训练权重:
http://download.tensorflow.org/models/xception_65_coco_pretrained_2018_10_02.tar.gz
然后将其解压到一个文件夹比如:
.../deeplab/datasets/pascal_voc_seg/coco_pretrain
train_aug的处理:https://blog.csdn.net/u013249853/article/details/100136780,只需要下载一分钟,仅下载标注,一定要看清楚。
然后我直接放我的训练配置,注意,python代码是一句没改的。一定要将train_split改成train。否则会将val也一并加入训练。比如下面的保存成train.sh
#!/bin/bash
# Copyright 2018 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language gove