Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,4 @@ dmypy.json

# Example dataset
181129/
/.project
7 changes: 7 additions & 0 deletions PythonAPI/bam.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ def unroll_videos(self, force: bool = False, video: Optional[int] = None) -> Non
:param video: if None all videos are unrolled.
If it has a concrete value, only that video is unrolled
"""
# LEGACY move videos from paper-location to code-location
for c in range(self.num_cameras):
paper_location = os.path.join(self.videos_dir, "camera"+str(c).zfill(2),"recording.mp4")
if os.path.isfile(paper_location):
code_location = os.path.join(self.dataset_dir, self.dataset_name + '_' + str(c).zfill(2) + '.mp4')
os.rename(paper_location, code_location)

# Remove folders
if force:
if video is None: # remove videos folder
Expand Down