Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
cbe656e0
M
models
项目概览
PaddlePaddle
/
models
1 年多 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
cbe656e0
编写于
12月 24, 2018
作者:
R
ruri
提交者:
GitHub
12月 24, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1552 from shippingwang/add_image_classification_pretrained_models
add image classification new pretrained models
上级
9c79d998
cf4bcbfd
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
75 addition
and
6 deletion
+75
-6
fluid/PaddleCV/image_classification/README.md
fluid/PaddleCV/image_classification/README.md
+10
-1
fluid/PaddleCV/image_classification/README_cn.md
fluid/PaddleCV/image_classification/README_cn.md
+7
-1
fluid/PaddleCV/image_classification/eval.py
fluid/PaddleCV/image_classification/eval.py
+3
-2
fluid/PaddleCV/image_classification/reader_cv2.py
fluid/PaddleCV/image_classification/reader_cv2.py
+0
-2
fluid/PaddleCV/image_classification/run.sh
fluid/PaddleCV/image_classification/run.sh
+55
-0
未找到文件。
fluid/PaddleCV/image_classification/README.md
浏览文件 @
cbe656e0
...
...
@@ -196,10 +196,19 @@ Models are trained by starting with learning rate ```0.1``` and decaying it by `
|model | top-1/top-5 accuracy(PIL)| top-1/top-5 accuracy(CV2) |
|- |:-: |:-:|
|
[
AlexNet
](
http://paddle-imagenet-models-name.bj.bcebos.com/AlexNet_pretrained.zip
)
| 56.71%/79.18% | 55.88%/78.65% |
|
[
VGG11
](
http://paddle-imagenet-models-name.bj.bcebos.com/VGG11_pretained.zip
)
| 68.92%/88.66% | 68.61%/88.60% |
|
[
VGG11
](
https://paddle-imagenet-models-name.bj.bcebos.com/VGG11_pretrained.zip
)
| 69.22%/89.09% | 69.01%/88.90% |
|
[
VGG13
](
https://paddle-imagenet-models-name.bj.bcebos.com/VGG13_pretrained.zip
)
| 70.14%/89.48% | 69.83%/89.13% |
|
[
VGG16
](
https://paddle-imagenet-models-name.bj.bcebos.com/VGG16_pretrained.zip
)
| 72.08%/90.63% | 71.65%/90.57% |
|
[
VGG19
](
https://paddle-imagenet-models-name.bj.bcebos.com/VGG19_pretrained.zip
)
| 72.56%/90.83% | 72.32%/90.98% |
|
[
MobileNetV1
](
http://paddle-imagenet-models-name.bj.bcebos.com/MobileNetV1_pretrained.zip
)
| 70.91%/89.54% | 70.51%/89.35% |
|
[
ResNet50
](
http://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_pretrained.zip
)
| 76.35%/92.80% | 76.22%/92.92% |
|
[
ResNet101
](
http://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_pretrained.zip
)
| 77.49%/93.57% | 77.56%/93.64% |
|
[
ResNet152
](
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet152_pretrained.zip
)
| 78.12%/93.93% | 77.92%/93.87% |
|
[
SE_ResNeXt50_32x4d
](
https://paddle-imagenet-models-name.bj.bcebos.com/SE_ResNext50_32x4d_pretrained.zip
)
| 78.50%/94.01% | 78.44%/93.96% |
|
[
SE_ResNeXt101_32x4d
](
https://paddle-imagenet-models-name.bj.bcebos.com/SE_ResNeXt101_32x4d_pretrained.zip
)
| 79.26%/94.22% | 79.12%/94.20% |
-
Released models: not specify parameter names
...
...
fluid/PaddleCV/image_classification/README_cn.md
浏览文件 @
cbe656e0
...
...
@@ -194,10 +194,16 @@ Models包括两种模型:带有参数名字的模型,和不带有参数名
|model | top-1/top-5 accuracy(PIL)| top-1/top-5 accuracy(CV2) |
|- |:-: |:-:|
|
[
AlexNet
](
http://paddle-imagenet-models-name.bj.bcebos.com/AlexNet_pretrained.zip
)
| 56.71%/79.18% | 55.88%/78.65% |
|
[
VGG11
](
http://paddle-imagenet-models-name.bj.bcebos.com/VGG11_pretained.zip
)
| 68.92%/88.66% | 68.61%/88.60% |
|
[
VGG11
](
https://paddle-imagenet-models-name.bj.bcebos.com/VGG11_pretrained.zip
)
| 69.22%/89.09% | 69.01%/88.90% |
|
[
VGG13
](
https://paddle-imagenet-models-name.bj.bcebos.com/VGG13_pretrained.zip
)
| 70.14%/89.48% | 69.83%/89.13% |
|
[
VGG16
](
https://paddle-imagenet-models-name.bj.bcebos.com/VGG16_pretrained.zip
)
| 72.08%/90.63% | 71.65%/90.57% |
|
[
VGG19
](
https://paddle-imagenet-models-name.bj.bcebos.com/VGG19_pretrained.zip
)
| 72.56%/90.83% | 72.32%/90.98% |
|
[
MobileNetV1
](
http://paddle-imagenet-models-name.bj.bcebos.com/MobileNetV1_pretrained.zip
)
| 70.91%/89.54% | 70.51%/89.35% |
|
[
ResNet50
](
http://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_pretrained.zip
)
| 76.35%/92.80% | 76.22%/92.92% |
|
[
ResNet101
](
http://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_pretrained.zip
)
| 77.49%/93.57% | 77.56%/93.64% |
|
[
ResNet152
](
https://paddle-imagenet-models-name.bj.bcebos.com/ResNet152_pretrained.zip
)
| 78.12%/93.93% | 77.92%/93.87% |
|
[
SE_ResNeXt50_32x4d
](
https://paddle-imagenet-models-name.bj.bcebos.com/SE_ResNext50_32x4d_pretrained.zip
)
| 78.50%/94.01% | 78.44%/93.96% |
|
[
SE_ResNeXt101_32x4d
](
https://paddle-imagenet-models-name.bj.bcebos.com/SE_ResNeXt101_32x4d_pretrained.zip
)
| 79.26%/94.22% | 79.12%/94.20% |
-
Released models: not specify parameter names
...
...
fluid/PaddleCV/image_classification/eval.py
浏览文件 @
cbe656e0
...
...
@@ -7,7 +7,8 @@ import time
import
sys
import
paddle
import
paddle.fluid
as
fluid
import
models
#import models
import
models_name
as
models
#import reader_cv2 as reader
import
reader
as
reader
import
argparse
...
...
@@ -84,7 +85,7 @@ def eval(args):
fluid
.
io
.
load_vars
(
exe
,
pretrained_model
,
predicate
=
if_exist
)
val_reader
=
paddle
.
batch
(
reader
.
val
(
""
),
batch_size
=
args
.
batch_size
)
val_reader
=
paddle
.
batch
(
reader
.
val
(),
batch_size
=
args
.
batch_size
)
feeder
=
fluid
.
DataFeeder
(
place
=
place
,
feed_list
=
[
image
,
label
])
fetch_list
=
[
avg_cost
.
name
,
acc_top1
.
name
,
acc_top5
.
name
]
...
...
fluid/PaddleCV/image_classification/reader_cv2.py
浏览文件 @
cbe656e0
...
...
@@ -101,8 +101,6 @@ def process_image(sample,
std
=
[
0.229
,
0.224
,
0.225
]
if
std
is
None
else
std
img_path
=
sample
[
0
]
print
(
'&'
*
80
)
print
(
img_path
)
img
=
cv2
.
imread
(
img_path
)
if
mode
==
'train'
:
...
...
fluid/PaddleCV/image_classification/run.sh
浏览文件 @
cbe656e0
...
...
@@ -78,3 +78,58 @@ python train.py \
# --num_epochs=120 \
# --lr=0.1
#ResNet152:
#python train.py \
# --model=ResNet152 \
# --batch_size=256 \
# --total_images=1281167 \
# --image_shape=3,224,224 \
# --lr_strategy=piecewise_decay \
# --lr=0.1 \
# --num_epochs=120 \
# --l2_decay=1e-4 \(TODO)
#SE_ResNeXt50:
#python train.py \
# --model=SE_ResNeXt50 \
# --batch_size=400 \
# --total_images=1281167 \
# --image_shape=3,224,224 \
# --lr_strategy=cosine_decay \
# --lr=0.1 \
# --num_epochs=200 \
# --l2_decay=12e-5 \(TODO)
#SE_ResNeXt101:
#python train.py \
# --model=SE_ResNeXt101 \
# --batch_size=400 \
# --total_images=1281167 \
# --image_shape=3,224,224 \
# --lr_strategy=cosine_decay \
# --lr=0.1 \
# --num_epochs=200 \
# --l2_decay=15e-5 \(TODO)
#VGG11:
#python train.py \
# --model=VGG11 \
# --batch_size=512 \
# --total_images=1281167 \
# --image_shape=3,224,224 \
# --lr_strategy=cosine_decay \
# --lr=0.1 \
# --num_epochs=90 \
# --l2_decay=2e-4 \(TODO)
#VGG13:
#python train.py
# --model=VGG13 \
# --batch_size=256 \
# --total_images=1281167 \
# --image_shape=3,224,224 \
# --lr_strategy=cosine_decay \
# --lr=0.01 \
# --num_epochs=90 \
# --l2_decay=3e-4 \(TODO)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录