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
9d583e0d
Commit
9d583e0d
authored
4 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Updated Capeal database
parent
5f423214
No related branches found
No related tags found
1 merge request
!90
Updated Capeal database
Pipeline
#46656
passed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/face/database/caspeal.py
+0
-62
0 additions, 62 deletions
bob/bio/face/database/caspeal.py
conda/meta.yaml
+0
-1
0 additions, 1 deletion
conda/meta.yaml
with
0 additions
and
63 deletions
bob/bio/face/database/caspeal.py
deleted
100644 → 0
+
0
−
62
View file @
5f423214
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Tiago de Freitas Pereira <tiago.pereira@idiap.ch>
# Sat 20 Aug 15:43:10 CEST 2016
"""
CASPEAL database implementation of bob.bio.base.database.Database interface.
It is an extension of an SQL-based database interface, which directly talks to CASPEAL database, for
verification experiments (good to use in bob.bio.base framework).
"""
from
.database
import
FaceBioFile
from
bob.bio.base.database
import
BioDatabase
class
CaspealBioFile
(
FaceBioFile
):
def
__init__
(
self
,
f
):
super
(
CaspealBioFile
,
self
).
__init__
(
client_id
=
f
.
client_id
,
path
=
f
.
path
,
file_id
=
f
.
id
)
self
.
_f
=
f
class
CaspealBioDatabase
(
BioDatabase
):
"""
Caspeal database implementation of :py:class:`bob.bio.base.database.BioDatabase` interface.
It is an extension of an SQL-based database interface, which directly talks to Caspeal database, for
verification experiments (good to use in bob.bio.base framework).
"""
def
__init__
(
self
,
original_directory
=
None
,
original_extension
=
'
.tif
'
,
**
kwargs
):
from
bob.db.caspeal.query
import
Database
as
LowLevelDatabase
self
.
_db
=
LowLevelDatabase
(
original_directory
,
original_extension
)
# call base class constructors to open a session to the database
super
(
CaspealBioDatabase
,
self
).
__init__
(
name
=
'
caspeal
'
,
original_directory
=
original_directory
,
original_extension
=
original_extension
,
**
kwargs
)
@property
def
original_directory
(
self
):
return
self
.
_db
.
original_directory
@original_directory.setter
def
original_directory
(
self
,
value
):
self
.
_db
.
original_directory
=
value
def
model_ids_with_protocol
(
self
,
groups
=
None
,
protocol
=
None
,
**
kwargs
):
return
self
.
_db
.
model_ids
(
groups
=
groups
,
protocol
=
protocol
)
def
objects
(
self
,
groups
=
None
,
protocol
=
None
,
purposes
=
None
,
model_ids
=
None
,
**
kwargs
):
retval
=
self
.
_db
.
objects
(
groups
=
groups
,
protocol
=
protocol
,
purposes
=
purposes
,
model_ids
=
model_ids
,
**
kwargs
)
return
[
CaspealBioFile
(
f
)
for
f
in
retval
]
def
annotations
(
self
,
myfile
):
return
self
.
_db
.
annotations
(
myfile
.
_f
)
This diff is collapsed.
Click to expand it.
conda/meta.yaml
+
0
−
1
View file @
9d583e0d
...
@@ -72,7 +72,6 @@ test:
...
@@ -72,7 +72,6 @@ test:
-
sphinx_rtd_theme
-
sphinx_rtd_theme
-
bob.db.arface
-
bob.db.arface
-
bob.db.atnt
-
bob.db.atnt
-
bob.db.caspeal
-
bob.db.frgc
-
bob.db.frgc
-
bob.db.gbu
-
bob.db.gbu
-
bob.db.ijbc
-
bob.db.ijbc
...
...
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