Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
fada959b
Commit
fada959b
authored
5 years ago
by
Liubov Batanina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comment
parent
d825caf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
layers_common.cpp
modules/dnn/src/layers/layers_common.cpp
+6
-6
No files found.
modules/dnn/src/layers/layers_common.cpp
View file @
fada959b
...
...
@@ -155,12 +155,7 @@ void getPoolingKernelParams(const LayerParams ¶ms, std::vector<size_t>& kern
globalPooling
[
2
]
=
params
.
get
<
bool
>
(
"global_pooling_w"
,
is_global
);
is_global
=
globalPooling
[
0
]
||
globalPooling
[
1
]
||
globalPooling
[
2
];
if
(
!
is_global
)
{
util
::
getKernelSize
(
params
,
kernel
);
util
::
getStrideAndPadding
(
params
,
pads_begin
,
pads_end
,
strides
,
padMode
,
kernel
.
size
());
}
else
if
(
is_global
)
{
util
::
getStrideAndPadding
(
params
,
pads_begin
,
pads_end
,
strides
,
padMode
);
if
((
globalPooling
[
0
]
&&
params
.
has
(
"kernel_d"
))
||
...
...
@@ -184,6 +179,11 @@ void getPoolingKernelParams(const LayerParams ¶ms, std::vector<size_t>& kern
CV_Error
(
cv
::
Error
::
StsBadArg
,
"In global_pooling mode, strides must be = 1"
);
}
}
else
{
util
::
getKernelSize
(
params
,
kernel
);
util
::
getStrideAndPadding
(
params
,
pads_begin
,
pads_end
,
strides
,
padMode
,
kernel
.
size
());
}
}
void
getConvolutionKernelParams
(
const
LayerParams
&
params
,
std
::
vector
<
size_t
>&
kernel
,
std
::
vector
<
size_t
>&
pads_begin
,
...
...
This diff is collapsed.
Click to expand it.
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