Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
92b0c2b5
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看板
未验证
提交
92b0c2b5
编写于
11月 29, 2021
作者:
B
Bin Lu
提交者:
GitHub
11月 29, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1493 from RainFrost1/whole_chain
解决tipc基础链条的bug
上级
953a99fa
a7b0b497
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
19 addition
and
64 deletion
+19
-64
deploy/python/predict_cls.py
deploy/python/predict_cls.py
+3
-1
test_tipc/config/DeiT/DeiT_base_patch16_384_train_infer_python.txt
.../config/DeiT/DeiT_base_patch16_384_train_infer_python.txt
+1
-1
test_tipc/config/LeViT/LeViT_384_train_infer_python.txt
test_tipc/config/LeViT/LeViT_384_train_infer_python.txt
+1
-1
test_tipc/config/ResNeSt/ResNeSt101_train_infer_python.txt
test_tipc/config/ResNeSt/ResNeSt101_train_infer_python.txt
+0
-52
test_tipc/config/SwinTransformer/SwinTransformer_base_patch4_window12_384_train_infer_python.txt
...ansformer_base_patch4_window12_384_train_infer_python.txt
+1
-1
test_tipc/config/SwinTransformer/SwinTransformer_large_patch4_window12_384_train_infer_python.txt
...nsformer_large_patch4_window12_384_train_infer_python.txt
+2
-2
test_tipc/config/SwinTransformer/SwinTransformer_large_patch4_window7_224_train_infer_python.txt
...ansformer_large_patch4_window7_224_train_infer_python.txt
+1
-1
test_tipc/config/VisionTransformer/ViT_base_patch16_384_train_infer_python.txt
...onTransformer/ViT_base_patch16_384_train_infer_python.txt
+1
-1
test_tipc/config/VisionTransformer/ViT_base_patch32_384_train_infer_python.txt
...onTransformer/ViT_base_patch32_384_train_infer_python.txt
+1
-1
test_tipc/config/VisionTransformer/ViT_huge_patch32_384_train_infer_python.txt
...onTransformer/ViT_huge_patch32_384_train_infer_python.txt
+1
-1
test_tipc/config/VisionTransformer/ViT_large_patch16_384_train_infer_python.txt
...nTransformer/ViT_large_patch16_384_train_infer_python.txt
+1
-1
test_tipc/config/VisionTransformer/ViT_large_patch32_384_train_infer_python.txt
...nTransformer/ViT_large_patch32_384_train_infer_python.txt
+1
-1
test_tipc/prepare.sh
test_tipc/prepare.sh
+5
-0
未找到文件。
deploy/python/predict_cls.py
浏览文件 @
92b0c2b5
...
...
@@ -47,12 +47,14 @@ class ClsPredictor(Predictor):
import
auto_log
import
os
pid
=
os
.
getpid
()
size
=
config
[
"PreProcess"
][
"transform_ops"
][
1
][
"CropImage"
][
"size"
]
self
.
auto_logger
=
auto_log
.
AutoLogger
(
model_name
=
config
[
"Global"
].
get
(
"model_name"
,
"cls"
),
model_precision
=
'fp16'
if
config
[
"Global"
][
"use_fp16"
]
else
'fp32'
,
batch_size
=
config
[
"Global"
].
get
(
"batch_size"
,
1
),
data_shape
=
[
3
,
224
,
224
],
data_shape
=
[
3
,
size
,
size
],
save_path
=
config
[
"Global"
].
get
(
"save_log_path"
,
"./auto_log.log"
),
inference_config
=
self
.
config
,
...
...
test_tipc/config/DeiT/DeiT_base_patch16_384_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/D
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/LeViT/LeViT_384_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/L
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/ResNeSt/ResNeSt101_train_infer_python.txt
已删除
100644 → 0
浏览文件 @
953a99fa
===========================train_params===========================
model_name:ResNeSt101
python:python3.7
gpu_list:0|0,1
-o Global.device:gpu
-o Global.auto_cast:null
-o Global.epochs:lite_train_lite_infer=2|whole_train_whole_infer=120
-o Global.output_dir:./output/
-o DataLoader.Train.sampler.batch_size:8
-o Global.pretrained_model:null
train_model_name:latest
train_infer_img_dir:./dataset/ILSVRC2012/val
null:null
##
trainer:norm_train
norm_train:tools/train.py -c ppcls/configs/ImageNet/ResNeSt/ResNeSt101.yaml -o Global.seed=1234 -o DataLoader.Train.sampler.shuffle=False -o DataLoader.Train.loader.num_workers=0 -o DataLoader.Train.loader.use_shared_memory=False
pact_train:null
fpgm_train:null
distill_train:null
null:null
null:null
##
===========================eval_params===========================
eval:tools/eval.py -c ppcls/configs/ImageNet/ResNeSt/ResNeSt101.yaml
null:null
##
===========================infer_params==========================
-o Global.save_inference_dir:./inference
-o Global.pretrained_model:
norm_export:tools/export_model.py -c ppcls/configs/ImageNet/ResNeSt/ResNeSt101.yaml
quant_export:null
fpgm_export:null
distill_export:null
kl_quant:null
export2:null
pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/ResNeSt101_pretrained.pdparams
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
-o Global.batch_size:1|16
-o Global.use_tensorrt:True|False
-o Global.use_fp16:True|False
-o Global.inference_model_dir:../inference
-o Global.infer_imgs:../dataset/ILSVRC2012/val
-o Global.save_log_path:null
-o Global.benchmark:True
null:null
null:null
test_tipc/config/SwinTransformer/SwinTransformer_base_patch4_window12_384_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/S
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/SwinTransformer/SwinTransformer_large_patch4_window12_384_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -33,11 +33,11 @@ fpgm_export:null
distill_export:null
kl_quant:null
export2:null
pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/SwinTransformer_large_patch4_window12_384_pretrained.pdparams
pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/SwinTransformer_large_patch4_window12_384_
22kto1k_
pretrained.pdparams
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/SwinTransformer/SwinTransformer_large_patch4_window7_224_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -33,7 +33,7 @@ fpgm_export:null
distill_export:null
kl_quant:null
export2:null
pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/SwinTransformer_large_patch4_window7_224_pretrained.pdparams
pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/SwinTransformer_large_patch4_window7_224_
22kto1k_
pretrained.pdparams
infer_model:../inference/
infer_export:True
infer_quant:Fasle
...
...
test_tipc/config/VisionTransformer/ViT_base_patch16_384_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/V
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/VisionTransformer/ViT_base_patch32_384_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/V
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/VisionTransformer/ViT_huge_patch32_384_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/V
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/VisionTransformer/ViT_large_patch16_384_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/V
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/config/VisionTransformer/ViT_large_patch32_384_train_infer_python.txt
浏览文件 @
92b0c2b5
...
...
@@ -37,7 +37,7 @@ pretrained_model_url:https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/V
infer_model:../inference/
infer_export:True
infer_quant:Fasle
inference:python/predict_cls.py -c configs/inference_cls.yaml
inference:python/predict_cls.py -c configs/inference_cls.yaml
-o PreProcess.transform_ops.0.ResizeImage.resize_short=384 -o PreProcess.transform_ops.1.CropImage.size=384
-o Global.use_gpu:True|False
-o Global.enable_mkldnn:True|False
-o Global.cpu_num_threads:1|6
...
...
test_tipc/prepare.sh
浏览文件 @
92b0c2b5
...
...
@@ -86,6 +86,11 @@ elif [ ${MODE} = "whole_infer" ] || [ ${MODE} = "klquant_whole_infer" ];then
rm
-rf
inference
tar
xf
"
${
model_name
}
_inference.tar"
fi
if
[[
$model_name
==
"SwinTransformer_large_patch4_window7_224"
||
$model_name
==
"SwinTransformer_large_patch4_window12_384"
]]
;
then
cmd
=
"mv
${
model_name
}
_22kto1k_pretrained.pdparams
${
model_name
}
_pretrained.pdparams"
eval
$cmd
fi
elif
[
${
MODE
}
=
"whole_train_whole_infer"
]
;
then
cd
dataset
rm
-rf
ILSVRC2012
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录