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
1899e3dd
Commit
1899e3dd
authored
5 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[database] added entry point and test for FARGO
parent
34fbef50
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!52
Add Fargo database
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/face/config/database/fargo.py
+11
-0
11 additions, 0 deletions
bob/bio/face/config/database/fargo.py
bob/bio/face/test/test_databases.py
+10
-0
10 additions, 0 deletions
bob/bio/face/test/test_databases.py
with
21 additions
and
0 deletions
bob/bio/face/config/database/fargo.py
0 → 100644
+
11
−
0
View file @
1899e3dd
#!/usr/bin/env python
from
bob.bio.face.database
import
FargoBioDatabase
fargo_directory
=
"
[YOUR_FARGO_DIRECTORY]
"
database
=
FargoBioDatabase
(
original_directory
=
fargo_directory
,
original_extension
=
"
.png
"
,
protocol
=
'
mc-rgb
'
)
This diff is collapsed.
Click to expand it.
bob/bio/face/test/test_databases.py
+
10
−
0
View file @
1899e3dd
...
...
@@ -390,3 +390,13 @@ def test_ijbc():
raise
SkipTest
(
"
The annotations could not be queried; probably the annotation files are missing. Here is the error:
'
%s
'"
%
e
)
@db_available
(
'
fargo
'
)
def
test_fargo
():
database
=
bob
.
bio
.
base
.
load_resource
(
'
fargo
'
,
'
database
'
,
preferred_package
=
'
bob.bio.face
'
)
try
:
check_database
(
database
)
except
IOError
as
e
:
raise
SkipTest
(
"
The database could not queried; Here is the error:
'
%s
'"
%
e
)
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