Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleClas
提交
6dbe9920
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看板
提交
6dbe9920
编写于
12月 06, 2021
作者:
S
stephon
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
merge build_** and inferernce_**.yaml
上级
6c7213cf
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
96 addition
and
293 deletion
+96
-293
deploy/configs/build_cartoon.yaml
deploy/configs/build_cartoon.yaml
+0
-38
deploy/configs/build_drinks.yaml
deploy/configs/build_drinks.yaml
+0
-36
deploy/configs/build_general.yaml
deploy/configs/build_general.yaml
+0
-36
deploy/configs/build_logo.yaml
deploy/configs/build_logo.yaml
+0
-36
deploy/configs/build_product.yaml
deploy/configs/build_product.yaml
+0
-36
deploy/configs/build_product_binary.yaml
deploy/configs/build_product_binary.yaml
+0
-39
deploy/configs/build_vehicle.yaml
deploy/configs/build_vehicle.yaml
+0
-36
deploy/configs/inference_cartoon.yaml
deploy/configs/inference_cartoon.yaml
+9
-0
deploy/configs/inference_cls.yaml
deploy/configs/inference_cls.yaml
+2
-0
deploy/configs/inference_cls_ch4.yaml
deploy/configs/inference_cls_ch4.yaml
+2
-0
deploy/configs/inference_cls_multilabel.yaml
deploy/configs/inference_cls_multilabel.yaml
+2
-0
deploy/configs/inference_det.yaml
deploy/configs/inference_det.yaml
+1
-0
deploy/configs/inference_drink.yaml
deploy/configs/inference_drink.yaml
+14
-5
deploy/configs/inference_general.yaml
deploy/configs/inference_general.yaml
+12
-3
deploy/configs/inference_logo.yaml
deploy/configs/inference_logo.yaml
+10
-1
deploy/configs/inference_product.yaml
deploy/configs/inference_product.yaml
+9
-0
deploy/configs/inference_product_binary.yaml
deploy/configs/inference_product_binary.yaml
+9
-1
deploy/configs/inference_rec.yaml
deploy/configs/inference_rec.yaml
+0
-7
deploy/configs/inference_vehicle.yaml
deploy/configs/inference_vehicle.yaml
+12
-5
docs/zh_CN/quick_start/quick_start_recognition.md
docs/zh_CN/quick_start/quick_start_recognition.md
+14
-14
未找到文件。
deploy/configs/build_cartoon.yaml
已删除
100644 → 0
浏览文件 @
6c7213cf
Global
:
rec_inference_model_dir
:
"
./models/cartoon_rec_ResNet50_iCartoon_v1.0_infer/"
batch_size
:
32
use_gpu
:
True
enable_mkldnn
:
True
cpu_num_threads
:
10
enable_benchmark
:
True
use_fp16
:
False
ir_optim
:
True
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
RecPreProcess
:
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
:
'
'
-
ToCHWImage
:
RecPostProcess
:
null
# indexing engine config
IndexProcess
:
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_cartoon/index/"
image_root
:
"
./recognition_demo_data_v1.1/gallery_cartoon/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_cartoon/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
2048
deploy/configs/build_drinks.yaml
已删除
100644 → 0
浏览文件 @
6c7213cf
Global
:
rec_inference_model_dir
:
"
./models/general_PPLCNet_x2_5_lite_v1.0_infer"
batch_size
:
32
use_gpu
:
True
enable_mkldnn
:
False
cpu_num_threads
:
10
enable_benchmark
:
False
use_fp16
:
False
ir_optim
:
True
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
RecPreProcess
:
transform_ops
:
-
ResizeImage
:
size
:
224
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
-
ToCHWImage
:
RecPostProcess
:
null
# indexing engine config
IndexProcess
:
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./drink_dataset/index"
image_root
:
"
./drink_dataset"
data_file
:
"
./drink_dataset/drink_label.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
"
dist_type
:
"
IP"
embedding_size
:
512
deploy/configs/build_general.yaml
已删除
100644 → 0
浏览文件 @
6c7213cf
Global
:
rec_inference_model_dir
:
"
./models/general_PPLCNet_x2_5_lite_v1.0_infer"
batch_size
:
32
use_gpu
:
True
enable_mkldnn
:
True
cpu_num_threads
:
10
enable_benchmark
:
True
use_fp16
:
False
ir_optim
:
True
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
RecPreProcess
:
transform_ops
:
-
ResizeImage
:
size
:
224
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
-
ToCHWImage
:
RecPostProcess
:
null
# indexing engine config
IndexProcess
:
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
image_root
:
"
./drink_dataset_v1.0/gallery/"
index_dir
:
"
./drink_dataset_v1.0/index"
data_file
:
"
./drink_dataset_v1.0/gallery/drink_label.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
512
deploy/configs/build_logo.yaml
已删除
100644 → 0
浏览文件 @
6c7213cf
Global
:
rec_inference_model_dir
:
"
./models/logo_rec_ResNet50_Logo3K_v1.0_infer/"
batch_size
:
32
use_gpu
:
True
enable_mkldnn
:
True
cpu_num_threads
:
10
enable_benchmark
:
True
use_fp16
:
False
ir_optim
:
True
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
RecPreProcess
:
transform_ops
:
-
ResizeImage
:
size
:
224
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
-
ToCHWImage
:
RecPostProcess
:
null
# indexing engine config
IndexProcess
:
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_logo/index/"
image_root
:
"
./recognition_demo_data_v1.1/gallery_logo/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_logo/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
512
deploy/configs/build_product.yaml
已删除
100644 → 0
浏览文件 @
6c7213cf
Global
:
rec_inference_model_dir
:
"
./models/product_ResNet50_vd_aliproduct_v1.0_infer"
batch_size
:
32
use_gpu
:
True
enable_mkldnn
:
True
cpu_num_threads
:
10
enable_benchmark
:
True
use_fp16
:
False
ir_optim
:
True
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
RecPreProcess
:
transform_ops
:
-
ResizeImage
:
size
:
224
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
-
ToCHWImage
:
RecPostProcess
:
null
# indexing engine config
IndexProcess
:
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_product/index"
image_root
:
"
./recognition_demo_data_v1.1/gallery_product/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_product/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
512
deploy/configs/build_product_binary.yaml
已删除
100644 → 0
浏览文件 @
6c7213cf
Global
:
rec_inference_model_dir
:
"
./models/product_MV3_x1_0_aliproduct_bin_v1.0_infer"
batch_size
:
32
use_gpu
:
True
enable_mkldnn
:
True
cpu_num_threads
:
10
enable_benchmark
:
True
use_fp16
:
False
ir_optim
:
True
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
RecPreProcess
:
transform_ops
:
-
ResizeImage
:
size
:
224
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
-
ToCHWImage
:
RecPostProcess
:
main_indicator
:
Binarize
Binarize
:
method
:
"
round"
# indexing engine config
IndexProcess
:
index_method
:
"
Flat"
# supported: HNSW32, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_product/index_binary"
image_root
:
"
./recognition_demo_data_v1.1/gallery_product/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_product/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
hamming"
embedding_size
:
512
deploy/configs/build_vehicle.yaml
已删除
100644 → 0
浏览文件 @
6c7213cf
Global
:
rec_inference_model_dir
:
"
./models/vehicle_cls_ResNet50_CompCars_v1.0_infer/"
batch_size
:
32
use_gpu
:
True
enable_mkldnn
:
True
cpu_num_threads
:
10
enable_benchmark
:
True
use_fp16
:
False
ir_optim
:
True
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
RecPreProcess
:
transform_ops
:
-
ResizeImage
:
size
:
224
-
NormalizeImage
:
scale
:
0.00392157
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
order
:
'
'
-
ToCHWImage
:
RecPostProcess
:
null
# indexing engine config
IndexProcess
:
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_vehicle/index/"
image_root
:
"
./recognition_demo_data_v1.1/gallery_vehicle/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_vehicle/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
512
deploy/configs/inference_cartoon.yaml
浏览文件 @
6dbe9920
...
...
@@ -50,7 +50,16 @@ RecPreProcess:
RecPostProcess
:
null
# indexing engine config
IndexProcess
:
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_cartoon/index/"
image_root
:
"
./recognition_demo_data_v1.1/gallery_cartoon/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_cartoon/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
2048
batch_size
:
32
return_k
:
5
score_thres
:
0.5
deploy/configs/inference_cls.yaml
浏览文件 @
6dbe9920
...
...
@@ -11,6 +11,7 @@ Global:
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
PreProcess
:
transform_ops
:
-
ResizeImage
:
...
...
@@ -24,6 +25,7 @@ PreProcess:
order
:
'
'
channel_num
:
3
-
ToCHWImage
:
PostProcess
:
main_indicator
:
Topk
Topk
:
...
...
deploy/configs/inference_cls_ch4.yaml
浏览文件 @
6dbe9920
...
...
@@ -11,6 +11,7 @@ Global:
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
PreProcess
:
transform_ops
:
-
ResizeImage
:
...
...
@@ -24,6 +25,7 @@ PreProcess:
order
:
'
'
channel_num
:
4
-
ToCHWImage
:
PostProcess
:
main_indicator
:
Topk
Topk
:
...
...
deploy/configs/inference_
multilabel_cls
.yaml
→
deploy/configs/inference_
cls_multilabel
.yaml
浏览文件 @
6dbe9920
...
...
@@ -11,6 +11,7 @@ Global:
use_tensorrt
:
False
gpu_mem
:
8000
enable_profile
:
False
PreProcess
:
transform_ops
:
-
ResizeImage
:
...
...
@@ -24,6 +25,7 @@ PreProcess:
order
:
'
'
channel_num
:
3
-
ToCHWImage
:
PostProcess
:
main_indicator
:
MultiLabelTopk
MultiLabelTopk
:
...
...
deploy/configs/inference_det.yaml
浏览文件 @
6dbe9920
...
...
@@ -30,4 +30,5 @@ DetPreProcess:
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
-
DetPermute
:
{}
DetPostProcess
:
{}
deploy/configs/inference_drink.yaml
浏览文件 @
6dbe9920
Global
:
infer_imgs
:
"
./
recognition_demo_data_v1.2/test_drink
s/hongniu_1.jpg"
infer_imgs
:
"
./
drink_dataset_v1.0/test_image
s/hongniu_1.jpg"
det_inference_model_dir
:
"
./models/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer"
rec_inference_model_dir
:
"
./models/general_PPLCNet_x2_5_lite_v1.0_infer"
rec_nms_thresold
:
0.05
batch_size
:
1
image_shape
:
[
3
,
640
,
640
]
threshold
:
0.2
...
...
@@ -11,11 +11,10 @@ Global:
labe_list
:
-
foreground
# inference engine config
use_gpu
:
True
enable_mkldnn
:
False
cpu_num_threads
:
10
enable_benchmark
:
Tru
e
enable_benchmark
:
Fals
e
use_fp16
:
False
ir_optim
:
True
use_tensorrt
:
False
...
...
@@ -33,6 +32,7 @@ DetPreProcess:
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
-
DetPermute
:
{}
DetPostProcess
:
{}
RecPreProcess
:
...
...
@@ -50,6 +50,15 @@ RecPostProcess: null
# indexing engine config
IndexProcess
:
index_dir
:
"
./drink_dataset/index"
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./drink_dataset_v1.0/gallery"
image_root
:
"
./drink_dataset_v1.0/index"
data_file
:
"
./drink_dataset_v1.0/gallery/drink_label.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
"
dist_type
:
"
IP"
embedding_size
:
512
batch_size
:
32
return_k
:
5
score_thres
:
0.4
deploy/configs/inference_general.yaml
浏览文件 @
6dbe9920
...
...
@@ -3,7 +3,7 @@ Global:
det_inference_model_dir
:
"
./models/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer"
rec_inference_model_dir
:
"
./models/general_PPLCNet_x2_5_lite_v1.0_infer"
rec_nms_thresold
:
0.05
batch_size
:
1
image_shape
:
[
3
,
640
,
640
]
threshold
:
0.2
...
...
@@ -11,7 +11,6 @@ Global:
labe_list
:
-
foreground
# inference engine config
use_gpu
:
True
enable_mkldnn
:
True
cpu_num_threads
:
10
...
...
@@ -33,6 +32,7 @@ DetPreProcess:
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
-
DetPermute
:
{}
DetPostProcess
:
{}
RecPreProcess
:
...
...
@@ -50,6 +50,15 @@ RecPostProcess: null
# indexing engine config
IndexProcess
:
index_dir
:
"
./drink_dataset_v1.0/index/"
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
image_root
:
"
./drink_dataset_v1.0/gallery/"
index_dir
:
"
./drink_dataset_v1.0/index"
data_file
:
"
./drink_dataset_v1.0/gallery/drink_label.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
512
batch_size
:
32
return_k
:
5
score_thres
:
0.5
deploy/configs/inference_logo.yaml
浏览文件 @
6dbe9920
...
...
@@ -11,7 +11,6 @@ Global:
labe_list
:
-
foreground
# inference engine config
use_gpu
:
True
enable_mkldnn
:
True
cpu_num_threads
:
10
...
...
@@ -33,6 +32,7 @@ DetPreProcess:
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
-
DetPermute
:
{}
DetPostProcess
:
{}
RecPreProcess
:
...
...
@@ -50,6 +50,15 @@ RecPostProcess: null
# indexing engine config
IndexProcess
:
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_logo/index/"
image_root
:
"
./recognition_demo_data_v1.1/gallery_logo/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_logo/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
512
batch_size
:
32
return_k
:
5
score_thres
:
0.5
deploy/configs/inference_product.yaml
浏览文件 @
6dbe9920
...
...
@@ -33,6 +33,7 @@ DetPreProcess:
mean
:
[
0.485
,
0.456
,
0.406
]
std
:
[
0.229
,
0.224
,
0.225
]
-
DetPermute
:
{}
DetPostProcess
:
{}
RecPreProcess
:
...
...
@@ -50,6 +51,14 @@ RecPostProcess: null
# indexing engine config
IndexProcess
:
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_product/index"
image_root
:
"
./recognition_demo_data_v1.1/gallery_product/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_product/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
512
batch_size
:
32
return_k
:
5
score_thres
:
0.5
deploy/configs/inference_product_binary.yaml
浏览文件 @
6dbe9920
...
...
@@ -53,8 +53,16 @@ RecPostProcess:
# indexing engine config
IndexProcess
:
binary_index
:
true
index_method
:
"
Flat"
# supported: HNSW32, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_product/index_binary"
image_root
:
"
./recognition_demo_data_v1.1/gallery_product/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_product/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
hamming"
embedding_size
:
512
batch_size
:
32
binary_index
:
true
return_k
:
5
score_thres
:
0
deploy/configs/inference_rec.yaml
浏览文件 @
6dbe9920
...
...
@@ -2,13 +2,6 @@ Global:
infer_imgs
:
"
./images/wangzai.jpg"
rec_inference_model_dir
:
"
./models/product_ResNet50_vd_aliproduct_v1.0_infer"
batch_size
:
1
image_shape
:
[
3
,
640
,
640
]
threshold
:
0.5
max_det_results
:
1
labe_list
:
-
foreground
# inference engine config
use_gpu
:
False
enable_mkldnn
:
True
cpu_num_threads
:
10
...
...
deploy/configs/inference_vehicle.yaml
浏览文件 @
6dbe9920
...
...
@@ -11,7 +11,6 @@ Global:
labe_list
:
-
foreground
# inference engine config
use_gpu
:
True
enable_mkldnn
:
True
cpu_num_threads
:
10
...
...
@@ -36,7 +35,6 @@ DetPreProcess:
DetPostProcess
:
{}
RecPreProcess
:
transform_ops
:
-
ResizeImage
:
...
...
@@ -52,6 +50,15 @@ RecPostProcess: null
# indexing engine config
IndexProcess
:
index_dir
:
"
./recognition_demo_data_v1.1/gallery_vehicle/index/"
return_k
:
5
score_thres
:
0.5
index_method
:
"
HNSW32"
# supported: HNSW32, IVF, Flat
index_dir
:
"
./recognition_demo_data_v1.1/gallery_vehicle/index/"
image_root
:
"
./recognition_demo_data_v1.1/gallery_vehicle/"
data_file
:
"
./recognition_demo_data_v1.1/gallery_vehicle/data_file.txt"
index_operation
:
"
new"
# suported: "append", "remove", "new"
delimiter
:
"
\t
"
dist_type
:
"
IP"
embedding_size
:
512
batch_size
:
32
return_k
:
5
score_thres
:
0.5
docs/zh_CN/quick_start/quick_start_recognition.md
浏览文件 @
6dbe9920
...
...
@@ -38,10 +38,10 @@
<a
name=
"轻量级通用主体检测模型与轻量级通用识别模型"
></a>
| 模型简介 | 推荐场景 | inference 模型 | 预测配置文件 |
构建索引库的配置文件 |
| ------------ | ------------- | -------- | ------- |
-------- |
| 轻量级通用主体检测模型 | 通用场景 |
[
tar 格式文件下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer.tar
)
[
zip 格式文件下载链接
]
(https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer.zip) | - |
- |
| 轻量级通用识别模型 | 通用场景 |
[
tar 格式下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/general_PPLCNet_x2_5_lite_v1.0_infer.tar
)
[
zip 格式文件下载链接
]
(https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/general_PPLCNet_x2_5_lite_v1.0_infer.zip) |
[
inference_general.yaml
](
../../../deploy/configs/inference_general.yaml
)
|
[
build_general.yaml
](
../../../deploy/configs/build_general.yaml
)
|
| 模型简介 | 推荐场景 | inference 模型 | 预测配置文件 |
| ------------ | ------------- | -------- | ------- |
| 轻量级通用主体检测模型 | 通用场景 |
[
tar 格式文件下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer.tar
)
[
zip 格式文件下载链接
]
(https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/picodet_PPLCNet_x2_5_mainbody_lite_v1.0_infer.zip) | - |
| 轻量级通用识别模型 | 通用场景 |
[
tar 格式下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/general_PPLCNet_x2_5_lite_v1.0_infer.tar
)
[
zip 格式文件下载链接
]
(https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/general_PPLCNet_x2_5_lite_v1.0_infer.zip) |
[
inference_general.yaml
](
../../../deploy/configs/inference_general.yaml
)
|
注意:由于部分解压缩软件在解压上述
`tar`
格式文件时存在问题,建议非命令行用户下载
`zip`
格式文件并解压。
`tar`
格式文件建议使用命令
`tar xf xxx.tar`
解压。
...
...
@@ -129,7 +129,7 @@ wget https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/data/drink_da
```
shell
# 下面是使用下载的服务端商品识别模型进行索引库构建
python3.7 python/build_gallery.py
-c
configs/
build
_general.yaml
-o
Global.rec_inference_model_dir
=
./models/general_PPLCNet_x2_5_lite_v1.0_infer
python3.7 python/build_gallery.py
-c
configs/
inference
_general.yaml
-o
Global.rec_inference_model_dir
=
./models/general_PPLCNet_x2_5_lite_v1.0_infer
```
<a
name=
"瓶装饮料识别与检索"
></a>
...
...
@@ -256,7 +256,7 @@ python3.7 python/predict_system.py -c configs/inference_general.yaml -o Global.i
使用下面的命令构建
`index`
索引,加速识别后的检索过程。
```
shell
python3.7 python/build_gallery.py
-c
configs/
build
_general.yaml
-o
IndexProcess.data_file
=
"./drink_dataset_v1.0/gallery/drink_label_all.txt"
-o
IndexProcess.index_dir
=
"./drink_dataset_v1.0/index_all"
python3.7 python/build_gallery.py
-c
configs/
inference
_general.yaml
-o
IndexProcess.data_file
=
"./drink_dataset_v1.0/gallery/drink_label_all.txt"
-o
IndexProcess.index_dir
=
"./drink_dataset_v1.0/index_all"
```
最终新的索引信息保存在文件夹
`./drink_dataset_v1.0/index_all`
中。具体
`yaml`
请参考
[
向量检索文档
](
../image_recognition_pipeline/vector_search.md
)
。
...
...
@@ -290,14 +290,14 @@ python3.7 python/predict_system.py -c configs/inference_general.yaml -o Global.i
目前,我们更推荐您使用
[
轻量级通用主体检测模型与轻量级通用识别模型
](
#轻量级通用主体检测模型与轻量级通用识别模型
)
,以获得更好的测试结果。但是如果您希望体验服务端识别模型,服务器端通用主体检测模型与各方向识别模型、测试数据下载地址以及对应的配置文件地址如下。
| 模型简介 | 推荐场景 | inference 模型 | 预测配置文件 |
构建索引库的配置文件 |
| ------------ | ------------- | -------- | ------- |
-------- |
| 通用主体检测模型 | 通用场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/ppyolov2_r50vd_dcn_mainbody_v1.0_infer.tar
)
| - |
- |
| Logo 识别模型 | Logo 场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/logo_rec_ResNet50_Logo3K_v1.0_infer.tar
)
|
[
inference_logo.yaml
](
../../../deploy/configs/inference_logo.yaml
)
|
[
build_logo.yaml
](
../../../deploy/configs/build_logo.yaml
)
|
| 动漫人物识别模型 | 动漫人物场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/cartoon_rec_ResNet50_iCartoon_v1.0_infer.tar
)
|
[
inference_cartoon.yaml
](
../../../deploy/configs/inference_cartoon.yaml
)
|
[
build_cartoon.yaml
](
../../../deploy/configs/build_cartoon.yaml
)
|
| 车辆细分类模型 | 车辆场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/vehicle_cls_ResNet50_CompCars_v1.0_infer.tar
)
|
[
inference_vehicle.yaml
](
../../../deploy/configs/inference_vehicle.yaml
)
|
[
build_vehicle.yaml
](
../../../deploy/configs/build_vehicle.yaml
)
|
| 商品识别模型 | 商品场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/product_ResNet50_vd_aliproduct_v1.0_infer.tar
)
|
[
inference_product.yaml
](
../../../deploy/configs/inference_product.yaml
)
|
[
build_product.yaml
](
../../../deploy/configs/build_product.yaml
)
|
| 车辆 ReID 模型 | 车辆 ReID 场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/vehicle_reid_ResNet50_VERIWild_v1.0_infer.tar
)
|
- | -
|
| 模型简介 | 推荐场景 | inference 模型 | 预测配置文件 |
| ------------ | ------------- | -------- | ------- |
| 通用主体检测模型 | 通用场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/ppyolov2_r50vd_dcn_mainbody_v1.0_infer.tar
)
| - |
| Logo 识别模型 | Logo 场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/logo_rec_ResNet50_Logo3K_v1.0_infer.tar
)
|
[
inference_logo.yaml
](
../../../deploy/configs/inference_logo.yaml
)
|
| 动漫人物识别模型 | 动漫人物场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/cartoon_rec_ResNet50_iCartoon_v1.0_infer.tar
)
|
[
inference_cartoon.yaml
](
../../../deploy/configs/inference_cartoon.yaml
)
|
| 车辆细分类模型 | 车辆场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/vehicle_cls_ResNet50_CompCars_v1.0_infer.tar
)
|
[
inference_vehicle.yaml
](
../../../deploy/configs/inference_vehicle.yaml
)
|
| 商品识别模型 | 商品场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/product_ResNet50_vd_aliproduct_v1.0_infer.tar
)
|
[
inference_product.yaml
](
../../../deploy/configs/inference_product.yaml
)
|
| 车辆 ReID 模型 | 车辆 ReID 场景 |
[
模型下载链接
](
https://paddle-imagenet-models-name.bj.bcebos.com/dygraph/rec/models/inference/vehicle_reid_ResNet50_VERIWild_v1.0_infer.tar
)
|
[
inference_vehicle.yaml
](
../../../deploy/configs/inference_vehicle.yaml
)
|
```
shell
cd
PaddleClas/deploy/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录