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
a5b21912
Commit
a5b21912
authored
Dec 09, 2020
by
LDOUBLEV
Browse files
fix conflicts
parent
7cce85cc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
configs/det/ch_ppocr_v1.1/ch_det_mv3_db_v2.0.yml
configs/det/ch_ppocr_v1.1/ch_det_mv3_db_v2.0.yml
+0
-0
configs/det/ch_ppocr_v1.1/ch_det_res18_db_v2.0.yml
configs/det/ch_ppocr_v1.1/ch_det_res18_db_v2.0.yml
+0
-0
ppocr/data/simple_dataset.py
ppocr/data/simple_dataset.py
+2
-2
No files found.
configs/det/ch_ppocr_v1.1/ch_det_mv3_db.yml
→
configs/det/ch_ppocr_v1.1/ch_det_mv3_db
_v2.0
.yml
View file @
a5b21912
File moved
configs/det/ch_ppocr_v1.1/ch_det_res18_db.yml
→
configs/det/ch_ppocr_v1.1/ch_det_res18_db
_v2.0
.yml
View file @
a5b21912
File moved
ppocr/data/simple_dataset.py
View file @
a5b21912
...
@@ -57,9 +57,9 @@ class SimpleDataSet(Dataset):
...
@@ -57,9 +57,9 @@ class SimpleDataSet(Dataset):
sample_num
=
round
(
len
(
datas
)
*
sample_ratio
)
sample_num
=
round
(
len
(
datas
)
*
sample_ratio
)
if
data_num_per_epoch
is
not
None
:
if
data_num_per_epoch
is
not
None
:
sample_num
=
data_num_per_epoch
*
sample_ratio
sample_num
=
int
(
data_num_per_epoch
*
sample_ratio
)
nums
,
rem
=
sample_num
//
len
(
datas
),
sample_num
%
len
(
datas
)
nums
,
rem
=
int
(
sample_num
//
len
(
datas
)
)
,
int
(
sample_num
%
len
(
datas
)
)
return
list
(
datas
)
*
nums
+
random
.
sample
(
datas
,
rem
)
return
list
(
datas
)
*
nums
+
random
.
sample
(
datas
,
rem
)
def
get_image_info_list
(
self
,
def
get_image_info_list
(
self
,
...
...
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