mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-18 22:04:02 +08:00
Fix IndexError if ther is no mask filenames (#1095)
This commit is contained in:
1 parent
006703bb64
commit
e605b3344a
1 file changed
+1
-1
@@ -196,7 +196,7 @@ class Nerfstudio(DataParser):
|
||||
|
||||
# Choose image_filenames and poses based on split, but after auto orient and scaling the poses.
|
||||
image_filenames = [image_filenames[i] for i in indices]
|
||||
mask_filenames = [mask_filenames[i] for i in indices]
|
||||
mask_filenames = [mask_filenames[i] for i in indices] if len(mask_filenames) > 0 else []
|
||||
poses = poses[indices]
|
||||
|
||||
# in x,y,z order
|
||||
|
||||
Reference in new issue
Block a user