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
ModelZoo
SOLOv2-pytorch
Commits
2b8a5f8d
"src/diffusers/utils/dummy_optimum_quanto_objects.py" did not exist on "836f3f35c2453537ec86b3262c8c197c5d4a2767"
Commit
2b8a5f8d
authored
Jan 07, 2020
by
Cao Yuhang
Committed by
Kai Chen
Jan 07, 2020
Browse files
add nan checking in ssd head (#1935)
parent
318fc76c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
mmdet/models/anchor_heads/ssd_head.py
mmdet/models/anchor_heads/ssd_head.py
+6
-0
No files found.
mmdet/models/anchor_heads/ssd_head.py
View file @
2b8a5f8d
...
...
@@ -182,6 +182,12 @@ class SSDHead(AnchorHead):
all_bbox_weights
=
torch
.
cat
(
bbox_weights_list
,
-
2
).
view
(
num_images
,
-
1
,
4
)
# check NaN and Inf
assert
torch
.
isfinite
(
all_cls_scores
).
all
().
item
(),
\
'classification scores become infinite or NaN!'
assert
torch
.
isfinite
(
all_bbox_preds
).
all
().
item
(),
\
'bbox predications become infinite or NaN!'
losses_cls
,
losses_bbox
=
multi_apply
(
self
.
loss_single
,
all_cls_scores
,
...
...
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