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
eb69ee60
There was a problem fetching the pipeline summary.
Commit
eb69ee60
authored
7 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
use bob.extension.rc instead of None
parent
43fddd1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!35
use bob.extension.rc instead of None
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/pad/face/database/replay.py
+3
-4
3 additions, 4 deletions
bob/pad/face/database/replay.py
bob/pad/face/database/replay_mobile.py
+4
-3
4 additions, 3 deletions
bob/pad/face/database/replay_mobile.py
with
7 additions
and
7 deletions
bob/pad/face/database/replay.py
+
3
−
4
View file @
eb69ee60
#!/usr/bin/env python2
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
# Used in ReplayMobilePadFile class
# Used in ReplayMobilePadFile class
from
bob.bio.video
import
FrameSelector
,
FrameContainer
from
bob.pad.base.database
import
PadDatabase
from
bob.pad.base.database
import
PadDatabase
from
bob.pad.face.database
import
VideoPadFile
# Used in ReplayPadFile class
from
bob.pad.face.database
import
VideoPadFile
# Used in ReplayPadFile class
from
bob.pad.face.utils
import
frames
,
number_of_frames
from
bob.pad.face.utils
import
frames
,
number_of_frames
from
bob.extension
import
rc
class
ReplayPadFile
(
VideoPadFile
):
class
ReplayPadFile
(
VideoPadFile
):
...
@@ -58,8 +57,8 @@ class ReplayPadDatabase(PadDatabase):
...
@@ -58,8 +57,8 @@ class ReplayPadDatabase(PadDatabase):
self
,
self
,
# grandtest is the default protocol for this database
# grandtest is the default protocol for this database
protocol
=
'
grandtest
'
,
protocol
=
'
grandtest
'
,
original_directory
=
None
,
original_directory
=
rc
[
'
bob.db.replay.directory
'
]
,
original_extension
=
None
,
original_extension
=
'
.mov
'
,
**
kwargs
):
**
kwargs
):
"""
"""
Parameters
Parameters
...
...
This diff is collapsed.
Click to expand it.
bob/pad/face/database/replay_mobile.py
+
4
−
3
View file @
eb69ee60
...
@@ -7,6 +7,7 @@ from bob.pad.base.database import PadDatabase
...
@@ -7,6 +7,7 @@ from bob.pad.base.database import PadDatabase
from
bob.pad.face.database
import
VideoPadFile
from
bob.pad.face.database
import
VideoPadFile
from
bob.pad.face.utils
import
frames
,
number_of_frames
from
bob.pad.face.utils
import
frames
,
number_of_frames
import
numpy
import
numpy
from
bob.extension
import
rc
# documentation imports
# documentation imports
import
bob.bio.video
import
bob.bio.video
...
@@ -89,8 +90,8 @@ class ReplayMobilePadDatabase(PadDatabase):
...
@@ -89,8 +90,8 @@ class ReplayMobilePadDatabase(PadDatabase):
self
,
self
,
# grandtest is the default protocol for this database
# grandtest is the default protocol for this database
protocol
=
'
grandtest
'
,
protocol
=
'
grandtest
'
,
original_directory
=
None
,
original_directory
=
rc
[
'
bob.db.replaymobile.directory
'
]
,
original_extension
=
None
,
original_extension
=
'
.mov
'
,
**
kwargs
):
**
kwargs
):
"""
"""
Parameters
Parameters
...
@@ -251,7 +252,7 @@ class ReplayMobilePadDatabase(PadDatabase):
...
@@ -251,7 +252,7 @@ class ReplayMobilePadDatabase(PadDatabase):
vfilename
=
padfile
.
make_path
(
vfilename
=
padfile
.
make_path
(
directory
=
self
.
original_directory
,
directory
=
self
.
original_directory
,
extension
=
self
.
original_extension
)
extension
=
self
.
original_extension
)
is_not_tablet
=
not
padfile
.
_
f
.
is_tablet
()
is_not_tablet
=
not
padfile
.
f
.
is_tablet
()
for
frame
in
frames
(
vfilename
):
for
frame
in
frames
(
vfilename
):
frame
=
numpy
.
rollaxis
(
frame
,
2
,
1
)
frame
=
numpy
.
rollaxis
(
frame
,
2
,
1
)
if
is_not_tablet
:
if
is_not_tablet
:
...
...
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