Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleX
提交
30ca29e4
P
PaddleX
项目概览
PaddlePaddle
/
PaddleX
通知
138
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
43
列表
看板
标记
里程碑
合并请求
5
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleX
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
43
Issue
43
列表
看板
标记
里程碑
合并请求
5
合并请求
5
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
30ca29e4
编写于
7月 14, 2020
作者:
J
Jason
提交者:
GitHub
7月 14, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #224 from FlyingQianMM/develop_qh
fix spelling mistake in meter_reader docs and codes
上级
8e51dcc6
7488d339
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
7 addition
and
8 deletion
+7
-8
docs/examples/meter_reader.md
docs/examples/meter_reader.md
+1
-1
examples/meter_reader/README.md
examples/meter_reader/README.md
+1
-1
examples/meter_reader/deploy/python/reader_deploy.py
examples/meter_reader/deploy/python/reader_deploy.py
+1
-1
examples/meter_reader/reader_infer.py
examples/meter_reader/reader_infer.py
+1
-1
examples/meter_reader/train_detection.py
examples/meter_reader/train_detection.py
+1
-1
examples/meter_reader/train_segmentation.py
examples/meter_reader/train_segmentation.py
+2
-3
未找到文件。
docs/examples/meter_reader.md
浏览文件 @
30ca29e4
...
...
@@ -179,7 +179,7 @@ git clone https://github.com/PaddlePaddle/PaddleX
.
\p
addlex_inference
\m
eter_reader.exe
--det_model_dir
=
\p
ath
\t
o
\e
ncrypted_det_inference_model
--seg_model_dir
=
\p
ath
\t
o
\e
ncrypted_seg_inference_model
--image
=
\p
ath
\t
o
\t
est.jpg
--use_gpu
=
1
--use_erode
=
1
--save_dir
=
output
--det_key
yEBLDiBOdlj+5EsNNrABhfDuQGkdcreYcHcncqwdbx0
=
--seg_key
DbVS64I9pFRo5XmQ8MNV2kSGsfEr4FKA6OH9OUhRrsY
=
```
### Linux系统的jeton嵌入式设备安全部署
### Linux系统的jet
s
on嵌入式设备安全部署
#### c++部署
...
...
examples/meter_reader/README.md
浏览文件 @
30ca29e4
...
...
@@ -188,7 +188,7 @@ git clone https://github.com/PaddlePaddle/PaddleX
.
\p
addlex_inference
\m
eter_reader.exe
--det_model_dir
=
\p
ath
\t
o
\e
ncrypted_det_inference_model
--seg_model_dir
=
\p
ath
\t
o
\e
ncrypted_seg_inference_model
--image
=
\p
ath
\t
o
\t
est.jpg
--use_gpu
=
1
--use_erode
=
1
--save_dir
=
output
--det_key
yEBLDiBOdlj+5EsNNrABhfDuQGkdcreYcHcncqwdbx0
=
--seg_key
DbVS64I9pFRo5XmQ8MNV2kSGsfEr4FKA6OH9OUhRrsY
=
```
### Linux系统的jeton嵌入式设备安全部署
### Linux系统的jet
s
on嵌入式设备安全部署
#### c++部署
...
...
examples/meter_reader/deploy/python/reader_deploy.py
浏览文件 @
30ca29e4
...
...
@@ -335,7 +335,7 @@ def infer(args):
meter_reader
.
predict
(
im_file
,
args
.
save_dir
,
args
.
use_erode
,
args
.
erode_kernel
,
args
.
score_threshold
,
args
.
seg_batch_size
,
args
.
seg_thread_num
)
elif
args
.
with
_camera
:
elif
args
.
use
_camera
:
cap_video
=
cv2
.
VideoCapture
(
args
.
camera_id
)
if
not
cap_video
.
isOpened
():
raise
Exception
(
...
...
examples/meter_reader/reader_infer.py
浏览文件 @
30ca29e4
...
...
@@ -335,7 +335,7 @@ def infer(args):
meter_reader
.
predict
(
im_file
,
args
.
save_dir
,
args
.
use_erode
,
args
.
erode_kernel
,
args
.
score_threshold
,
args
.
seg_batch_size
,
args
.
seg_thread_num
)
elif
args
.
with
_camera
:
elif
args
.
use
_camera
:
cap_video
=
cv2
.
VideoCapture
(
args
.
camera_id
)
if
not
cap_video
.
isOpened
():
raise
Exception
(
...
...
examples/meter_reader/train_detection.py
浏览文件 @
30ca29e4
...
...
@@ -6,7 +6,7 @@ from paddlex.det import transforms
import
paddlex
as
pdx
# 下载和解压表计检测数据集
meter_det_dataset
=
'https://bj.bcebos.com/paddlex/
meter
reader/datasets/meter_det.tar.gz'
meter_det_dataset
=
'https://bj.bcebos.com/paddlex/
examples/meter_
reader/datasets/meter_det.tar.gz'
pdx
.
utils
.
download_and_decompress
(
meter_det_dataset
,
path
=
'./'
)
# 定义训练和验证时的transforms
...
...
examples/meter_reader/train_segmentation.py
浏览文件 @
30ca29e4
...
...
@@ -6,7 +6,7 @@ import paddlex as pdx
from
paddlex.seg
import
transforms
# 下载和解压表盘分割数据集
meter_seg_dataset
=
'https://bj.bcebos.com/paddlex/
meter
reader/datasets/meter_seg.tar.gz'
meter_seg_dataset
=
'https://bj.bcebos.com/paddlex/
examples/meter_
reader/datasets/meter_seg.tar.gz'
pdx
.
utils
.
download_and_decompress
(
meter_seg_dataset
,
path
=
'./'
)
# 定义训练和验证时的transforms
...
...
@@ -42,8 +42,7 @@ eval_dataset = pdx.datasets.SegDataset(
#
# API说明: https://paddlex.readthedocs.io/zh_CN/latest/apis/models/semantic_segmentation.html#deeplabv3p
model
=
pdx
.
seg
.
DeepLabv3p
(
num_classes
=
len
(
train_dataset
.
labels
),
backbone
=
'Xception65'
)
num_classes
=
len
(
train_dataset
.
labels
),
backbone
=
'Xception65'
)
model
.
train
(
num_epochs
=
20
,
train_dataset
=
train_dataset
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录