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
45dff759
Unverified
Commit
45dff759
authored
Aug 24, 2021
by
xiaoting
Committed by
GitHub
Aug 24, 2021
Browse files
Merge pull request #3779 from LDOUBLEV/fix_trt_res
Fix trt rec warmup
parents
c16b6ccb
3691291a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/infer/predict_rec.py
tools/infer/predict_rec.py
+1
-1
No files found.
tools/infer/predict_rec.py
View file @
45dff759
...
...
@@ -278,7 +278,7 @@ def main(args):
if
args
.
warmup
:
img
=
np
.
random
.
uniform
(
0
,
255
,
[
32
,
320
,
3
]).
astype
(
np
.
uint8
)
for
i
in
range
(
2
):
res
=
text_recognizer
([
img
])
res
=
text_recognizer
([
img
]
*
int
(
args
.
rec_batch_num
)
)
for
image_file
in
image_file_list
:
img
,
flag
=
check_and_read_gif
(
image_file
)
...
...
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