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
wangsen
paddle_dbnet
Commits
0aa8221d
Commit
0aa8221d
authored
Nov 03, 2021
by
MissPenguin
Browse files
Permute_batch -> PermuteBatch
parent
8d47ab6e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
deploy/cpp_infer/include/ocr_rec.h
deploy/cpp_infer/include/ocr_rec.h
+1
-1
deploy/cpp_infer/include/preprocess_op.h
deploy/cpp_infer/include/preprocess_op.h
+1
-1
deploy/cpp_infer/src/preprocess_op.cpp
deploy/cpp_infer/src/preprocess_op.cpp
+1
-1
No files found.
deploy/cpp_infer/include/ocr_rec.h
View file @
0aa8221d
...
@@ -89,7 +89,7 @@ private:
...
@@ -89,7 +89,7 @@ private:
// pre-process
// pre-process
CrnnResizeImg
resize_op_
;
CrnnResizeImg
resize_op_
;
Normalize
normalize_op_
;
Normalize
normalize_op_
;
Permute
_b
atch
permute_op_
;
Permute
B
atch
permute_op_
;
// post-process
// post-process
PostProcessor
post_processor_
;
PostProcessor
post_processor_
;
...
...
deploy/cpp_infer/include/preprocess_op.h
View file @
0aa8221d
...
@@ -44,7 +44,7 @@ public:
...
@@ -44,7 +44,7 @@ public:
virtual
void
Run
(
const
cv
::
Mat
*
im
,
float
*
data
);
virtual
void
Run
(
const
cv
::
Mat
*
im
,
float
*
data
);
};
};
class
Permute
_b
atch
{
class
Permute
B
atch
{
public:
public:
virtual
void
Run
(
const
std
::
vector
<
cv
::
Mat
>
imgs
,
float
*
data
);
virtual
void
Run
(
const
std
::
vector
<
cv
::
Mat
>
imgs
,
float
*
data
);
};
};
...
...
deploy/cpp_infer/src/preprocess_op.cpp
View file @
0aa8221d
...
@@ -40,7 +40,7 @@ void Permute::Run(const cv::Mat *im, float *data) {
...
@@ -40,7 +40,7 @@ void Permute::Run(const cv::Mat *im, float *data) {
}
}
}
}
void
Permute
_b
atch
::
Run
(
const
std
::
vector
<
cv
::
Mat
>
imgs
,
float
*
data
)
{
void
Permute
B
atch
::
Run
(
const
std
::
vector
<
cv
::
Mat
>
imgs
,
float
*
data
)
{
for
(
int
j
=
0
;
j
<
imgs
.
size
();
j
++
){
for
(
int
j
=
0
;
j
<
imgs
.
size
();
j
++
){
int
rh
=
imgs
[
j
].
rows
;
int
rh
=
imgs
[
j
].
rows
;
int
rw
=
imgs
[
j
].
cols
;
int
rw
=
imgs
[
j
].
cols
;
...
...
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