parent
db802a389b
commit
e45028bd86
243 changed files with 0 additions and 32718 deletions
@ -1,149 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: "./output/" |
||||
device: "gpu" |
||||
save_interval: 1 |
||||
eval_mode: "retrieval" |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
image_shape: [3, 224, 224] |
||||
infer_imgs: |
||||
save_inference_dir: "./inference" |
||||
feature_normalize: True |
||||
|
||||
Arch: |
||||
name: "RecModel" |
||||
Backbone: |
||||
name: "ResNet50" |
||||
pretrained: True |
||||
BackboneStopLayer: |
||||
name: "flatten" |
||||
output_dim: 2048 |
||||
Head: |
||||
name: "FC" |
||||
class_num: 5013 |
||||
embedding_size: 2048 |
||||
# margin: 0.5 |
||||
# scale: 80 |
||||
infer_output_key: "features" |
||||
infer_add_softmax: "false" |
||||
|
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
# - TripletLoss: |
||||
# margin: 0.1 |
||||
# weight: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ICartoonDataset |
||||
image_root: "./dataset/iCartoonFace" |
||||
cls_label_path: "./dataset/iCartoonFace/train_list.txt" |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
#num_instances: 2 |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 6 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
Query: |
||||
dataset: |
||||
name: ICartoonDataset |
||||
image_root: "./dataset/iCartoonFace" |
||||
cls_label_path: "./dataset/iCartoonFace/query.txt" |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 8 |
||||
use_shared_memory: True |
||||
|
||||
Gallery: |
||||
dataset: |
||||
name: ICartoonDataset |
||||
image_root: "./dataset/iCartoonFace" |
||||
cls_label_path: "./dataset/iCartoonFace/gallery.txt" |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 8 |
||||
use_shared_memory: True |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- Recallk: |
||||
topk: [1] |
@ -1,148 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 100 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
eval_mode: retrieval |
||||
use_dali: False |
||||
to_static: False |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: RecModel |
||||
infer_output_key: features |
||||
infer_add_softmax: False |
||||
|
||||
Backbone: |
||||
name: PPLCNet_x2_5 |
||||
pretrained: True |
||||
use_ssld: True |
||||
BackboneStopLayer: |
||||
name: "flatten" |
||||
Neck: |
||||
name: FC |
||||
embedding_size: 1280 |
||||
class_num: 512 |
||||
Head: |
||||
name: ArcMargin |
||||
embedding_size: 512 |
||||
class_num: 185341 |
||||
margin: 0.2 |
||||
scale: 30 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.04 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ |
||||
cls_label_path: ./dataset/train_reg_all_data.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
Query: |
||||
dataset: |
||||
name: VeriWild |
||||
image_root: ./dataset/Aliproduct/ |
||||
cls_label_path: ./dataset/Aliproduct/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Gallery: |
||||
dataset: |
||||
name: VeriWild |
||||
image_root: ./dataset/Aliproduct/ |
||||
cls_label_path: ./dataset/Aliproduct/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Metric: |
||||
Eval: |
||||
- Recallk: |
||||
topk: [1, 5] |
@ -1,145 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 100 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
eval_mode: retrieval |
||||
use_dali: False |
||||
to_static: False |
||||
|
||||
#feature postprocess |
||||
feature_normalize: False |
||||
feature_binarize: "sign" |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: RecModel |
||||
infer_output_key: features |
||||
infer_add_softmax: False |
||||
|
||||
Backbone: |
||||
name: PPLCNet_x2_5_Tanh |
||||
pretrained: True |
||||
use_ssld: True |
||||
class_num: 512 |
||||
Head: |
||||
name: FC |
||||
embedding_size: 512 |
||||
class_num: 185341 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.04 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/all_data |
||||
cls_label_path: ./dataset/all_data/train_reg_all_data.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
Query: |
||||
dataset: |
||||
name: VeriWild |
||||
image_root: ./dataset/Aliproduct/ |
||||
cls_label_path: ./dataset/Aliproduct/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Gallery: |
||||
dataset: |
||||
name: VeriWild |
||||
image_root: ./dataset/Aliproduct/ |
||||
cls_label_path: ./dataset/Aliproduct/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Metric: |
||||
Eval: |
||||
- Recallk: |
||||
topk: [1, 5] |
@ -1,188 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: true |
||||
eval_interval: 1 |
||||
epochs: 100 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
eval_mode: retrieval |
||||
use_dali: False |
||||
to_static: False |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: "DistillationModel" |
||||
infer_output_key: features |
||||
infer_add_softmax: False |
||||
is_rec: True |
||||
infer_model_name: "Student" |
||||
# if not null, its lengths should be same as models |
||||
pretrained_list: |
||||
# if not null, its lengths should be same as models |
||||
freeze_params_list: |
||||
- False |
||||
- False |
||||
models: |
||||
- Teacher: |
||||
name: RecModel |
||||
infer_output_key: features |
||||
infer_add_softmax: False |
||||
Backbone: |
||||
name: PPLCNet_x2_5 |
||||
pretrained: True |
||||
use_ssld: True |
||||
BackboneStopLayer: |
||||
name: "flatten" |
||||
Neck: |
||||
name: FC |
||||
embedding_size: 1280 |
||||
class_num: 512 |
||||
Head: |
||||
name: ArcMargin |
||||
embedding_size: 512 |
||||
class_num: 185341 |
||||
margin: 0.2 |
||||
scale: 30 |
||||
- Student: |
||||
name: RecModel |
||||
infer_output_key: features |
||||
infer_add_softmax: False |
||||
Backbone: |
||||
name: PPLCNet_x2_5 |
||||
pretrained: True |
||||
use_ssld: True |
||||
BackboneStopLayer: |
||||
name: "flatten" |
||||
Neck: |
||||
name: FC |
||||
embedding_size: 1280 |
||||
class_num: 512 |
||||
Head: |
||||
name: ArcMargin |
||||
embedding_size: 512 |
||||
class_num: 185341 |
||||
margin: 0.2 |
||||
scale: 30 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- DistillationGTCELoss: |
||||
weight: 1.0 |
||||
key: "logits" |
||||
model_names: ["Student", "Teacher"] |
||||
- DistillationDMLLoss: |
||||
weight: 1.0 |
||||
key: "logits" |
||||
model_name_pairs: |
||||
- ["Student", "Teacher"] |
||||
Eval: |
||||
- DistillationGTCELoss: |
||||
weight: 1.0 |
||||
model_names: ["Student"] |
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.02 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ |
||||
cls_label_path: ./dataset/train_reg_all_data.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
Query: |
||||
dataset: |
||||
name: VeriWild |
||||
image_root: ./dataset/Aliproduct/ |
||||
cls_label_path: ./dataset/Aliproduct/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Gallery: |
||||
dataset: |
||||
name: VeriWild |
||||
image_root: ./dataset/Aliproduct/ |
||||
cls_label_path: ./dataset/Aliproduct/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Metric: |
||||
Eval: |
||||
- Recallk: |
||||
topk: [1, 5] |
@ -1,193 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: true |
||||
eval_interval: 1 |
||||
epochs: 100 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
eval_mode: retrieval |
||||
use_dali: False |
||||
to_static: False |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: "DistillationModel" |
||||
infer_output_key: features |
||||
infer_add_softmax: False |
||||
is_rec: True |
||||
infer_model_name: "Student" |
||||
# if not null, its lengths should be same as models |
||||
pretrained_list: |
||||
# if not null, its lengths should be same as models |
||||
freeze_params_list: |
||||
- False |
||||
- False |
||||
models: |
||||
- Teacher: |
||||
name: RecModel |
||||
infer_output_key: features |
||||
infer_add_softmax: False |
||||
Backbone: |
||||
name: PPLCNet_x2_5 |
||||
pretrained: True |
||||
use_ssld: True |
||||
BackboneStopLayer: |
||||
name: "flatten" |
||||
Neck: |
||||
name: FC |
||||
embedding_size: 1280 |
||||
class_num: 512 |
||||
Head: |
||||
name: ArcMargin |
||||
embedding_size: 512 |
||||
class_num: 185341 |
||||
margin: 0.2 |
||||
scale: 30 |
||||
- Student: |
||||
name: RecModel |
||||
infer_output_key: features |
||||
infer_add_softmax: False |
||||
Backbone: |
||||
name: PPLCNet_x2_5 |
||||
pretrained: True |
||||
use_ssld: True |
||||
BackboneStopLayer: |
||||
name: "flatten" |
||||
Neck: |
||||
name: FC |
||||
embedding_size: 1280 |
||||
class_num: 512 |
||||
Head: |
||||
name: ArcMargin |
||||
embedding_size: 512 |
||||
class_num: 185341 |
||||
margin: 0.2 |
||||
scale: 30 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- DistillationGTCELoss: |
||||
weight: 1.0 |
||||
key: "logits" |
||||
model_names: ["Student", "Teacher"] |
||||
- DistillationDMLLoss: |
||||
weight: 1.0 |
||||
key: "logits" |
||||
model_name_pairs: |
||||
- ["Student", "Teacher"] |
||||
- DistillationDistanceLoss: |
||||
weight: 1.0 |
||||
key: "backbone" |
||||
model_name_pairs: |
||||
- ["Student", "Teacher"] |
||||
Eval: |
||||
- DistillationGTCELoss: |
||||
weight: 1.0 |
||||
model_names: ["Student"] |
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.02 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ |
||||
cls_label_path: ./dataset/train_reg_all_data.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
Query: |
||||
dataset: |
||||
name: VeriWild |
||||
image_root: ./dataset/Aliproduct/ |
||||
cls_label_path: ./dataset/Aliproduct/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Gallery: |
||||
dataset: |
||||
name: VeriWild |
||||
image_root: ./dataset/Aliproduct/ |
||||
cls_label_path: ./dataset/Aliproduct/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Metric: |
||||
Eval: |
||||
- Recallk: |
||||
topk: [1, 5] |
@ -1,129 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: AlexNet |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.01, 0.001, 0.0001, 0.00001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,131 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 256, 256] |
||||
save_inference_dir: ./inference |
||||
# training model under @to_static |
||||
to_static: False |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: CSPDarkNet53 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 256 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 288 |
||||
- CropImage: |
||||
size: 256 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 288 |
||||
- CropImage: |
||||
size: 256 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA102 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA102x |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA102x2 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA169 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA34 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA46_c |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA46x_c |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA60 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA60x |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DLA60x_c |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 200 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DPN107 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- MixupOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 200 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DPN131 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- MixupOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 200 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DPN68 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- MixupOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 200 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DPN92 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- MixupOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 200 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DPN98 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- MixupOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 200 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 256, 256] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DarkNet53 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 256 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- MixupOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 292 |
||||
- CropImage: |
||||
size: 256 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 292 |
||||
- CropImage: |
||||
size: 256 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,129 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: ResNet50 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,128 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: ResNet50 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,128 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: ResNet50 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- CutmixOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,131 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: ResNet50 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- Cutout: |
||||
n_holes: 1 |
||||
length: 112 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,134 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: ResNet50 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- GridMask: |
||||
d1: 96 |
||||
d2: 224 |
||||
rotate: 1 |
||||
ratio: 0.5 |
||||
mode: 0 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,129 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: ResNet50 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- HideAndSeek: |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,128 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: ResNet50 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- MixupOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,131 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: ResNet50 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- RandAugment: |
||||
num_layers: 2 |
||||
magnitude: 5 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,134 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: ResNet50 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.1 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- RandomErasing: |
||||
EPSILON: 0.5 |
||||
sl: 0.02 |
||||
sh: 0.4 |
||||
r1: 0.3 |
||||
mean: [0., 0., 0.] |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,156 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DeiT_base_distilled_patch16_224 |
||||
drop_path_rate : 0.1 |
||||
drop_rate : 0.0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: AdamW |
||||
beta1: 0.9 |
||||
beta2: 0.999 |
||||
epsilon: 1e-8 |
||||
weight_decay: 0.05 |
||||
no_weight_decay_name: norm cls_token pos_embed dist_token |
||||
one_dim_param_no_weight_decay: True |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1e-3 |
||||
eta_min: 1e-5 |
||||
warmup_epoch: 5 |
||||
warmup_start_lr: 1e-6 |
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- TimmAutoAugment: |
||||
config_str: rand-m9-mstd0.5-inc1 |
||||
interpolation: bicubic |
||||
img_size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- RandomErasing: |
||||
EPSILON: 0.25 |
||||
sl: 0.02 |
||||
sh: 1.0/3.0 |
||||
r1: 0.3 |
||||
attempt: 10 |
||||
use_log_aspect: True |
||||
mode: pixel |
||||
batch_transform_ops: |
||||
- OpSampler: |
||||
MixupOperator: |
||||
alpha: 0.8 |
||||
prob: 0.5 |
||||
CutmixOperator: |
||||
alpha: 1.0 |
||||
prob: 0.5 |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,156 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 384, 384] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DeiT_base_distilled_patch16_384 |
||||
drop_path_rate : 0.1 |
||||
drop_rate : 0.0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: AdamW |
||||
beta1: 0.9 |
||||
beta2: 0.999 |
||||
epsilon: 1e-8 |
||||
weight_decay: 0.05 |
||||
no_weight_decay_name: norm cls_token pos_embed dist_token |
||||
one_dim_param_no_weight_decay: True |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1e-3 |
||||
eta_min: 1e-5 |
||||
warmup_epoch: 5 |
||||
warmup_start_lr: 1e-6 |
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 384 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- TimmAutoAugment: |
||||
config_str: rand-m9-mstd0.5-inc1 |
||||
interpolation: bicubic |
||||
img_size: 384 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- RandomErasing: |
||||
EPSILON: 0.25 |
||||
sl: 0.02 |
||||
sh: 1.0/3.0 |
||||
r1: 0.3 |
||||
attempt: 10 |
||||
use_log_aspect: True |
||||
mode: pixel |
||||
batch_transform_ops: |
||||
- OpSampler: |
||||
MixupOperator: |
||||
alpha: 0.8 |
||||
prob: 0.5 |
||||
CutmixOperator: |
||||
alpha: 1.0 |
||||
prob: 0.5 |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 438 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 384 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 438 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 384 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,156 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DeiT_base_patch16_224 |
||||
drop_path_rate : 0.1 |
||||
drop_rate : 0.0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: AdamW |
||||
beta1: 0.9 |
||||
beta2: 0.999 |
||||
epsilon: 1e-8 |
||||
weight_decay: 0.05 |
||||
no_weight_decay_name: norm cls_token pos_embed dist_token |
||||
one_dim_param_no_weight_decay: True |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1e-3 |
||||
eta_min: 1e-5 |
||||
warmup_epoch: 5 |
||||
warmup_start_lr: 1e-6 |
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- TimmAutoAugment: |
||||
config_str: rand-m9-mstd0.5-inc1 |
||||
interpolation: bicubic |
||||
img_size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- RandomErasing: |
||||
EPSILON: 0.25 |
||||
sl: 0.02 |
||||
sh: 1.0/3.0 |
||||
r1: 0.3 |
||||
attempt: 10 |
||||
use_log_aspect: True |
||||
mode: pixel |
||||
batch_transform_ops: |
||||
- OpSampler: |
||||
MixupOperator: |
||||
alpha: 0.8 |
||||
prob: 0.5 |
||||
CutmixOperator: |
||||
alpha: 1.0 |
||||
prob: 0.5 |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,156 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 384, 384] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DeiT_base_patch16_384 |
||||
drop_path_rate : 0.1 |
||||
drop_rate : 0.0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: AdamW |
||||
beta1: 0.9 |
||||
beta2: 0.999 |
||||
epsilon: 1e-8 |
||||
weight_decay: 0.05 |
||||
no_weight_decay_name: norm cls_token pos_embed dist_token |
||||
one_dim_param_no_weight_decay: True |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1e-3 |
||||
eta_min: 1e-5 |
||||
warmup_epoch: 5 |
||||
warmup_start_lr: 1e-6 |
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 384 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- TimmAutoAugment: |
||||
config_str: rand-m9-mstd0.5-inc1 |
||||
interpolation: bicubic |
||||
img_size: 384 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- RandomErasing: |
||||
EPSILON: 0.25 |
||||
sl: 0.02 |
||||
sh: 1.0/3.0 |
||||
r1: 0.3 |
||||
attempt: 10 |
||||
use_log_aspect: True |
||||
mode: pixel |
||||
batch_transform_ops: |
||||
- OpSampler: |
||||
MixupOperator: |
||||
alpha: 0.8 |
||||
prob: 0.5 |
||||
CutmixOperator: |
||||
alpha: 1.0 |
||||
prob: 0.5 |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 438 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 384 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 438 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 384 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,156 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DeiT_small_distilled_patch16_224 |
||||
drop_path_rate : 0.1 |
||||
drop_rate : 0.0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: AdamW |
||||
beta1: 0.9 |
||||
beta2: 0.999 |
||||
epsilon: 1e-8 |
||||
weight_decay: 0.05 |
||||
no_weight_decay_name: norm cls_token pos_embed dist_token |
||||
one_dim_param_no_weight_decay: True |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1e-3 |
||||
eta_min: 1e-5 |
||||
warmup_epoch: 5 |
||||
warmup_start_lr: 1e-6 |
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- TimmAutoAugment: |
||||
config_str: rand-m9-mstd0.5-inc1 |
||||
interpolation: bicubic |
||||
img_size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- RandomErasing: |
||||
EPSILON: 0.25 |
||||
sl: 0.02 |
||||
sh: 1.0/3.0 |
||||
r1: 0.3 |
||||
attempt: 10 |
||||
use_log_aspect: True |
||||
mode: pixel |
||||
batch_transform_ops: |
||||
- OpSampler: |
||||
MixupOperator: |
||||
alpha: 0.8 |
||||
prob: 0.5 |
||||
CutmixOperator: |
||||
alpha: 1.0 |
||||
prob: 0.5 |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,156 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DeiT_small_patch16_224 |
||||
drop_path_rate : 0.1 |
||||
drop_rate : 0.0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: AdamW |
||||
beta1: 0.9 |
||||
beta2: 0.999 |
||||
epsilon: 1e-8 |
||||
weight_decay: 0.05 |
||||
no_weight_decay_name: norm cls_token pos_embed dist_token |
||||
one_dim_param_no_weight_decay: True |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1e-3 |
||||
eta_min: 1e-5 |
||||
warmup_epoch: 5 |
||||
warmup_start_lr: 1e-6 |
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- TimmAutoAugment: |
||||
config_str: rand-m9-mstd0.5-inc1 |
||||
interpolation: bicubic |
||||
img_size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- RandomErasing: |
||||
EPSILON: 0.25 |
||||
sl: 0.02 |
||||
sh: 1.0/3.0 |
||||
r1: 0.3 |
||||
attempt: 10 |
||||
use_log_aspect: True |
||||
mode: pixel |
||||
batch_transform_ops: |
||||
- OpSampler: |
||||
MixupOperator: |
||||
alpha: 0.8 |
||||
prob: 0.5 |
||||
CutmixOperator: |
||||
alpha: 1.0 |
||||
prob: 0.5 |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,156 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DeiT_tiny_distilled_patch16_224 |
||||
drop_path_rate : 0.1 |
||||
drop_rate : 0.0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: AdamW |
||||
beta1: 0.9 |
||||
beta2: 0.999 |
||||
epsilon: 1e-8 |
||||
weight_decay: 0.05 |
||||
no_weight_decay_name: norm cls_token pos_embed dist_token |
||||
one_dim_param_no_weight_decay: True |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1e-3 |
||||
eta_min: 1e-5 |
||||
warmup_epoch: 5 |
||||
warmup_start_lr: 1e-6 |
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- TimmAutoAugment: |
||||
config_str: rand-m9-mstd0.5-inc1 |
||||
interpolation: bicubic |
||||
img_size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- RandomErasing: |
||||
EPSILON: 0.25 |
||||
sl: 0.02 |
||||
sh: 1.0/3.0 |
||||
r1: 0.3 |
||||
attempt: 10 |
||||
use_log_aspect: True |
||||
mode: pixel |
||||
batch_transform_ops: |
||||
- OpSampler: |
||||
MixupOperator: |
||||
alpha: 0.8 |
||||
prob: 0.5 |
||||
CutmixOperator: |
||||
alpha: 1.0 |
||||
prob: 0.5 |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,156 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 300 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DeiT_tiny_patch16_224 |
||||
drop_path_rate : 0.1 |
||||
drop_rate : 0.0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
Optimizer: |
||||
name: AdamW |
||||
beta1: 0.9 |
||||
beta2: 0.999 |
||||
epsilon: 1e-8 |
||||
weight_decay: 0.05 |
||||
no_weight_decay_name: norm cls_token pos_embed dist_token |
||||
one_dim_param_no_weight_decay: True |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1e-3 |
||||
eta_min: 1e-5 |
||||
warmup_epoch: 5 |
||||
warmup_start_lr: 1e-6 |
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- TimmAutoAugment: |
||||
config_str: rand-m9-mstd0.5-inc1 |
||||
interpolation: bicubic |
||||
img_size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- RandomErasing: |
||||
EPSILON: 0.25 |
||||
sl: 0.02 |
||||
sh: 1.0/3.0 |
||||
r1: 0.3 |
||||
attempt: 10 |
||||
use_log_aspect: True |
||||
mode: pixel |
||||
batch_transform_ops: |
||||
- OpSampler: |
||||
MixupOperator: |
||||
alpha: 0.8 |
||||
prob: 0.5 |
||||
CutmixOperator: |
||||
alpha: 1.0 |
||||
prob: 0.5 |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
interpolation: bicubic |
||||
backend: pil |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DenseNet121 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DenseNet161 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DenseNet169 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DenseNet201 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: DenseNet264 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,157 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: "./output/" |
||||
device: "gpu" |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: "./inference" |
||||
use_dali: false |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: "DistillationModel" |
||||
class_num: &class_num 1000 |
||||
# if not null, its lengths should be same as models |
||||
pretrained_list: |
||||
# if not null, its lengths should be same as models |
||||
freeze_params_list: |
||||
- True |
||||
- False |
||||
models: |
||||
- Teacher: |
||||
name: MobileNetV3_large_x1_0 |
||||
class_num: *class_num |
||||
pretrained: True |
||||
use_ssld: True |
||||
dropout_prob: null |
||||
- Student: |
||||
name: MobileNetV3_small_x1_0 |
||||
class_num: *class_num |
||||
pretrained: False |
||||
dropout_prob: null |
||||
|
||||
infer_model_name: "Student" |
||||
|
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- DistillationCELoss: |
||||
weight: 1.0 |
||||
model_name_pairs: |
||||
- ["Student", "Teacher"] |
||||
Eval: |
||||
- DistillationGTCELoss: |
||||
weight: 1.0 |
||||
model_names: ["Student"] |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.65 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: "./dataset/ILSVRC2012/" |
||||
cls_label_path: "./dataset/ILSVRC2012/train_list.txt" |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 6 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: "./dataset/ILSVRC2012/" |
||||
cls_label_path: "./dataset/ILSVRC2012/val_list.txt" |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 0.00392157 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 6 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: "docs/images/inference_deployment/whl_demo.jpg" |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: DistillationPostProcess |
||||
func: Topk |
||||
topk: 5 |
||||
class_id_map_file: "ppcls/utils/imagenet1k_label_list.txt" |
||||
|
||||
Metric: |
||||
Train: |
||||
- DistillationTopkAcc: |
||||
model_key: "Student" |
||||
topk: [1, 5] |
||||
Eval: |
||||
- DistillationTopkAcc: |
||||
model_key: "Student" |
||||
topk: [1, 5] |
@ -1,129 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
# model architecture |
||||
Arch: |
||||
name: ESNet_x0_25 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.8 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,129 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
# model architecture |
||||
Arch: |
||||
name: ESNet_x0_5 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.8 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,129 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
# model architecture |
||||
Arch: |
||||
name: ESNet_x0_75 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.8 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,129 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
# model architecture |
||||
Arch: |
||||
name: ESNet_x1_0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.8 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,133 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: EfficientNetB0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: RMSProp |
||||
momentum: 0.9 |
||||
rho: 0.9 |
||||
epsilon: 0.001 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.032 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,133 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 240, 240] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: EfficientNetB1 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: RMSProp |
||||
momentum: 0.9 |
||||
rho: 0.9 |
||||
epsilon: 0.001 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.032 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 240 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 272 |
||||
- CropImage: |
||||
size: 240 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 272 |
||||
- CropImage: |
||||
size: 240 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,133 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 260, 260] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: EfficientNetB2 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: RMSProp |
||||
momentum: 0.9 |
||||
rho: 0.9 |
||||
epsilon: 0.001 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.032 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 260 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 292 |
||||
- CropImage: |
||||
size: 260 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 292 |
||||
- CropImage: |
||||
size: 260 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,133 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 300, 300] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: EfficientNetB3 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: RMSProp |
||||
momentum: 0.9 |
||||
rho: 0.9 |
||||
epsilon: 0.001 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.032 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 300 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 332 |
||||
- CropImage: |
||||
size: 300 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 332 |
||||
- CropImage: |
||||
size: 300 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,133 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 380, 380] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: EfficientNetB4 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: RMSProp |
||||
momentum: 0.9 |
||||
rho: 0.9 |
||||
epsilon: 0.001 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.032 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 380 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 412 |
||||
- CropImage: |
||||
size: 380 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 412 |
||||
- CropImage: |
||||
size: 380 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,133 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 456, 456] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: EfficientNetB5 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: RMSProp |
||||
momentum: 0.9 |
||||
rho: 0.9 |
||||
epsilon: 0.001 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.032 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 456 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 488 |
||||
- CropImage: |
||||
size: 456 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 488 |
||||
- CropImage: |
||||
size: 456 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,133 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 528, 528] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: EfficientNetB6 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: RMSProp |
||||
momentum: 0.9 |
||||
rho: 0.9 |
||||
epsilon: 0.001 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.032 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 528 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 560 |
||||
- CropImage: |
||||
size: 528 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 560 |
||||
- CropImage: |
||||
size: 528 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,133 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 600, 600] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: EfficientNetB7 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: RMSProp |
||||
momentum: 0.9 |
||||
rho: 0.9 |
||||
epsilon: 0.001 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.032 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 600 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 632 |
||||
- CropImage: |
||||
size: 600 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 128 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 632 |
||||
- CropImage: |
||||
size: 600 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: GhostNet_x0_5 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.8 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00004 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: GhostNet_x1_0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.8 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00004 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: GhostNet_x1_3 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.8 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00004 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HRNet_W18_C |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HRNet_W30_C |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HRNet_W32_C |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HRNet_W40_C |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HRNet_W44_C |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HRNet_W48_C |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HRNet_W64_C |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HarDNet39_ds |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HarDNet68 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HarDNet68_ds |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: HarDNet85 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,129 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 200 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: GoogLeNet |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- GoogLeNetLoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- GoogLeNetLoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.01 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- GoogLeNetTopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- GoogLeNetTopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 200 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 299, 299] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: InceptionV3 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.045 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 299 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- MixupOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 320 |
||||
- CropImage: |
||||
size: 299 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 320 |
||||
- CropImage: |
||||
size: 299 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 200 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 299, 299] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: InceptionV4 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.045 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 299 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
batch_transform_ops: |
||||
- MixupOperator: |
||||
alpha: 0.2 |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 320 |
||||
- CropImage: |
||||
size: 299 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 320 |
||||
- CropImage: |
||||
size: 299 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: LeViT_128 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: LeViT_128S |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: LeViT_192 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: LeViT_256 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: LeViT_384 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,132 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
# training model under @to_static |
||||
to_static: False |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MixNet_L |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,132 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
# training model under @to_static |
||||
to_static: False |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MixNet_M |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,132 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
# training model under @to_static |
||||
to_static: False |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MixNet_S |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.0001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,132 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
# training model under @to_static |
||||
to_static: False |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV1 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 8 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV1_x0_25 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV1_x0_5 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 120 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV1_x0_75 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Piecewise |
||||
learning_rate: 0.1 |
||||
decay_epochs: [30, 60, 90] |
||||
values: [0.1, 0.01, 0.001, 0.0001] |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 240 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
# training model under @to_static |
||||
to_static: False |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV2 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.045 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00004 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 8 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,128 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 240 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV2_x0_25 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.045 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,128 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 240 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV2_x0_5 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.045 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00003 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,128 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 240 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV2_x0_75 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.045 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00004 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,128 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 240 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV2_x1_5 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.045 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00004 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,128 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 240 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV2_x2_0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.045 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00004 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV3_large_x0_35 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1.3 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00002 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV3_large_x0_5 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1.3 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00002 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV3_large_x0_75 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1.3 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00002 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,131 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV3_large_x1_0 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 0.65 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00002 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- AutoAugment: |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 256 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 8 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV3_large_x1_25 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1.3 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00004 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV3_small_x0_35 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1.3 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
@ -1,130 +0,0 @@ |
||||
# global configs |
||||
Global: |
||||
checkpoints: null |
||||
pretrained_model: null |
||||
output_dir: ./output/ |
||||
device: gpu |
||||
save_interval: 1 |
||||
eval_during_train: True |
||||
eval_interval: 1 |
||||
epochs: 360 |
||||
print_batch_step: 10 |
||||
use_visualdl: False |
||||
# used for static mode and model export |
||||
image_shape: [3, 224, 224] |
||||
save_inference_dir: ./inference |
||||
|
||||
# model architecture |
||||
Arch: |
||||
name: MobileNetV3_small_x0_5 |
||||
class_num: 1000 |
||||
|
||||
# loss function config for traing/eval process |
||||
Loss: |
||||
Train: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
epsilon: 0.1 |
||||
Eval: |
||||
- CELoss: |
||||
weight: 1.0 |
||||
|
||||
|
||||
Optimizer: |
||||
name: Momentum |
||||
momentum: 0.9 |
||||
lr: |
||||
name: Cosine |
||||
learning_rate: 1.3 |
||||
warmup_epoch: 5 |
||||
regularizer: |
||||
name: 'L2' |
||||
coeff: 0.00001 |
||||
|
||||
|
||||
# data loader for train and eval |
||||
DataLoader: |
||||
Train: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/train_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- RandCropImage: |
||||
size: 224 |
||||
- RandFlipImage: |
||||
flip_code: 1 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
|
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 512 |
||||
drop_last: False |
||||
shuffle: True |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Eval: |
||||
dataset: |
||||
name: ImageNetDataset |
||||
image_root: ./dataset/ILSVRC2012/ |
||||
cls_label_path: ./dataset/ILSVRC2012/val_list.txt |
||||
transform_ops: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
sampler: |
||||
name: DistributedBatchSampler |
||||
batch_size: 64 |
||||
drop_last: False |
||||
shuffle: False |
||||
loader: |
||||
num_workers: 4 |
||||
use_shared_memory: True |
||||
|
||||
Infer: |
||||
infer_imgs: docs/images/inference_deployment/whl_demo.jpg |
||||
batch_size: 10 |
||||
transforms: |
||||
- DecodeImage: |
||||
to_rgb: True |
||||
channel_first: False |
||||
- ResizeImage: |
||||
resize_short: 256 |
||||
- CropImage: |
||||
size: 224 |
||||
- NormalizeImage: |
||||
scale: 1.0/255.0 |
||||
mean: [0.485, 0.456, 0.406] |
||||
std: [0.229, 0.224, 0.225] |
||||
order: '' |
||||
- ToCHWImage: |
||||
PostProcess: |
||||
name: Topk |
||||
topk: 5 |
||||
class_id_map_file: ppcls/utils/imagenet1k_label_list.txt |
||||
|
||||
Metric: |
||||
Train: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
||||
Eval: |
||||
- TopkAcc: |
||||
topk: [1, 5] |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue