mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
load whole dataset in train loop
Summary: Loads the whole dataset and moves it to the device and sends it to for sampling to enable full dataset heterogeneous raysampling. Reviewed By: bottler Differential Revision: D39263009 fbshipit-source-id: c527537dfc5f50116849656c9e171e868f6845b1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c311a4cbb9
commit
37bd280d19
@@ -389,7 +389,8 @@ class GenericModel(ImplicitronModelBase): # pyre-ignore: 13
|
||||
)
|
||||
|
||||
# (1) Sample rendering rays with the ray sampler.
|
||||
ray_bundle: ImplicitronRayBundle = self.raysampler( # pyre-fixme[29]
|
||||
# pyre-ignore[29]
|
||||
ray_bundle: ImplicitronRayBundle = self.raysampler(
|
||||
target_cameras,
|
||||
evaluation_mode,
|
||||
mask=mask_crop[:n_targets]
|
||||
|
||||
Reference in New Issue
Block a user