mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
Fix typing error
This commit is contained in:
1 parent
2e6ac4b10e
commit
62226469ec
1 file changed
+2
@@ -519,6 +519,7 @@ class VanillaDataManager(DataManager, Generic[TDataset]):
|
|||||||
|
|
||||||
@torch.compile
|
@torch.compile
|
||||||
def _next_train_compiled(self, image_batch):
|
def _next_train_compiled(self, image_batch):
|
||||||
|
assert self.train_pixel_sampler is not None
|
||||||
batch = self.train_pixel_sampler.sample(image_batch)
|
batch = self.train_pixel_sampler.sample(image_batch)
|
||||||
ray_indices = batch["indices"]
|
ray_indices = batch["indices"]
|
||||||
ray_bundle = self.train_ray_generator(ray_indices)
|
ray_bundle = self.train_ray_generator(ray_indices)
|
||||||
@@ -534,6 +535,7 @@ class VanillaDataManager(DataManager, Generic[TDataset]):
|
|||||||
|
|
||||||
@torch.compile
|
@torch.compile
|
||||||
def _next_eval_compiled(self, image_batch):
|
def _next_eval_compiled(self, image_batch):
|
||||||
|
assert self.eval_pixel_sampler is not None
|
||||||
batch = self.eval_pixel_sampler.sample(image_batch)
|
batch = self.eval_pixel_sampler.sample(image_batch)
|
||||||
ray_indices = batch["indices"]
|
ray_indices = batch["indices"]
|
||||||
ray_bundle = self.eval_ray_generator(ray_indices)
|
ray_bundle = self.eval_ray_generator(ray_indices)
|
||||||
|
|||||||
Reference in new issue
Block a user