mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-26 10:59:53 +08:00
1 parent
2be4625b4f
commit
c7c4ac5a4d
2 files changed
+12
-6
No files matched your search
@@ -88,6 +88,8 @@ class DataManager(nn.Module):
|
||||
|
||||
train_input_dataset: Optional[InputDataset] = None
|
||||
eval_input_dataset: Optional[InputDataset] = None
|
||||
train_sampler: Optional[DistributedSampler] = None
|
||||
eval_sampler: Optional[DistributedSampler] = None
|
||||
|
||||
def __init__(self):
|
||||
"""Constructor for the DataManager class.
|
||||
@@ -326,5 +328,7 @@ class VanillaDataManager(DataManager): # pylint: disable=abstract-method
|
||||
|
||||
def next_eval_image(self, step: int) -> Tuple[int, RayBundle, Dict]:
|
||||
for camera_ray_bundle, batch in self.eval_dataloader:
|
||||
assert camera_ray_bundle.camera_indices is not None
|
||||
image_idx = int(camera_ray_bundle.camera_indices[0, 0])
|
||||
return image_idx, camera_ray_bundle, batch
|
||||
raise ValueError("No more eval images")
|
||||
Reference in new issue
Block a user