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
3318d319
Commit
3318d319
authored
5 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[database] fixed annotations loading in HQ-WMCA
parent
831ad2cc
Loading
Loading
1 merge request
!101
WIP: add high-level database interface for HQ-WMCA
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/pad/face/database/hqwmca.py
+5
-12
5 additions, 12 deletions
bob/pad/face/database/hqwmca.py
with
5 additions
and
12 deletions
bob/pad/face/database/hqwmca.py
+
5
−
12
View file @
3318d319
...
...
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import
os
import
json
from
bob.pad.base.database
import
PadDatabase
,
PadFile
from
bob.extension
import
rc
...
...
@@ -185,19 +186,11 @@ class HQWMCAPadDatabase(PadDatabase):
Otherwise, it will generate them using the MTCNN landmarks detector.
"""
print
(
file
)
if
self
.
annotations_dir
is
not
None
:
annotations_file
=
os
.
path
.
join
(
self
.
annotations_dir
,
file
.
path
+
"
.json
"
)
print
(
annotations_file
)
#with open(file_path, 'r') as json_file:
# annotations = json.load(json_file)
# load annotations
print
(
"
I
'
m supposed to load annotations
"
)
pass
with
open
(
annotations_file
,
'
r
'
)
as
json_file
:
annotations
=
json
.
load
(
annotations_file
)
return
annotations
else
:
logger
.
error
(
"
No annotations are provided to crop the face
"
)
import
sys
sys
.
exit
()
return
None
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