|
- # Copyright 2020 Huawei Technologies Co., Ltd
- #
- # 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 governing permissions and
- # limitations under the License.
- # ============================================================================
- """config"""
- from easydict import EasyDict as ed
-
- config = ed({
- "image_size": '224,224',
- "num_classes": 1000,
-
- "lr": 0.4,
- "lr_scheduler": 'cosine_annealing',
- "lr_epochs": '30,60,90,120',
- "lr_gamma": 0.1,
- "eta_min": 0,
- "T_max": 150,
- "max_epoch": 150,
- "backbone": 'resnext50',
- "warmup_epochs": 1,
-
- "weight_decay": 0.0001,
- "momentum": 0.9,
- "is_dynamic_loss_scale": 0,
- "loss_scale": 1024,
- "label_smooth": 1,
- "label_smooth_factor": 0.1,
-
- "ckpt_interval": 5,
- "ckpt_save_max": 5,
- "ckpt_path": 'outputs/',
- "is_save_on_master": 1,
-
- "rank": 0,
- "group_size": 1
- })
|