mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 18:44:21 +08:00
Fix dataparser filename bug (#1013)
This commit is contained in:
1 parent
965dcb92cf
commit
e4b5dea6e4
1 file changed
+2
-2
@@ -208,7 +208,7 @@ class Nerfstudio(DataParser):
|
||||
while True:
|
||||
if (max_res / 2 ** (df)) < MAX_AUTO_RESOLUTION:
|
||||
break
|
||||
if not (self.config.data / downsample_folder_prefix + f"{2**(df+1)}" / filepath.name).exists():
|
||||
if not (self.config.data / f"{downsample_folder_prefix}{2**(df+1)}" / filepath.name).exists():
|
||||
break
|
||||
df += 1
|
||||
|
||||
@@ -218,5 +218,5 @@ class Nerfstudio(DataParser):
|
||||
self.downscale_factor = self.config.downscale_factor
|
||||
|
||||
if self.downscale_factor > 1:
|
||||
return self.config.data / downsample_folder_prefix + f"{self.downscale_factor}" / filepath.name
|
||||
return self.config.data / f"{downsample_folder_prefix}{self.downscale_factor}" / filepath.name
|
||||
return self.config.data / filepath
|
||||
Reference in new issue
Block a user