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
62a01f7e
Commit
62a01f7e
authored
Apr 26, 2022
by
LDOUBLEV
Browse files
fix
parent
d222ff03
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_cml.yml
configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_cml.yml
+2
-2
configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_student.yml
configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_student.yml
+1
-1
ppocr/modeling/heads/det_db_head.py
ppocr/modeling/heads/det_db_head.py
+4
-4
No files found.
configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_cml.yml
View file @
62a01f7e
...
...
@@ -32,7 +32,7 @@ NetWorks:
model_name
:
large
disable_se
:
true
Neck
:
name
:
CAP
A
N
name
:
CA
F
PN
out_channels
:
96
shortcut
:
True
Head
:
...
...
@@ -48,7 +48,7 @@ NetWorks:
model_name
:
large
disable_se
:
true
Neck
:
name
:
CAP
A
N
name
:
CA
F
PN
out_channels
:
96
shortcut
:
True
Head
:
...
...
configs/det/ch_PP-OCRv3/ch_PP-OCRv3_det_student.yml
View file @
62a01f7e
...
...
@@ -28,7 +28,7 @@ Architecture:
model_name
:
large
disable_se
:
True
Neck
:
name
:
CAP
A
N
name
:
CA
F
PN
out_channels
:
96
shortcut
:
True
Head
:
...
...
ppocr/modeling/heads/det_db_head.py
View file @
62a01f7e
...
...
@@ -37,8 +37,8 @@ class Head(nn.Layer):
self
.
conv1
=
nn
.
Conv2D
(
in_channels
=
in_channels
,
out_channels
=
in_channels
//
4
,
kernel_size
=
kernel_
size
[
0
],
padding
=
int
(
kernel_
size
[
0
]
//
2
),
kernel_size
=
kernel_
list
[
0
],
padding
=
int
(
kernel_
list
[
0
]
//
2
),
weight_attr
=
ParamAttr
(),
bias_attr
=
False
)
self
.
conv_bn1
=
nn
.
BatchNorm
(
...
...
@@ -51,7 +51,7 @@ class Head(nn.Layer):
self
.
conv2
=
nn
.
Conv2DTranspose
(
in_channels
=
in_channels
//
4
,
out_channels
=
in_channels
//
4
,
kernel_size
=
kernel_
size
[
1
],
kernel_size
=
kernel_
list
[
1
],
stride
=
2
,
weight_attr
=
ParamAttr
(
initializer
=
paddle
.
nn
.
initializer
.
KaimingUniform
()),
...
...
@@ -66,7 +66,7 @@ class Head(nn.Layer):
self
.
conv3
=
nn
.
Conv2DTranspose
(
in_channels
=
in_channels
//
4
,
out_channels
=
1
,
kernel_size
=
kernel_
size
[
2
],
kernel_size
=
kernel_
list
[
2
],
stride
=
2
,
weight_attr
=
ParamAttr
(
initializer
=
paddle
.
nn
.
initializer
.
KaimingUniform
()),
...
...
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