Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
52f45bc3
Unverified
Commit
52f45bc3
authored
Apr 09, 2021
by
zhoujun
Committed by
GitHub
Apr 09, 2021
Browse files
Merge branch 'dygraph' into dygraph_rc
parents
f5315349
f2fc1a3f
Changes
42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
1 deletion
+124
-1
tools/infer_e2e.py
tools/infer_e2e.py
+122
-0
tools/program.py
tools/program.py
+2
-1
No files found.
tools/infer_e2e.py
0 → 100755
View file @
52f45bc3
This diff is collapsed.
Click to expand it.
tools/program.py
View file @
52f45bc3
...
...
@@ -375,7 +375,8 @@ def preprocess(is_train=False):
alg
=
config
[
'Architecture'
][
'algorithm'
]
assert
alg
in
[
'EAST'
,
'DB'
,
'SAST'
,
'Rosetta'
,
'CRNN'
,
'STARNet'
,
'RARE'
,
'SRN'
,
'CLS'
'EAST'
,
'DB'
,
'SAST'
,
'Rosetta'
,
'CRNN'
,
'STARNet'
,
'RARE'
,
'SRN'
,
'CLS'
,
'PGNet'
]
device
=
'gpu:{}'
.
format
(
dist
.
ParallelEnv
().
dev_id
)
if
use_gpu
else
'cpu'
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment