Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
2d771844
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2d771844
编写于
10月 14, 2021
作者:
F
felixhjh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cos_dcn_r50_fpn_1x_coco和ppyolo_r50vd_dcn_1x_coco 框偏移bug
上级
9da9c19c
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
22 addition
and
19 deletion
+22
-19
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/000000014439.jpg
...mples/detection/fcos_dcn_r50_fpn_1x_coco/000000014439.jpg
+0
-0
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/000000570688.jpg
...mples/detection/fcos_dcn_r50_fpn_1x_coco/000000570688.jpg
+0
-0
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/README.md
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/README.md
+1
-1
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/README_CN.md
.../examples/detection/fcos_dcn_r50_fpn_1x_coco/README_CN.md
+1
-1
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/test_client.py
...xamples/detection/fcos_dcn_r50_fpn_1x_coco/test_client.py
+9
-7
python/examples/detection/ssd_vgg16_300_240e_voc/000000014439.jpg
...xamples/detection/ssd_vgg16_300_240e_voc/000000014439.jpg
+0
-0
python/examples/detection/ssd_vgg16_300_240e_voc/000000570688.jpg
...xamples/detection/ssd_vgg16_300_240e_voc/000000570688.jpg
+0
-0
python/examples/detection/ssd_vgg16_300_240e_voc/README.md
python/examples/detection/ssd_vgg16_300_240e_voc/README.md
+1
-1
python/examples/detection/ssd_vgg16_300_240e_voc/README_CN.md
...on/examples/detection/ssd_vgg16_300_240e_voc/README_CN.md
+1
-1
python/examples/detection/ssd_vgg16_300_240e_voc/test_client.py
.../examples/detection/ssd_vgg16_300_240e_voc/test_client.py
+9
-8
未找到文件。
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/000000014439.jpg
0 → 100644
浏览文件 @
2d771844
190.7 KB
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/000000570688.jpg
已删除
100644 → 0
浏览文件 @
9da9c19c
135.1 KB
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/README.md
浏览文件 @
2d771844
...
...
@@ -16,5 +16,5 @@ This model support TensorRT, if you want a faster inference, please use `--use_t
### Perform prediction
```
python3 test_client.py 000000
570688
.jpg
python3 test_client.py 000000
014439
.jpg
```
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/README_CN.md
浏览文件 @
2d771844
...
...
@@ -18,5 +18,5 @@ python3 -m paddle_serving_server.serve --model serving_server --port 9494 --gpu_
### 执行预测
```
python3 test_client.py 000000
570688
.jpg
python3 test_client.py 000000
014439
.jpg
```
python/examples/detection/fcos_dcn_r50_fpn_1x_coco/test_client.py
浏览文件 @
2d771844
...
...
@@ -12,18 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
paddle_serving_client
import
Client
from
paddle_serving_app.reader
import
*
import
sys
import
numpy
as
np
from
paddle_serving_client
import
Client
from
paddle_serving_app.reader
import
*
import
cv2
preprocess
=
Sequential
([
File2Image
(),
BGR2RGB
(),
Div
(
255.0
),
Normalize
([
0.485
,
0.456
,
0.406
],
[
0.229
,
0.224
,
0.225
],
False
),
Resize
(
640
,
640
),
Transpose
(
(
2
,
0
,
1
))
File2Image
(),
BGR2RGB
(),
Resize
(
(
608
,
608
),
interpolation
=
cv2
.
INTER_LINEAR
),
Div
(
255.0
),
Transpose
(
(
2
,
0
,
1
))
])
postprocess
=
RCNNPostprocess
(
"label_list.txt"
,
"output"
)
postprocess
=
RCNNPostprocess
(
"label_list.txt"
,
"output"
,
[
608
,
608
]
)
client
=
Client
()
client
.
load_client_config
(
"serving_client/serving_client_conf.prototxt"
)
...
...
@@ -38,3 +38,5 @@ fetch_map = client.predict(
fetch
=
[
"save_infer_model/scale_0.tmp_1"
],
batch
=
False
)
print
(
fetch_map
)
fetch_map
[
"image"
]
=
sys
.
argv
[
1
]
postprocess
(
fetch_map
)
python/examples/detection/ssd_vgg16_300_240e_voc/000000014439.jpg
0 → 100644
浏览文件 @
2d771844
190.7 KB
python/examples/detection/ssd_vgg16_300_240e_voc/000000570688.jpg
已删除
100644 → 0
浏览文件 @
9da9c19c
135.1 KB
python/examples/detection/ssd_vgg16_300_240e_voc/README.md
浏览文件 @
2d771844
...
...
@@ -16,5 +16,5 @@ This model support TensorRT, if you want a faster inference, please use `--use_t
### Perform prediction
```
python3 test_client.py 000000
570688
.jpg
python3 test_client.py 000000
014439
.jpg
```
python/examples/detection/ssd_vgg16_300_240e_voc/README_CN.md
浏览文件 @
2d771844
...
...
@@ -18,5 +18,5 @@ python3 -m paddle_serving_server.serve --model serving_server --port 9494 --gpu_
### 执行预测
```
python3 test_client.py 000000
570688
.jpg
python3 test_client.py 000000
014439
.jpg
```
python/examples/detection/ssd_vgg16_300_240e_voc/test_client.py
浏览文件 @
2d771844
...
...
@@ -12,18 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
paddle_serving_client
import
Client
from
paddle_serving_app.reader
import
*
import
sys
import
numpy
as
np
from
paddle_serving_client
import
Client
from
paddle_serving_app.reader
import
*
import
cv2
preprocess
=
Sequential
([
File2Image
(),
BGR2RGB
(),
Normalize
([
123.675
,
116.28
,
103.53
],
[
58.395
,
57.12
,
57.375
],
False
),
Resize
((
512
,
512
)),
Transpose
(
(
2
,
0
,
1
))
File2Image
(),
BGR2RGB
(),
Resize
(
(
608
,
608
),
interpolation
=
cv2
.
INTER_LINEAR
),
Div
(
255.0
),
Transpose
(
(
2
,
0
,
1
))
])
postprocess
=
RCNNPostprocess
(
"label_list.txt"
,
"output"
)
postprocess
=
RCNNPostprocess
(
"label_list.txt"
,
"output"
,
[
608
,
608
]
)
client
=
Client
()
client
.
load_client_config
(
"serving_client/serving_client_conf.prototxt"
)
...
...
@@ -33,9 +33,10 @@ im = preprocess(sys.argv[1])
fetch_map
=
client
.
predict
(
feed
=
{
"image"
:
im
,
"im_shape"
:
np
.
array
([
512
,
512
]),
"scale_factor"
:
np
.
array
([
1.0
,
1.0
]).
reshape
(
-
1
),
},
fetch
=
[
"save_infer_model/scale_0.tmp_1"
],
batch
=
False
)
print
(
fetch_map
)
fetch_map
[
"image"
]
=
sys
.
argv
[
1
]
postprocess
(
fetch_map
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录