Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.pad.face
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.pad.face
Commits
aa938823
There was a problem fetching the pipeline summary.
Commit
aa938823
authored
7 years ago
by
Olegs NIKISINS
Browse files
Options
Downloads
Patches
Plain Diff
Updated the FunnyEyes redistribution function
parent
affe8037
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!65
Updated the HLDI of BATL DB, added FunnyEyes fix, and protocol joining test and dev sets
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/database/batl.py
+12
-8
12 additions, 8 deletions
bob/pad/face/database/batl.py
with
12 additions
and
8 deletions
bob/pad/face/database/batl.py
+
12
−
8
View file @
aa938823
...
...
@@ -288,14 +288,14 @@ class BatlPadDatabase(PadDatabase):
'
eval
'
sets in the following way.
Original (low-level DB) distribution is as follows:
'
train
'
=
0
'
dev
'
= 2
7
'
eval
'
=
8
'
train
'
=
N1
'
dev
'
=
N
2
'
eval
'
=
N3
After this function is applied the distribution is:
'
train
'
=
19
'
dev
'
=
8
'
eval
'
=
8
'
train
'
=
N1 + 1/2*N2
'
dev
'
=
N2 - 1/2*N2
'
eval
'
=
N3
**Parameters:**
...
...
@@ -333,7 +333,9 @@ class BatlPadDatabase(PadDatabase):
exclude
=
[
"
_1_01
"
,
"
_1_04
"
,
"
_1_05
"
,
"
_1_06
"
,
"
_1_07
"
]
# files ending with these paths relate to FunnyEyes
files_to_append
=
[
f
for
f
in
files_to_append
if
f
.
path
[
-
5
:]
in
exclude
][
0
:
19
]
# append 19 files from "dev" to "train" set
files_to_append
=
[
f
for
f
in
files_to_append
if
f
.
path
[
-
5
:]
in
exclude
]
files_to_append
=
files_to_append
[
0
:
int
(
len
(
files_to_append
)
/
2
)]
# append HALF of files from "dev" to "train" set
files_train
=
files_train
+
files_to_append
...
...
@@ -343,7 +345,9 @@ class BatlPadDatabase(PadDatabase):
exclude
=
[
"
_1_01
"
,
"
_1_04
"
,
"
_1_05
"
,
"
_1_06
"
,
"
_1_07
"
]
# files ending with these paths relate to FunnyEyes
files_to_append_1
=
[
f
for
f
in
files_dev
if
f
.
path
[
-
5
:]
in
exclude
][
-
8
:]
# 8 "dev" files containing FunnyEyes
files_to_append_1
=
[
f
for
f
in
files_dev
if
f
.
path
[
-
5
:]
in
exclude
]
# "dev" files containing FunnyEyes
files_to_append_1
=
files_to_append_1
[
-
int
(
len
(
files_to_append_1
)
/
2
):]
# second HALF of "dev" files containing FunnyEyes
files_to_append_2
=
[
f
for
f
in
files_dev
if
f
.
path
[
-
5
:]
not
in
exclude
]
# "dev" set without FunnyEyes
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment