From d6badaf4b58127eda5c8543eac8c7533ea0a3442 Mon Sep 17 00:00:00 2001 From: Christian Grund Date: Mon, 12 Apr 2021 15:19:12 +0200 Subject: [PATCH 1/2] Add legacy code to move files from the location mentioned in the paper to the location used in the actual dataset --- PythonAPI/bam.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PythonAPI/bam.py b/PythonAPI/bam.py index 61e3cad..39cbae4 100644 --- a/PythonAPI/bam.py +++ b/PythonAPI/bam.py @@ -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 From cbb796d736b7a37536672b0f1841014b9b7545bb Mon Sep 17 00:00:00 2001 From: christian Date: Mon, 12 Apr 2021 15:30:40 +0200 Subject: [PATCH 2/2] update gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 5967c7a..1ca43e0 100644 --- a/.gitignore +++ b/.gitignore @@ -130,3 +130,4 @@ dmypy.json # Example dataset 181129/ +/.project