Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.db.replaymobile
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
Model registry
Operate
Environments
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.db.replaymobile
Merge requests
!5
dont print use logger, try again if video fails to load
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
dont print use logger, try again if video fails to load
bio
into
master
Overview
5
Commits
1
Pipelines
2
Changes
2
Merged
Amir MOHAMMADI
requested to merge
bio
into
master
8 years ago
Overview
5
Commits
1
Pipelines
2
Changes
2
Expand
0
0
Merge request reports
Compare
master
version 1
1783a728
8 years ago
master (base)
and
latest version
latest version
0a1efca3
1 commit,
8 years ago
version 1
1783a728
1 commit,
8 years ago
2 files
+
12
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
bob/db/replaymobile/models.py
+
5
−
2
Options
@@ -12,6 +12,9 @@ from sqlalchemy.ext.declarative import declarative_base
import
numpy
import
bob.io.base
import
bob.io.video
import
bob.core
logger
=
bob
.
core
.
log
.
setup
(
'
bob.db.replaymobile
'
)
Base
=
declarative_base
()
@@ -206,7 +209,7 @@ class File(Base):
[optional] The extension of the filename - this will control the type of
output and the codec for saving the input blob.
"""
print
(
'
video file extension:
'
,
extension
)
logger
.
debug
(
'
video file extension:
{}
'
.
format
(
extension
)
)
if
extension
is
None
:
extension
=
'
.mov
'
# if self.get_quality() == 'laptop':
@@ -223,7 +226,7 @@ class File(Base):
vin
=
numpy
.
rollaxis
(
vin
,
3
,
2
)
if
not
self
.
is_tablet
():
print
(
"
flipping mobile video
"
)
logger
.
debug
(
'
flipping mobile video
'
)
vin
=
vin
[:,
:,
::
-
1
,
:]
# if self.is_rotated():
Loading