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
85d340bd
Unverified
Commit
85d340bd
authored
Feb 19, 2021
by
Double_V
Committed by
GitHub
Feb 19, 2021
Browse files
Merge pull request #1951 from light1003/patch-1
Update det_basic_loss.py
parents
1e5c6e43
4a8fc917
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/losses/det_basic_loss.py
ppocr/losses/det_basic_loss.py
+1
-1
No files found.
ppocr/losses/det_basic_loss.py
View file @
85d340bd
...
...
@@ -200,6 +200,6 @@ def ohem_batch(scores, gt_texts, training_masks, ohem_ratio):
i
,
:,
:],
ohem_ratio
))
selected_masks
=
np
.
concatenate
(
selected_masks
,
0
)
selected_masks
=
paddle
.
to_
variable
(
selected_masks
)
selected_masks
=
paddle
.
to_
tensor
(
selected_masks
)
return
selected_masks
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