未验证 提交 5f8c4a65 编写于 作者: G gaotingquan

fix

上级 982bd2b2
...@@ -7,7 +7,7 @@ Global: ...@@ -7,7 +7,7 @@ Global:
save_interval: 1 save_interval: 1
eval_during_train: True eval_during_train: True
eval_interval: 1 eval_interval: 1
epochs: 40 epochs: 60
print_batch_step: 10 print_batch_step: 10
use_visualdl: False use_visualdl: False
# used for static mode and model export # used for static mode and model export
......
...@@ -13,12 +13,14 @@ Global: ...@@ -13,12 +13,14 @@ Global:
# used for static mode and model export # used for static mode and model export
image_shape: [3, 224, 224] image_shape: [3, 224, 224]
save_inference_dir: ./inference save_inference_dir: ./inference
# model architecture # model architecture
Arch: Arch:
name: PPLCNet_x1_0 name: PPLCNet_x1_0
pretrained: True pretrained: True
use_ssld: True use_ssld: True
class_num: 2 class_num: 2
use_sync_bn : True
# loss function config for traing/eval process # loss function config for traing/eval process
Loss: Loss:
...@@ -36,7 +38,7 @@ Optimizer: ...@@ -36,7 +38,7 @@ Optimizer:
momentum: 0.9 momentum: 0.9
lr: lr:
name: Cosine name: Cosine
learning_rate: 0.01 learning_rate: 0.025
warmup_epoch: 5 warmup_epoch: 5
regularizer: regularizer:
name: 'L2' name: 'L2'
...@@ -55,15 +57,27 @@ DataLoader: ...@@ -55,15 +57,27 @@ DataLoader:
to_rgb: True to_rgb: True
channel_first: False channel_first: False
- RandCropImage: - RandCropImage:
size: 224 size: 176
- RandFlipImage: - RandFlipImage:
flip_code: 1 flip_code: 1
- TimmAutoAugment:
prob : 0.5
config_str: rand-m9-mstd0.5-inc1
interpolation: bicubic
img_size : 176
- NormalizeImage: - NormalizeImage:
scale: 1.0/255.0 scale: 1.0/255.0
mean: [0.485, 0.456, 0.406] mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225] std: [0.229, 0.224, 0.225]
order: '' order: ''
- RandomErasing:
EPSILON : 0.1
r1 : 0.3
sh : 1.0/3.0
sl : 0.02
attempt : 10
use_log_aspect : True
mode : pixel
sampler: sampler:
name: DistributedBatchSampler name: DistributedBatchSampler
batch_size: 64 batch_size: 64
......
...@@ -37,7 +37,7 @@ Optimizer: ...@@ -37,7 +37,7 @@ Optimizer:
momentum: 0.9 momentum: 0.9
lr: lr:
name: Cosine name: Cosine
learning_rate: 0.015 learning_rate: 0.10
warmup_epoch: 5 warmup_epoch: 5
regularizer: regularizer:
name: 'L2' name: 'L2'
...@@ -60,7 +60,7 @@ DataLoader: ...@@ -60,7 +60,7 @@ DataLoader:
- RandFlipImage: - RandFlipImage:
flip_code: 1 flip_code: 1
- TimmAutoAugment: - TimmAutoAugment:
prob: 0.5 prob: 0
config_str: rand-m9-mstd0.5-inc1 config_str: rand-m9-mstd0.5-inc1
interpolation: bicubic interpolation: bicubic
img_size: 192 img_size: 192
...@@ -70,7 +70,7 @@ DataLoader: ...@@ -70,7 +70,7 @@ DataLoader:
std: [0.229, 0.224, 0.225] std: [0.229, 0.224, 0.225]
order: '' order: ''
- RandomErasing: - RandomErasing:
EPSILON: 0.5 EPSILON: 0
sl: 0.02 sl: 0.02
sh: 1.0/3.0 sh: 1.0/3.0
r1: 0.3 r1: 0.3
......
...@@ -7,7 +7,7 @@ Global: ...@@ -7,7 +7,7 @@ Global:
save_interval: 1 save_interval: 1
eval_during_train: True eval_during_train: True
eval_interval: 1 eval_interval: 1
epochs: 40 epochs: 60
print_batch_step: 10 print_batch_step: 10
use_visualdl: False use_visualdl: False
# used for static mode and model export # used for static mode and model export
......
...@@ -7,7 +7,7 @@ Global: ...@@ -7,7 +7,7 @@ Global:
save_interval: 1 save_interval: 1
eval_during_train: True eval_during_train: True
eval_interval: 1 eval_interval: 1
epochs: 40 epochs: 60
print_batch_step: 10 print_batch_step: 10
use_visualdl: False use_visualdl: False
# used for static mode and model export # used for static mode and model export
...@@ -81,6 +81,14 @@ DataLoader: ...@@ -81,6 +81,14 @@ DataLoader:
attempt: 10 attempt: 10
use_log_aspect: True use_log_aspect: True
mode: pixel mode: pixel
batch_transform_ops:
- OpSampler:
MixupOperator:
alpha: 0.8
prob: 0.5
CutmixOperator:
alpha: 1.0
prob: 0.5
sampler: sampler:
name: DistributedBatchSampler name: DistributedBatchSampler
......
...@@ -8,7 +8,7 @@ search_dict: ...@@ -8,7 +8,7 @@ search_dict:
- search_key: lrs - search_key: lrs
replace_config: replace_config:
- Optimizer.lr.learning_rate - Optimizer.lr.learning_rate
search_values: [0.01, 0.015, 0.025] search_values: [0.03, 0.04, 0.05, 0.06, 0.07, 0.08, 0.09, 0.10, 0.11, 0.11, 0.12]
- search_key: resolutions - search_key: resolutions
replace_config: replace_config:
- DataLoader.Train.dataset.transform_ops.1.RandCropImage.size - DataLoader.Train.dataset.transform_ops.1.RandCropImage.size
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册