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
6439a4df
Unverified
Commit
6439a4df
authored
Sep 29, 2021
by
xiaoting
Committed by
GitHub
Sep 29, 2021
Browse files
Merge pull request #4218 from tink2123/fix_seed
Fix some typo for SEED
parents
6f7e07e6
d5e6df05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
configs/rec/rec_resnet_stn_bilstm_att.yml
configs/rec/rec_resnet_stn_bilstm_att.yml
+1
-1
ppocr/modeling/backbones/__init__.py
ppocr/modeling/backbones/__init__.py
+2
-4
tools/program.py
tools/program.py
+1
-2
No files found.
configs/rec/rec_resnet_stn_bilstm_att.yml
View file @
6439a4df
...
@@ -37,7 +37,7 @@ Optimizer:
...
@@ -37,7 +37,7 @@ Optimizer:
Architecture
:
Architecture
:
model_type
:
rec
model_type
:
rec
algorithm
:
seed
algorithm
:
SEED
Transform
:
Transform
:
name
:
STN_ON
name
:
STN_ON
tps_inputsize
:
[
32
,
64
]
tps_inputsize
:
[
32
,
64
]
...
...
ppocr/modeling/backbones/__init__.py
View file @
6439a4df
...
@@ -28,9 +28,10 @@ def build_backbone(config, model_type):
...
@@ -28,9 +28,10 @@ def build_backbone(config, model_type):
from
.rec_mv1_enhance
import
MobileNetV1Enhance
from
.rec_mv1_enhance
import
MobileNetV1Enhance
from
.rec_nrtr_mtb
import
MTB
from
.rec_nrtr_mtb
import
MTB
from
.rec_resnet_31
import
ResNet31
from
.rec_resnet_31
import
ResNet31
from
.rec_resnet_aster
import
ResNet_ASTER
support_dict
=
[
support_dict
=
[
'MobileNetV1Enhance'
,
'MobileNetV3'
,
'ResNet'
,
'ResNetFPN'
,
'MTB'
,
'MobileNetV1Enhance'
,
'MobileNetV3'
,
'ResNet'
,
'ResNetFPN'
,
'MTB'
,
"ResNet31"
"ResNet31"
,
"ResNet_ASTER"
]
]
elif
model_type
==
"e2e"
:
elif
model_type
==
"e2e"
:
from
.e2e_resnet_vd_pg
import
ResNet
from
.e2e_resnet_vd_pg
import
ResNet
...
@@ -39,9 +40,6 @@ def build_backbone(config, model_type):
...
@@ -39,9 +40,6 @@ def build_backbone(config, model_type):
from
.table_resnet_vd
import
ResNet
from
.table_resnet_vd
import
ResNet
from
.table_mobilenet_v3
import
MobileNetV3
from
.table_mobilenet_v3
import
MobileNetV3
support_dict
=
[
"ResNet"
,
"MobileNetV3"
]
support_dict
=
[
"ResNet"
,
"MobileNetV3"
]
elif
model_type
==
"seed"
:
from
.rec_resnet_aster
import
ResNet_ASTER
support_dict
=
[
"ResNet_ASTER"
]
else
:
else
:
raise
NotImplementedError
raise
NotImplementedError
...
...
tools/program.py
View file @
6439a4df
...
@@ -414,8 +414,7 @@ def preprocess(is_train=False):
...
@@ -414,8 +414,7 @@ def preprocess(is_train=False):
assert
alg
in
[
assert
alg
in
[
'EAST'
,
'DB'
,
'SAST'
,
'Rosetta'
,
'CRNN'
,
'STARNet'
,
'RARE'
,
'SRN'
,
'EAST'
,
'DB'
,
'SAST'
,
'Rosetta'
,
'CRNN'
,
'STARNet'
,
'RARE'
,
'SRN'
,
'CLS'
,
'PGNet'
,
'Distillation'
,
'NRTR'
,
'TableAttn'
,
'SAR'
,
'PSE'
,
'CLS'
,
'PGNet'
,
'Distillation'
,
'NRTR'
,
'TableAttn'
,
'SAR'
,
'PSE'
,
'ASTER'
'SEED'
]
]
windows_not_support_list
=
[
'PSE'
]
windows_not_support_list
=
[
'PSE'
]
if
platform
.
system
()
==
"Windows"
and
alg
in
windows_not_support_list
:
if
platform
.
system
()
==
"Windows"
and
alg
in
windows_not_support_list
:
logger
.
warning
(
'{} is not support in Windows now'
.
format
(
logger
.
warning
(
'{} is not support in Windows now'
.
format
(
...
...
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