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
4e5a70d0
There was a problem fetching the pipeline summary.
Commit
4e5a70d0
authored
6 years ago
by
Guillaume CLIVAZ
Browse files
Options
Downloads
Patches
Plain Diff
Minor update on comments in the docker hldi
parent
db4d48c4
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/database/batldocker.py
+10
-10
10 additions, 10 deletions
bob/pad/face/database/batldocker.py
with
10 additions
and
10 deletions
bob/pad/face/database/batldocker.py
+
10
−
10
View file @
4e5a70d0
#!/usr/bin/env python3
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""
"""
Created on Mon Jun 4 11:58:03 2018
@author: Guillaume Clivaz
@author: ageorge
"""
"""
import
json
import
json
import
os
import
os
...
@@ -28,7 +26,7 @@ DEFAULT_GT_CONFIG = dict(client_id=0, type_id=1, pai_id=2, low_level_group=3)
...
@@ -28,7 +26,7 @@ DEFAULT_GT_CONFIG = dict(client_id=0, type_id=1, pai_id=2, low_level_group=3)
class
BatlDockerPadFile
(
PadFile
):
class
BatlDockerPadFile
(
PadFile
):
"""
"""
A high level implementation of the File class for the BATL
GOV
A high level implementation of the File class for the BATL
Docker
database.
database.
"""
"""
...
@@ -45,8 +43,10 @@ class BatlDockerPadFile(PadFile):
...
@@ -45,8 +43,10 @@ class BatlDockerPadFile(PadFile):
**Parameters:**
**Parameters:**
``f`` : :py:class:`object`
``f`` : :py:class:`object`
An instance of the File class defined in the low level db interface
A dictionary containing client_id, type_id, path and file_id,
of the BATL database, in the ``bob.db.batlgovt.models.py`` file.
replacing the File class instance as no low level db is used,
but instead a ground-truth.csv is given as input in
BatlDockerPadDatabase
``stream_type`` : [] or :py:class:`str`
``stream_type`` : [] or :py:class:`str`
A types of the streams to be loaded.
A types of the streams to be loaded.
...
@@ -172,14 +172,14 @@ class BatlDockerPadFile(PadFile):
...
@@ -172,14 +172,14 @@ class BatlDockerPadFile(PadFile):
class
BatlDockerPadDatabase
(
PadDatabase
):
class
BatlDockerPadDatabase
(
PadDatabase
):
"""
"""
A high level implementation of the Database class
for the BATL GOVT
A high level implementation of the Database class
modified to use
database.
a ground-truth.csv file instead of a low-level
database.
"""
"""
def
__init__
(
def
__init__
(
self
,
self
,
protocol
=
'
baseline
'
,
protocol
=
'
baseline
'
,
original_directory
=
rc
[
'
bob.db.batlgovt.directory
'
]
,
original_directory
=
"
/tmp/sub_dir/data/
"
,
original_extension
=
'
.h5
'
,
original_extension
=
'
.h5
'
,
annotations_temp_dir
=
""
,
annotations_temp_dir
=
""
,
landmark_detect_method
=
"
mtcnn
"
,
landmark_detect_method
=
"
mtcnn
"
,
...
@@ -207,7 +207,7 @@ class BatlDockerPadDatabase(PadDatabase):
...
@@ -207,7 +207,7 @@ class BatlDockerPadDatabase(PadDatabase):
See the ``parse_protocol`` method of this class.
See the ``parse_protocol`` method of this class.
``original_directory`` : str
``original_directory`` : str
The directory where the original data of the
database
are stored.
The directory where the original data of the
ground-truth.csv
are stored.
``original_extension`` : str
``original_extension`` : str
The file name extension of the original data.
The file name extension of the original data.
...
...
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