mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 14:23:57 +08:00
fix: ColmapDataParser downscaling images error. (#2337)
This commit is contained in:
1 parent
c599d0f3a1
commit
3455fb749f
1 file changed
+1
-1
@@ -380,7 +380,7 @@ class ColmapDataParser(DataParser):
|
||||
)
|
||||
if Confirm.ask("\nWould you like to downscale the images now?", default=False, console=CONSOLE):
|
||||
# Install the method
|
||||
image_dir = image_filenames[0].parent
|
||||
image_dir = self.config.data / image_filenames[0].parent
|
||||
num_downscales = int(math.log2(self._downscale_factor))
|
||||
assert 2**num_downscales == self._downscale_factor, "Downscale factor must be a power of 2"
|
||||
downscale_images(image_dir, num_downscales, folder_name=image_dir.name, nearest_neighbor=False)
|
||||
|
||||
Reference in new issue
Block a user