Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
74e439f4
Commit
74e439f4
authored
May 17, 2017
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1166 from dkurt:fix_net_deployment
parents
dea8d5f9
743f82c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dnn.cpp
modules/dnn/src/dnn.cpp
+2
-2
No files found.
modules/dnn/src/dnn.cpp
View file @
74e439f4
...
...
@@ -604,10 +604,10 @@ void Net::setBlob(String outputName, const Mat &blob_)
LayerData
&
ld
=
impl
->
layers
[
pin
.
lid
];
ld
.
outputBlobs
.
resize
(
std
::
max
(
pin
.
oid
+
1
,
(
int
)
ld
.
requiredOutputs
.
size
())
);
MatSize
prevShape
=
ld
.
outputBlobs
[
pin
.
oid
]
.
size
;
bool
oldShape
=
ld
.
outputBlobs
[
pin
.
oid
].
size
==
blob_
.
size
;
ld
.
outputBlobs
[
pin
.
oid
]
=
blob_
.
clone
();
impl
->
netWasAllocated
=
impl
->
netWasAllocated
&&
prevShape
==
blob_
.
siz
e
;
impl
->
netWasAllocated
=
impl
->
netWasAllocated
&&
oldShap
e
;
}
Mat
Net
::
getBlob
(
String
outputName
)
...
...
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