Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
1e8a020f
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看板
提交
1e8a020f
编写于
6月 02, 2021
作者:
C
cuicheng01
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug of image transforms
上级
d13cb223
变更
37
隐藏空白更改
内联
并排
Showing
37 changed file
with
89 addition
and
6 deletion
+89
-6
ppcls/configs/ImageNet/HRNet/HRNet_W18_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W18_C.yaml
+2
-0
ppcls/configs/ImageNet/HRNet/HRNet_W30_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W30_C.yaml
+2
-0
ppcls/configs/ImageNet/HRNet/HRNet_W32_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W32_C.yaml
+2
-0
ppcls/configs/ImageNet/HRNet/HRNet_W40_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W40_C.yaml
+2
-0
ppcls/configs/ImageNet/HRNet/HRNet_W48_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W48_C.yaml
+0
-2
ppcls/configs/ImageNet/HRNet/HRNet_W64_C.yaml
ppcls/configs/ImageNet/HRNet/HRNet_W64_C.yaml
+2
-0
ppcls/configs/ImageNet/Ineption/InceptionV3.yaml
ppcls/configs/ImageNet/Ineption/InceptionV3.yaml
+3
-1
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1.yaml
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1.yaml
+2
-0
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_25.yaml
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_25.yaml
+2
-0
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_5.yaml
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_5.yaml
+2
-0
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_75.yaml
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_75.yaml
+2
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_35.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_35.yaml
+3
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_5.yaml
.../configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_5.yaml
+3
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_75.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_75.yaml
+3
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_0.yaml
.../configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_0.yaml
+3
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_25.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_25.yaml
+3
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_35.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_35.yaml
+3
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_5.yaml
.../configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_5.yaml
+3
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_75.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_75.yaml
+3
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_0.yaml
.../configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_0.yaml
+3
-0
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_25.yaml
...configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_25.yaml
+3
-0
ppcls/configs/ImageNet/ResNet/ResNet101.yaml
ppcls/configs/ImageNet/ResNet/ResNet101.yaml
+2
-0
ppcls/configs/ImageNet/ResNet/ResNet101_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet101_vd.yaml
+2
-0
ppcls/configs/ImageNet/ResNet/ResNet152.yaml
ppcls/configs/ImageNet/ResNet/ResNet152.yaml
+2
-0
ppcls/configs/ImageNet/ResNet/ResNet152_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet152_vd.yaml
+2
-0
ppcls/configs/ImageNet/ResNet/ResNet18.yaml
ppcls/configs/ImageNet/ResNet/ResNet18.yaml
+2
-0
ppcls/configs/ImageNet/ResNet/ResNet18_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet18_vd.yaml
+2
-0
ppcls/configs/ImageNet/ResNet/ResNet200_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet200_vd.yaml
+2
-0
ppcls/configs/ImageNet/ResNet/ResNet34.yaml
ppcls/configs/ImageNet/ResNet/ResNet34.yaml
+2
-0
ppcls/configs/ImageNet/ResNet/ResNet34_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet34_vd.yaml
+3
-1
ppcls/configs/ImageNet/ResNet/ResNet50.yaml
ppcls/configs/ImageNet/ResNet/ResNet50.yaml
+3
-1
ppcls/configs/ImageNet/ResNet/ResNet50_vd.yaml
ppcls/configs/ImageNet/ResNet/ResNet50_vd.yaml
+2
-0
ppcls/configs/ImageNet/VGG/VGG11.yaml
ppcls/configs/ImageNet/VGG/VGG11.yaml
+2
-0
ppcls/configs/ImageNet/VGG/VGG13.yaml
ppcls/configs/ImageNet/VGG/VGG13.yaml
+2
-0
ppcls/configs/ImageNet/VGG/VGG16.yaml
ppcls/configs/ImageNet/VGG/VGG16.yaml
+2
-0
ppcls/configs/ImageNet/VGG/VGG19.yaml
ppcls/configs/ImageNet/VGG/VGG19.yaml
+2
-0
ppcls/data/dataset/imagenet_dataset.py
ppcls/data/dataset/imagenet_dataset.py
+6
-1
未找到文件。
ppcls/configs/ImageNet/HRNet/HRNet_W18_C.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/HRNet/HRNet_W30_C.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/HRNet/HRNet_W32_C.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/HRNet/HRNet_W40_C.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/HRNet/HRNet_W48_C.yaml
浏览文件 @
1e8a020f
...
@@ -76,8 +76,6 @@ DataLoader:
...
@@ -76,8 +76,6 @@ DataLoader:
image_root
:
"
./dataset/ILSVRC2012/"
image_root
:
"
./dataset/ILSVRC2012/"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
mean
:
[
0.485
,
0.456
,
0.406
]
...
...
ppcls/configs/ImageNet/HRNet/HRNet_W64_C.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/Ineption/InceptionV3.yaml
浏览文件 @
1e8a020f
...
@@ -77,7 +77,9 @@ DataLoader:
...
@@ -77,7 +77,9 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
size
:
224
resize_short
:
320
-
CropImage
:
size
:
299
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
mean
:
[
0.485
,
0.456
,
0.406
]
...
...
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_25.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_5.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV1/MobileNetV1_x0_75.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_35.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_5.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x0_75.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_0.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_large_x1_25.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_35.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_5.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x0_75.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_0.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/MobileNetV3/MobileNetV3_small_x1_25.yaml
浏览文件 @
1e8a020f
...
@@ -24,6 +24,7 @@ Loss:
...
@@ -24,6 +24,7 @@ Loss:
Train
:
Train
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
epsilon
:
0.1
Eval
:
Eval
:
-
CELoss
:
-
CELoss
:
weight
:
1.0
weight
:
1.0
...
@@ -75,6 +76,8 @@ DataLoader:
...
@@ -75,6 +76,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet101.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet101_vd.yaml
浏览文件 @
1e8a020f
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet152.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet152_vd.yaml
浏览文件 @
1e8a020f
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet18.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet18_vd.yaml
浏览文件 @
1e8a020f
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet200_vd.yaml
浏览文件 @
1e8a020f
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet34.yaml
浏览文件 @
1e8a020f
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet34_vd.yaml
浏览文件 @
1e8a020f
...
@@ -17,7 +17,7 @@ Global:
...
@@ -17,7 +17,7 @@ Global:
# model architecture
# model architecture
Arch
:
Arch
:
name
:
"
ResNet
101
_vd"
name
:
"
ResNet
34
_vd"
# loss function config for traing/eval process
# loss function config for traing/eval process
Loss
:
Loss
:
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet50.yaml
浏览文件 @
1e8a020f
# global configs
# global configs
Global
:
Global
:
checkpoints
:
null
checkpoints
:
"
output/ResNet50/ppcls_epoch_15"
pretrained_model
:
null
pretrained_model
:
null
output_dir
:
"
./output/"
output_dir
:
"
./output/"
device
:
"
gpu"
device
:
"
gpu"
...
@@ -77,6 +77,8 @@ DataLoader:
...
@@ -77,6 +77,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/ResNet/ResNet50_vd.yaml
浏览文件 @
1e8a020f
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/VGG/VGG11.yaml
浏览文件 @
1e8a020f
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/VGG/VGG13.yaml
浏览文件 @
1e8a020f
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/VGG/VGG16.yaml
浏览文件 @
1e8a020f
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/configs/ImageNet/VGG/VGG19.yaml
浏览文件 @
1e8a020f
...
@@ -75,6 +75,8 @@ DataLoader:
...
@@ -75,6 +75,8 @@ DataLoader:
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
cls_label_path
:
"
./dataset/ILSVRC2012/val_list.txt"
transform_ops
:
transform_ops
:
-
ResizeImage
:
-
ResizeImage
:
resize_short
:
256
-
CropImage
:
size
:
224
size
:
224
-
NormalizeImage
:
-
NormalizeImage
:
scale
:
0.00392157
scale
:
0.00392157
...
...
ppcls/data/dataset/imagenet_dataset.py
浏览文件 @
1e8a020f
...
@@ -30,13 +30,18 @@ from .common_dataset import CommonDataset
...
@@ -30,13 +30,18 @@ from .common_dataset import CommonDataset
class
ImageNetDataset
(
CommonDataset
):
class
ImageNetDataset
(
CommonDataset
):
def
_load_anno
(
self
):
def
_load_anno
(
self
,
seed
=
None
):
assert
os
.
path
.
exists
(
self
.
_cls_path
)
assert
os
.
path
.
exists
(
self
.
_cls_path
)
assert
os
.
path
.
exists
(
self
.
_img_root
)
assert
os
.
path
.
exists
(
self
.
_img_root
)
self
.
images
=
[]
self
.
images
=
[]
self
.
labels
=
[]
self
.
labels
=
[]
with
open
(
self
.
_cls_path
)
as
fd
:
with
open
(
self
.
_cls_path
)
as
fd
:
lines
=
fd
.
readlines
()
lines
=
fd
.
readlines
()
if
seed
is
not
None
:
np
.
random
.
RandomState
(
seed
).
shuffle
(
lines
)
else
:
np
.
random
.
shuffle
(
lines
)
for
l
in
lines
:
for
l
in
lines
:
l
=
l
.
strip
().
split
(
" "
)
l
=
l
.
strip
().
split
(
" "
)
self
.
images
.
append
(
os
.
path
.
join
(
self
.
_img_root
,
l
[
0
]))
self
.
images
.
append
(
os
.
path
.
join
(
self
.
_img_root
,
l
[
0
]))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录