added test set (using training data for now)

This commit is contained in:
Ethan Weber committed 2022-04-22 03:45:06 +00:00
1 parent 7e5a5bf524
commit cf7034f0d1
10 files changed
+112 -57

No files matched your search

+2 -2
View File
@@ -51,8 +51,8 @@ class NeRFGraph(Graph):
Dict[str, List[Parameter]]: Mapping of different parameter groups
"""
param_groups = {}
param_groups["camera"] = [dict(params=self.ray_generator.parameters())]
param_groups["graph"] = [dict(params=self.field_coarse.parameters()), dict(params=self.field_fine.parameters())]
param_groups["cameras"] = list(self.ray_generator.parameters())
param_groups["fields"] = list(self.field_coarse.parameters()) + list(self.field_fine.parameters())
return param_groups
def forward(self, ray_indices: TensorType["num_rays", 3]):