Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
b9786424
P
PaddleClas
项目概览
PaddlePaddle
/
PaddleClas
1 年多 前同步成功
通知
115
Star
4999
Fork
1114
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
6
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleClas
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
6
合并请求
6
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
b9786424
编写于
6月 10, 2021
作者:
C
cuicheng01
提交者:
GitHub
6月 10, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #819 from cuicheng01/develop_reg
Update configs
上级
4afc61a3
d187ce20
变更
40
展开全部
隐藏空白更改
内联
并排
Showing
40 changed file
with
1935 addition
and
1933 deletion
+1935
-1933
ppcls/configs/ImageNet/HRNet/HRNet_W18_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W18_C.yaml
+59
-59
ppcls/configs/ImageNet/HRNet/HRNet_W30_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W30_C.yaml
+59
-59
ppcls/configs/ImageNet/HRNet/HRNet_W32_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W32_C.yaml
+59
-59
ppcls/configs/ImageNet/HRNet/HRNet_W40_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W40_C.yaml
+59
-59
ppcls/configs/ImageNet/HRNet/HRNet_W44_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W44_C.yaml
+59
-57
ppcls/configs/ImageNet/HRNet/HRNet_W48_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W48_C.yaml
+59
-59
ppcls/configs/ImageNet/HRNet/HRNet_W64_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W64_C.yaml
+59
-59
ppcls/configs/ImageNet/Ineption/InceptionV3.yaml
ppcls/configs/ImageNet/Ineption/InceptionV3.yaml
+61
-62
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1.yaml
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1.yaml
+60
-60
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_25.yaml
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_25.yaml
+60
-60
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_5.yaml
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_5.yaml
+60
-60
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_75.yaml
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_75.yaml
+60
-60
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_35.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_35.yaml
+59
-59
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_5.yaml
.../configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_5.yaml
+59
-59
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_75.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_75.yaml
+59
-59
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_0.yaml
.../configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_0.yaml
+60
-60
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_25.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_25.yaml
+60
-60
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_35.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_35.yaml
+60
-60
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_5.yaml
.../configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_5.yaml
+60
-60
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_75.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_75.yaml
+59
-59
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_0.yaml
.../configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_0.yaml
+59
-59
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_25.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_25.yaml
+59
-59
ppcls/configs/ImageNet/ResNet/ResNet101.yaml
ppcls/configs/ImageNet/ResNet/ResNet101.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet101_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet101_vd.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet152.yaml
ppcls/configs/ImageNet/ResNet/ResNet152.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet152_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet152_vd.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet18.yaml
ppcls/configs/ImageNet/ResNet/ResNet18.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet18_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet18_vd.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet200_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet200_vd.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet34.yaml
ppcls/configs/ImageNet/ResNet/ResNet34.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet34_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet34_vd.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet50.yaml
ppcls/configs/ImageNet/ResNet/ResNet50.yaml
+19
-19
ppcls/configs/ImageNet/ResNet/ResNet50_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet50_vd.yaml
+19
-19
ppcls/configs/ImageNet/VGG/VGG11.yaml
ppcls/configs/ImageNet/VGG/VGG11.yaml
+59
-59
ppcls/configs/ImageNet/VGG/VGG13.yaml
ppcls/configs/ImageNet/VGG/VGG13.yaml
+59
-59
ppcls/configs/ImageNet/VGG/VGG16.yaml
ppcls/configs/ImageNet/VGG/VGG16.yaml
+59
-59
ppcls/configs/ImageNet/VGG/VGG19.yaml
ppcls/configs/ImageNet/VGG/VGG19.yaml
+59
-59
ppcls/configs/Products/ResNet50_vd_Aliproduct.yaml
ppcls/configs/Products/ResNet50_vd_Aliproduct.yaml
+60
-60
ppcls/configs/Products/ResNet50_vd_Inshop.yaml
ppcls/configs/Products/ResNet50_vd_Inshop.yaml
+63
-62
ppcls/configs/Products/ResNet50_vd_SOP.yaml
ppcls/configs/Products/ResNet50_vd_SOP.yaml
+59
-59
未找到文件。
ppcls/configs/ImageNet/HRNet/HRNet_W18_C.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
HRNet_W18_C"
name
:
HRNet_W18_C
# loss function config for traing/eval process
Loss
:
...
...
@@ -46,80 +46,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/HRNet/HRNet_W30_C.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
HRNet_W30_C"
name
:
HRNet_W30_C
# loss function config for traing/eval process
Loss
:
...
...
@@ -46,80 +46,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/HRNet/HRNet_W32_C.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
HRNet_W32_C"
name
:
HRNet_W32_C
# loss function config for traing/eval process
Loss
:
...
...
@@ -46,80 +46,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/HRNet/HRNet_W40_C.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
HRNet_W40_C"
name
:
HRNet_W40_C
# loss function config for traing/eval process
Loss
:
...
...
@@ -46,80 +46,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/HRNet/HRNet_W44_C.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
HRNet_W44_C"
name
:
HRNet_W44_C
# loss function config for traing/eval process
Loss
:
...
...
@@ -46,78 +46,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
ResizeImage
:
size
:
224
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/HRNet/HRNet_W48_C.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
HRNet_W48_C"
name
:
HRNet_W48_C
# loss function config for traing/eval process
Loss
:
...
...
@@ -46,80 +46,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/HRNet/HRNet_W64_C.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
HRNet_W64_C"
name
:
HRNet_W64_C
# loss function config for traing/eval process
Loss
:
...
...
@@ -46,80 +46,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/Ineption/InceptionV3.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -12,18 +12,19 @@ Global:
print_batch_step
:
10
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
2
24
,
224
]
save_inference_dir
:
"
./inference"
image_shape
:
[
3
,
2
99
,
299
]
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
InceptionV3"
name
:
InceptionV3
# loss function config for traing/eval process
Loss
:
Train
:
-
CELoss
:
weight
:
1.0
epsilon
:
0.1
Eval
:
-
CELoss
:
weight
:
1.0
...
...
@@ -35,8 +36,6 @@ Optimizer:
lr
:
name
:
Cosine
learning_rate
:
0.045
decay_epochs
:
[
30
,
60
,
90
]
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
regularizer
:
name
:
'
L2'
coeff
:
0.0001
...
...
@@ -46,80 +45,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
RandCropImage
:
size
:
299
-
RandFlipImage
:
flip_code
:
1
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
:
'
'
sampler
:
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
ResizeImage
:
resize_short
:
320
-
CropImage
:
size
:
299
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV1"
name
:
MobileNetV1
# loss function config for traing/eval process
Loss
:
...
...
@@ -39,87 +39,87 @@ Optimizer:
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
regularizer
:
name
:
'
L2'
coeff
:
0.000
0
3
coeff
:
0.0003
# 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
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_25.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV1_x0_25"
name
:
MobileNetV1_x0_25
# loss function config for traing/eval process
Loss
:
...
...
@@ -39,87 +39,87 @@ Optimizer:
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
regularizer
:
name
:
'
L2'
coeff
:
0.000
0
3
coeff
:
0.0003
# 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
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_5.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV1_x0_5"
name
:
MobileNetV1_x0_5
# loss function config for traing/eval process
Loss
:
...
...
@@ -39,87 +39,87 @@ Optimizer:
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
regularizer
:
name
:
'
L2'
coeff
:
0.000
0
3
coeff
:
0.0003
# 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
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_75.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV1_x0_75"
name
:
MobileNetV1_x0_75
# loss function config for traing/eval process
Loss
:
...
...
@@ -39,87 +39,87 @@ Optimizer:
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
regularizer
:
name
:
'
L2'
coeff
:
0.000
0
3
coeff
:
0.0003
# 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
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_35.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_large_x0_35"
name
:
MobileNetV3_large_x0_35
# loss function config for traing/eval process
Loss
:
...
...
@@ -45,80 +45,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_5.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_large_x0_5"
name
:
MobileNetV3_large_x0_5
# loss function config for traing/eval process
Loss
:
...
...
@@ -45,80 +45,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_75.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_large_x0_75"
name
:
MobileNetV3_large_x0_75
# loss function config for traing/eval process
Loss
:
...
...
@@ -45,80 +45,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_0.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_large_x1_0"
name
:
MobileNetV3_large_x1_0
# loss function config for traing/eval process
Loss
:
...
...
@@ -45,81 +45,81 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
RandCropImage
:
size
:
224
-
RandFlipImage
:
flip_code
:
1
-
AutoAugment
:
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
:
512
drop_last
:
False
shuffle
:
True
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_25.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_large_x1_25"
name
:
MobileNetV3_large_x1_25
# loss function config for traing/eval process
Loss
:
...
...
@@ -38,87 +38,87 @@ Optimizer:
learning_rate
:
1.3
regularizer
:
name
:
'
L2'
coeff
:
0.0000
2
coeff
:
0.0000
4
# 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
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_35.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_small_x0_35"
name
:
MobileNetV3_small_x0_35
# loss function config for traing/eval process
Loss
:
...
...
@@ -38,87 +38,87 @@ Optimizer:
learning_rate
:
1.3
regularizer
:
name
:
'
L2'
coeff
:
0.0000
2
coeff
:
0.0000
1
# 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
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_5.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_small_x0_5"
name
:
MobileNetV3_small_x0_5
# loss function config for traing/eval process
Loss
:
...
...
@@ -38,87 +38,87 @@ Optimizer:
learning_rate
:
1.3
regularizer
:
name
:
'
L2'
coeff
:
0.0000
2
coeff
:
0.0000
1
# 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
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_75.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_small_x0_75"
name
:
MobileNetV3_small_x0_75
# loss function config for traing/eval process
Loss
:
...
...
@@ -45,80 +45,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_0.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_small_x1_0"
name
:
MobileNetV3_small_x1_0
# loss function config for traing/eval process
Loss
:
...
...
@@ -45,80 +45,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_25.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
MobileNetV3_small_x1_25"
name
:
MobileNetV3_small_x1_25
# loss function config for traing/eval process
Loss
:
...
...
@@ -45,80 +45,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
512
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/ResNet/ResNet101.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet101"
name
:
ResNet101
# loss function config for traing/eval process
Loss
:
...
...
@@ -30,10 +30,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Piecewise"
name
:
Piecewise
learning_rate
:
0.1
decay_epochs
:
[
30
,
60
,
90
]
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
...
...
@@ -46,9 +46,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -61,20 +61,20 @@ DataLoader:
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -86,16 +86,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -112,9 +112,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet101_vd.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet101_vd"
name
:
ResNet101_vd
# loss function config for traing/eval process
Loss
:
...
...
@@ -31,10 +31,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Cosine"
name
:
Cosine
learning_rate
:
0.1
regularizer
:
name
:
'
L2'
...
...
@@ -45,9 +45,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -63,20 +63,20 @@ DataLoader:
alpha
:
0.2
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -88,16 +88,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -114,9 +114,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet152.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet152"
name
:
ResNet152
# loss function config for traing/eval process
Loss
:
...
...
@@ -30,10 +30,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Piecewise"
name
:
Piecewise
learning_rate
:
0.1
decay_epochs
:
[
30
,
60
,
90
]
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
...
...
@@ -46,9 +46,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -61,20 +61,20 @@ DataLoader:
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -86,16 +86,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -112,9 +112,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet152_vd.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet152_vd"
name
:
ResNet152_vd
# loss function config for traing/eval process
Loss
:
...
...
@@ -31,10 +31,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Cosine"
name
:
Cosine
learning_rate
:
0.1
regularizer
:
name
:
'
L2'
...
...
@@ -45,9 +45,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -63,20 +63,20 @@ DataLoader:
alpha
:
0.2
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -88,16 +88,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -114,9 +114,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet18.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet18"
name
:
ResNet18
# loss function config for traing/eval process
Loss
:
...
...
@@ -30,10 +30,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Piecewise"
name
:
Piecewise
learning_rate
:
0.1
decay_epochs
:
[
30
,
60
,
90
]
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
...
...
@@ -46,9 +46,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -61,20 +61,20 @@ DataLoader:
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -86,16 +86,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -112,9 +112,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet18_vd.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet18_vd"
name
:
ResNet18_vd
# loss function config for traing/eval process
Loss
:
...
...
@@ -31,10 +31,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Cosine"
name
:
Cosine
learning_rate
:
0.1
regularizer
:
name
:
'
L2'
...
...
@@ -45,9 +45,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -63,20 +63,20 @@ DataLoader:
alpha
:
0.2
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -88,16 +88,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -114,9 +114,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet200_vd.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet200_vd"
name
:
ResNet200_vd
# loss function config for traing/eval process
Loss
:
...
...
@@ -31,10 +31,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Cosine"
name
:
Cosine
learning_rate
:
0.1
regularizer
:
name
:
'
L2'
...
...
@@ -45,9 +45,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -63,20 +63,20 @@ DataLoader:
alpha
:
0.2
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -88,16 +88,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -114,9 +114,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet34.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet34"
name
:
ResNet34
# loss function config for traing/eval process
Loss
:
...
...
@@ -30,10 +30,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Piecewise"
name
:
Piecewise
learning_rate
:
0.1
decay_epochs
:
[
30
,
60
,
90
]
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
...
...
@@ -46,9 +46,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -61,20 +61,20 @@ DataLoader:
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -86,16 +86,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -112,9 +112,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet34_vd.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet34_vd"
name
:
ResNet34_vd
# loss function config for traing/eval process
Loss
:
...
...
@@ -31,10 +31,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Cosine"
name
:
Cosine
learning_rate
:
0.1
regularizer
:
name
:
'
L2'
...
...
@@ -45,9 +45,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -63,20 +63,20 @@ DataLoader:
alpha
:
0.2
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -88,16 +88,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -114,9 +114,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet50.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet50"
name
:
ResNet50
# loss function config for traing/eval process
Loss
:
...
...
@@ -30,10 +30,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Piecewise"
name
:
Piecewise
learning_rate
:
0.1
decay_epochs
:
[
30
,
60
,
90
]
values
:
[
0.1
,
0.01
,
0.001
,
0.0001
]
...
...
@@ -46,9 +46,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -61,20 +61,20 @@ DataLoader:
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -86,16 +86,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -112,9 +112,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/ResNet/ResNet50_vd.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
ResNet50_vd"
name
:
ResNet50_vd
# loss function config for traing/eval process
Loss
:
...
...
@@ -31,10 +31,10 @@ Loss:
Optimizer
:
name
:
"
Momentum"
name
:
Momentum
momentum
:
0.9
lr
:
name
:
"
Cosine"
name
:
Cosine
learning_rate
:
0.1
regularizer
:
name
:
'
L2'
...
...
@@ -45,9 +45,9 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
RandCropImage
:
size
:
224
...
...
@@ -63,20 +63,20 @@ DataLoader:
alpha
:
0.2
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
"
ImageNetDataset"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
ResizeImage
:
resize_short
:
256
...
...
@@ -88,16 +88,16 @@ DataLoader:
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
sampler
:
name
:
"
DistributedBatchSampler"
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/whl/demo.jpg
batch_size
:
10
transforms
:
-
DecodeImage
:
...
...
@@ -114,9 +114,9 @@ Infer:
order
:
'
'
-
ToCHWImage
:
PostProcess
:
name
:
"
Topk"
name
:
Topk
topk
:
5
class_id_map_file
:
"
ppcls/utils/imagenet1k_label_list.txt"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
...
...
ppcls/configs/ImageNet/VGG/VGG11.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
VGG11"
name
:
VGG11
# loss function config for traing/eval process
Loss
:
...
...
@@ -44,80 +44,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
128
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/VGG/VGG13.yaml
浏览文件 @
b9786424
...
...
@@ -2,8 +2,8 @@
Global
:
checkpoints
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
device
:
"
gpu"
output_dir
:
./output/
device
:
gpu
class_num
:
1000
save_interval
:
1
eval_during_train
:
True
...
...
@@ -13,11 +13,11 @@ Global:
use_visualdl
:
False
# used for static mode and model export
image_shape
:
[
3
,
224
,
224
]
save_inference_dir
:
"
./inference"
save_inference_dir
:
./inference
# model architecture
Arch
:
name
:
"
VGG13"
name
:
VGG13
# loss function config for traing/eval process
Loss
:
...
...
@@ -44,80 +44,80 @@ Optimizer:
DataLoader
:
Train
:
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/train_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/train_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
True
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Eval
:
# TOTO: modify to the latest trainer
dataset
:
name
:
ImageNetDataset
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
-
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
:
'
'
name
:
ImageNetDataset
image_root
:
./dataset/ILSVRC2012/
cls_label_path
:
./dataset/ILSVRC2012/val_list.txt
transform_ops
:
-
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
name
:
DistributedBatchSampler
batch_size
:
64
drop_last
:
False
shuffle
:
False
loader
:
num_workers
:
6
use_shared_memory
:
True
num_workers
:
4
use_shared_memory
:
True
Infer
:
infer_imgs
:
"
docs/images/whl/demo.jpg"
infer_imgs
:
docs/images/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
:
-
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"
class_id_map_file
:
ppcls/utils/imagenet1k_label_list.txt
Metric
:
Train
:
Train
:
-
TopkAcc
:
topk
:
[
1
,
5
]
Eval
:
Eval
:
-
TopkAcc
:
topk
:
[
1
,
5
]
ppcls/configs/ImageNet/VGG/VGG16.yaml
浏览文件 @
b9786424
此差异已折叠。
点击以展开。
ppcls/configs/ImageNet/VGG/VGG19.yaml
浏览文件 @
b9786424
此差异已折叠。
点击以展开。
ppcls/configs/Products/ResNet50_vd_Aliproduct.yaml
浏览文件 @
b9786424
此差异已折叠。
点击以展开。
ppcls/configs/Products/ResNet50_vd_Inshop.yaml
浏览文件 @
b9786424
此差异已折叠。
点击以展开。
ppcls/configs/Products/ResNet50_vd_SOP.yaml
浏览文件 @
b9786424
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录