refactoring configs; pulled network out of graph; created trainer heirarchy (#51)

* changed config graph structure

* removed network udner graphs; added new heirarchy trainer

* fixed callback in occupancy graph

* lint

* changed register callback to setter method
This commit is contained in:
evonneng authored and GitHub committed 2022-06-15 09:06:43 -07:00
1 parent 41073540c1
commit 91ef54963c
19 files changed
+163 -134

No files matched your search

+3 -3
View File
@@ -38,9 +38,9 @@ class Field(nn.Module):
frustums=Frustums(
origins=positions,
directions=torch.ones_like(positions),
frustum_starts=torch.zeros((*positions.shape[:-1], 1)),
frustum_ends=torch.zeros((*positions.shape[:-1], 1)),
pixel_area=torch.ones((*positions.shape[:-1], 1)),
frustum_starts=torch.zeros_like((positions[..., :1])),
frustum_ends=torch.zeros_like((positions[..., :1])),
pixel_area=torch.ones_like((positions[..., :1])),
)
)
density, _ = self.get_density(point_samples)