• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 Huawei Technologies Co., Ltd
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ============================================================================
15"""
16network config setting, will be used in train.py and evaluation.py
17"""
18from easydict import EasyDict as ed
19
20config = ed({
21    "learning_rate": 0.0014,
22    "weight_decay": 0.00005,
23    "momentum": 0.97,
24    "crop_size": 513,
25    "eval_scales": [0.5, 0.75, 1.0, 1.25, 1.5, 1.75],
26    "atrous_rates": None,
27    "image_pyramid": None,
28    "output_stride": 16,
29    "fine_tune_batch_norm": False,
30    "ignore_label": 255,
31    "decoder_output_stride": None,
32    "seg_num_classes": 21,
33    "epoch_size": 6,
34    "batch_size": 2,
35    "enable_save_ckpt": True,
36    "save_checkpoint_steps": 10000,
37    "save_checkpoint_num": 1
38})
39