未验证 提交 171857cc 编写于 作者: W Wei Shengyu 提交者: GitHub

Merge pull request #867 from cuicheng01/develop

remove Infer mode in recognition configs
...@@ -116,18 +116,3 @@ Metric: ...@@ -116,18 +116,3 @@ Metric:
- TopkAcc: - TopkAcc:
topk: [1, 5] topk: [1, 5]
Infer:
infer_imgs: docs/images/whl/demo.jpg
batch_size: 10
transforms:
- DecodeImage:
to_rgb: True
channel_first: False
- ResizeImage:
resize_short: 224
- NormalizeImage:
scale: 1.0/255.0
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
order: ''
- ToCHWImage:
...@@ -158,18 +158,3 @@ Metric: ...@@ -158,18 +158,3 @@ Metric:
- Recallk: - Recallk:
topk: [1, 5] topk: [1, 5]
Infer:
infer_imgs: docs/images/whl/demo.jpg
batch_size: 10
transforms:
- DecodeImage:
to_rgb: True
channel_first: False
- ResizeImage:
resize_short: 224
- NormalizeImage:
scale: 1.0/255.0
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
order: ''
- ToCHWImage:
...@@ -157,18 +157,3 @@ Metric: ...@@ -157,18 +157,3 @@ Metric:
- Recallk: - Recallk:
topk: [1, 5] topk: [1, 5]
Infer:
infer_imgs: docs/images/whl/demo.jpg
batch_size: 10
transforms:
- DecodeImage:
to_rgb: True
channel_first: False
- ResizeImage:
resize_short: 224
- NormalizeImage:
scale: 1.0/255.0
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
order: ''
- ToCHWImage:
...@@ -126,28 +126,6 @@ DataLoader: ...@@ -126,28 +126,6 @@ DataLoader:
num_workers: 8 num_workers: 8
use_shared_memory: True use_shared_memory: True
Infer:
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:
PostProcess:
name: Topk
topk: 5
class_id_map_file: "ppcls/utils/imagenet1k_label_list.txt"
Metric: Metric:
Train: Train:
- TopkAcc: - TopkAcc:
......
...@@ -160,18 +160,3 @@ Metric: ...@@ -160,18 +160,3 @@ Metric:
topk: [1, 5] topk: [1, 5]
- mAP: {} - mAP: {}
Infer:
infer_imgs: "docs/images/whl/demo.jpg"
batch_size: 10
transforms:
- DecodeImage:
to_rgb: True
channel_first: False
- ResizeImage:
resize_short: 224
- NormalizeImage:
scale: 1.0/255.0
mean: [0.485, 0.456, 0.406]
std: [0.229, 0.224, 0.225]
order: ''
- ToCHWImage:
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册