Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.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.bio.face
Commits
f1d3573d
Commit
f1d3573d
authored
3 years ago
by
Yannick DAYER
Browse files
Options
Downloads
Patches
Plain Diff
Set default annotations path
parent
1de7e2ea
No related branches found
No related tags found
1 merge request
!106
Vulnerability framework - CSV datasets
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/face/config/database/replaymobile.py
+3
-3
3 additions, 3 deletions
bob/bio/face/config/database/replaymobile.py
bob/bio/face/database/replaymobile.py
+6
-4
6 additions, 4 deletions
bob/bio/face/database/replaymobile.py
with
9 additions
and
7 deletions
bob/bio/face/config/database/replaymobile.py
+
3
−
3
View file @
f1d3573d
...
...
@@ -30,16 +30,16 @@ if 'protocol' not in locals():
logger
.
info
(
f
"
protocol not specified, using default:
'
{
default_protocol
}
'"
)
protocol
=
default_protocol
dataset_protocol_path
=
rc
.
get
(
"
bob.db.replaymobile.dataset_protocol_path
"
,
None
)
# TODO default
dataset_protocol_path
=
rc
.
get
(
"
bob.db.replaymobile.dataset_protocol_path
"
,
None
)
logger
.
info
(
f
"
Loading protocol from
'
{
dataset_protocol_path
}
'"
)
data_path
=
rc
.
get
(
"
bob.db.replaymobile.directory
"
)
# TODO default
data_path
=
rc
.
get
(
"
bob.db.replaymobile.directory
"
,
None
)
logger
.
info
(
f
"
Raw data files will be fetched from
'
{
data_path
}
'"
)
data_extension
=
rc
.
get
(
"
bob.db.replaymobile.extension
"
,
"
.mov
"
)
logger
.
info
(
f
"
Raw data files have the
'
{
data_extension
}
'
extension
"
)
annotations_path
=
rc
.
get
(
"
bob.db.replaymobile.annotation_path
"
,
None
)
# TODO default
annotations_path
=
rc
.
get
(
"
bob.db.replaymobile.annotation_path
"
,
None
)
logger
.
info
(
f
"
Annotations files will be fetched from
'
{
annotations_path
}
'"
)
logger
.
debug
(
f
"
Instantiation of ReplayMobile bio database with protocol
'
{
protocol
}
'"
)
...
...
This diff is collapsed.
Click to expand it.
bob/bio/face/database/replaymobile.py
+
6
−
4
View file @
f1d3573d
...
...
@@ -257,10 +257,12 @@ class ReplayMobileBioDatabase(CSVDataset):
data_path
=
rc
.
get
(
"
bob.db.replaymobile.directory
"
,
""
)
if
annotations_path
is
None
:
# Defaults to {data_path}/faceloc/rect if config not defined
annotations_path
=
rc
.
get
(
"
bob.db.replaymobile.annotation_directory
"
,
os
.
path
.
join
(
data_path
,
"
faceloc/rect/
"
)
name
=
"
annotations-replaymobile-mtcnn-9cd6e452.tar.xz
"
annotations_path
=
get_file
(
name
,
[
f
"
http://www.idiap.ch/software/bob/data/bob/bob.pad.face/
{
name
}
"
],
cache_subdir
=
"
annotations
"
,
file_hash
=
"
9cd6e452
"
,
)
logger
.
info
(
f
"
Database: Loading database definition from
'
{
protocol_definition_path
}
'
.
"
)
...
...
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