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
OpenDAS
MMCV
Commits
0a375614
"vscode:/vscode.git/clone" did not exist on "f89ff93e26d02037db30e88053983d6bb12dd660"
Unverified
Commit
0a375614
authored
Jul 23, 2021
by
ddonatien
Committed by
GitHub
Jul 23, 2021
Browse files
Prevent kernal_normalizer to change mask dtype (#1210)
parent
17fa6670
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/ops/carafe.py
mmcv/ops/carafe.py
+1
-1
No files found.
mmcv/ops/carafe.py
View file @
0a375614
...
@@ -268,7 +268,7 @@ class CARAFEPack(nn.Module):
...
@@ -268,7 +268,7 @@ class CARAFEPack(nn.Module):
mask_channel
=
int
(
mask_c
/
float
(
self
.
up_kernel
**
2
))
mask_channel
=
int
(
mask_c
/
float
(
self
.
up_kernel
**
2
))
mask
=
mask
.
view
(
n
,
mask_channel
,
-
1
,
h
,
w
)
mask
=
mask
.
view
(
n
,
mask_channel
,
-
1
,
h
,
w
)
mask
=
F
.
softmax
(
mask
,
dim
=
2
)
mask
=
F
.
softmax
(
mask
,
dim
=
2
,
dtype
=
mask
.
dtype
)
mask
=
mask
.
view
(
n
,
mask_c
,
h
,
w
).
contiguous
()
mask
=
mask
.
view
(
n
,
mask_c
,
h
,
w
).
contiguous
()
return
mask
return
mask
...
...
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