network pass running

This commit is contained in:
Ethan Weber committed 2022-04-20 03:17:19 +00:00
1 parent be6fbe799e
commit 7819f6da9d
11 files changed
+121 -128

No files matched your search

+1 -1
View File
@@ -1,7 +1,6 @@
"""
Collection of sampling strategies
"""
from typing import NamedTuple
import torch
from torch import nn
@@ -80,5 +79,6 @@ class UniformSampler(Sampler):
t_min=torch.ones_like(ray_bundle.origins[:, 0]) * near_plane,
t_max=torch.ones_like(ray_bundle.origins[:, 0]) * far_plane,
ts=bins.unsqueeze(0).repeat(num_rays, 1), # (num_rays, num_samples)
ray_bundle=ray_bundle
)
return ray_samples