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
e2755f2c
Unverified
Commit
e2755f2c
authored
Nov 26, 2021
by
Double_V
Committed by
GitHub
Nov 26, 2021
Browse files
Merge pull request #4774 from zhiqiu/dev/fix_infer2
add no_grad for infer function
parents
b1ba0f7a
17a46421
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tools/infer_det.py
tools/infer_det.py
+1
-0
No files found.
tools/infer_det.py
View file @
e2755f2c
...
...
@@ -53,6 +53,7 @@ def draw_det_res(dt_boxes, config, img, img_name, save_path):
logger
.
info
(
"The detected Image saved in {}"
.
format
(
save_path
))
@
paddle
.
no_grad
()
def
main
():
global_config
=
config
[
'Global'
]
...
...
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