mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 14:28:41 +08:00
polycam bug
This commit is contained in:
1 parent
11371d3e1d
commit
62f3e6dc86
1 file changed
+3
@@ -152,6 +152,9 @@ class ProcessPolycam(BaseConverterToNerfstudioDataset):
|
|||||||
zip_ref.extractall(self.output_dir)
|
zip_ref.extractall(self.output_dir)
|
||||||
extracted_folder = zip_ref.namelist()[0].split("/")[0]
|
extracted_folder = zip_ref.namelist()[0].split("/")[0]
|
||||||
self.data = self.output_dir / extracted_folder
|
self.data = self.output_dir / extracted_folder
|
||||||
|
if not (self.data / "keyframes").exists():
|
||||||
|
# new versions of polycam data have a different structure, strip the last dir off
|
||||||
|
self.data = self.output_dir
|
||||||
|
|
||||||
if (self.data / "keyframes" / "corrected_images").exists() and not self.use_uncorrected_images:
|
if (self.data / "keyframes" / "corrected_images").exists() and not self.use_uncorrected_images:
|
||||||
polycam_image_dir = self.data / "keyframes" / "corrected_images"
|
polycam_image_dir = self.data / "keyframes" / "corrected_images"
|
||||||
|
|||||||
Reference in new issue
Block a user