Skip to content

Commit

Permalink
Fixing checking if dataset supports depth (NVIDIAGameWorks#130)
Browse files Browse the repository at this point in the history
In the if statement checking whether the dataset supports depth there
was lack of brackets, so it always evaluated to True.
  • Loading branch information
DomaradzkiMaciej authored and orperel committed May 30, 2023
1 parent b9ad013 commit 444c8c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/nerf/main_nerf.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def load_grid(args, dataset: MultiviewDataset) -> BLASGrid:
feature_bias=args.feature_bias,
)
elif args.grid_type == "CodebookOctreeGrid":
if dataset.supports_depth:
if dataset.supports_depth():
grid = CodebookOctreeGrid.from_pointcloud(
pointcloud=dataset.as_pointcloud(),
feature_dim=args.feature_dim,
Expand Down

0 comments on commit 444c8c4

Please sign in to comment.