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
0f5fb9bd
"docs/source/vscode:/vscode.git/clone" did not exist on "3d08d8dc4e7c25b28ccfba1631e72a77ae6478be"
Commit
0f5fb9bd
authored
Apr 12, 2022
by
WenmuZhou
Browse files
rm to tensor
parent
a8318353
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ppocr/modeling/heads/det_fce_head.py
ppocr/modeling/heads/det_fce_head.py
+2
-2
No files found.
ppocr/modeling/heads/det_fce_head.py
View file @
0f5fb9bd
...
@@ -63,7 +63,7 @@ class FCEHead(nn.Layer):
...
@@ -63,7 +63,7 @@ class FCEHead(nn.Layer):
weight_attr
=
ParamAttr
(
weight_attr
=
ParamAttr
(
name
=
'cls_weights'
,
name
=
'cls_weights'
,
initializer
=
Normal
(
initializer
=
Normal
(
mean
=
paddle
.
to_tensor
(
0.
)
,
std
=
paddle
.
to_tensor
(
0.01
))
)
,
mean
=
0.
,
std
=
0.01
)),
bias_attr
=
True
)
bias_attr
=
True
)
self
.
out_conv_reg
=
nn
.
Conv2D
(
self
.
out_conv_reg
=
nn
.
Conv2D
(
in_channels
=
self
.
in_channels
,
in_channels
=
self
.
in_channels
,
...
@@ -75,7 +75,7 @@ class FCEHead(nn.Layer):
...
@@ -75,7 +75,7 @@ class FCEHead(nn.Layer):
weight_attr
=
ParamAttr
(
weight_attr
=
ParamAttr
(
name
=
'reg_weights'
,
name
=
'reg_weights'
,
initializer
=
Normal
(
initializer
=
Normal
(
mean
=
paddle
.
to_tensor
(
0.
)
,
std
=
paddle
.
to_tensor
(
0.01
))
)
,
mean
=
0.
,
std
=
0.01
)),
bias_attr
=
True
)
bias_attr
=
True
)
def
forward
(
self
,
feats
,
targets
=
None
):
def
forward
(
self
,
feats
,
targets
=
None
):
...
...
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