Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
221cb0332
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
221cb0332
Commits
6a3e1505
Commit
6a3e1505
authored
3 years ago
by
anzhengqi
Browse files
Options
Downloads
Patches
Plain Diff
add posenet export air
parent
07f7db59
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
official/cv/posenet/README_CN.md
+3
-3
3 additions, 3 deletions
official/cv/posenet/README_CN.md
official/cv/posenet/export.py
+1
-1
1 addition, 1 deletion
official/cv/posenet/export.py
with
4 additions
and
4 deletions
official/cv/posenet/README_CN.md
+
3
−
3
View file @
6a3e1505
...
...
@@ -285,13 +285,13 @@ PoseNet是剑桥大学提出的一种鲁棒、实时的6DOF(单目六自由度
### 导出
在执行推理之前,需要通过export.py导出
mindir文件
。
在执行推理之前,需要通过export.py导出
MINDIR/AIR模型
。
```
shell
python export.py
--ckpt_url
[
CKPT_URL]
--dataset
[
DATASET]
python export.py
--ckpt_url
[
CKPT_URL]
--dataset
[
DATASET]
--file_format
[
FILE_FORMAT]
```
ckpt_url和dataset为必填项。
CKPT_URL和DATASET为必填项, FILE_FORMAT默认为MINDIR,可配值MINDIR或AIR.
## 推理过程
...
...
This diff is collapsed.
Click to expand it.
official/cv/posenet/export.py
+
1
−
1
View file @
6a3e1505
...
...
@@ -34,7 +34,7 @@ parser.add_argument('--dataset', type=str, default='KingsCollege',
help
=
'
Name of dataset.
'
)
parser
.
add_argument
(
"
--ckpt_url
"
,
type
=
str
,
required
=
True
,
help
=
"
Checkpoint file path.
"
)
parser
.
add_argument
(
"
--file_name
"
,
type
=
str
,
default
=
"
posenet
"
,
help
=
"
output file name.
"
)
parser
.
add_argument
(
'
--file_format
'
,
type
=
str
,
choices
=
[
"
MINDIR
"
],
default
=
'
MINDIR
'
,
help
=
'
file format
'
)
parser
.
add_argument
(
'
--file_format
'
,
type
=
str
,
choices
=
[
"
MINDIR
"
,
"
AIR
"
],
default
=
'
MINDIR
'
,
help
=
'
file format
'
)
args
=
parser
.
parse_args
()
context
.
set_context
(
mode
=
context
.
GRAPH_MODE
,
device_target
=
args
.
device_target
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment