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
357b484d
Unverified
Commit
357b484d
authored
Jul 07, 2022
by
Yuchen Fan
Committed by
GitHub
Jul 07, 2022
Browse files
[Fix] Fix undefined variable error in pixel_group.cpp (#2104)
parent
d77557b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/ops/csrc/pytorch/cpu/pixel_group.cpp
mmcv/ops/csrc/pytorch/cpu/pixel_group.cpp
+1
-1
No files found.
mmcv/ops/csrc/pytorch/cpu/pixel_group.cpp
View file @
357b484d
...
@@ -41,7 +41,7 @@ std::vector<std::vector<float>> pixel_group_cpu(
...
@@ -41,7 +41,7 @@ std::vector<std::vector<float>> pixel_group_cpu(
Tensor
kernel_contour
,
int
kernel_region_num
,
float
dis_threshold
)
{
Tensor
kernel_contour
,
int
kernel_region_num
,
float
dis_threshold
)
{
assert
(
score
.
dim
()
==
2
);
assert
(
score
.
dim
()
==
2
);
assert
(
mask
.
dim
()
==
2
);
assert
(
mask
.
dim
()
==
2
);
assert
(
embedding
_dim
.
dim
()
==
3
);
assert
(
embedding
.
dim
()
==
3
);
int
height
=
score
.
size
(
0
);
int
height
=
score
.
size
(
0
);
int
width
=
score
.
size
(
1
);
int
width
=
score
.
size
(
1
);
assert
(
height
==
mask
.
size
(
0
)
==
embedding
.
size
(
1
)
==
kernel_label
.
size
(
1
));
assert
(
height
==
mask
.
size
(
0
)
==
embedding
.
size
(
1
)
==
kernel_label
.
size
(
1
));
...
...
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