mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 21:39:06 +08:00
fixed transforms typo
This commit is contained in:
1 parent
20f2575186
commit
daad810e91
1 file changed
+3
-3
@@ -60,10 +60,10 @@ class DepthDataset(InputDataset):
|
|||||||
self.depths = torch.from_numpy(self.depths).to(device)
|
self.depths = torch.from_numpy(self.depths).to(device)
|
||||||
else:
|
else:
|
||||||
depth_tensors = []
|
depth_tensors = []
|
||||||
tranforms = self._find_transform(dataparser_outputs.image_filenames[0])
|
transforms = self._find_transform(dataparser_outputs.image_filenames[0])
|
||||||
data = dataparser_outputs.image_filenames[0].parent
|
data = dataparser_outputs.image_filenames[0].parent
|
||||||
if tranforms is not None:
|
if transforms is not None:
|
||||||
meta = json.load(open(tranforms, "r"))
|
meta = json.load(open(transforms, "r"))
|
||||||
frames = meta["frames"]
|
frames = meta["frames"]
|
||||||
filenames = [data / frames[j]["file_path"].split("/")[-1] for j in range(len(frames))]
|
filenames = [data / frames[j]["file_path"].split("/")[-1] for j in range(len(frames))]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user