passing num_rays_per_batch properly

This commit is contained in:
Ethan Weber committed 2023-08-01 03:45:49 +00:00
1 parent c6cc0dd84c
commit 20f2575186
2 files changed
+4 -1

No files matched your search

-1
View File
@@ -42,4 +42,3 @@ jobs:
- name: Test with pytest
run: |
pytest
timeout-minutes: 10
+4
View File
@@ -61,6 +61,10 @@ class PixelSampler:
def __init__(self, config: PixelSamplerConfig, **kwargs) -> None:
self.kwargs = kwargs
self.config = config
# Possibly override some values if they are present in the kwargs dictionary
self.config.num_rays_per_batch = self.kwargs.get("num_rays_per_batch", self.config.num_rays_per_batch)
self.config.keep_full_image = self.kwargs.get("keep_full_image", self.config.keep_full_image)
self.config.is_equirectangular = self.kwargs.get("is_equirectangular", self.config.is_equirectangular)
self.set_num_rays_per_batch(self.config.num_rays_per_batch)
def set_num_rays_per_batch(self, num_rays_per_batch: int):