Update Instant-NGP & Density Grid with CUDA supports. Much faster and better PSNR. (#193)

This commit is contained in:
Ruilong Li(李瑞龙) authored and GitHub committed 2022-07-24 22:22:44 -07:00
1 parent 31b52ae186
commit 12cd321e1a
39 files changed
+1721 -650

No files matched your search

+3 -3
View File
@@ -19,12 +19,12 @@ Base class for the graphs.
from abc import abstractmethod
from typing import Dict, Optional, Tuple
from torch import nn
import torch
from torch import nn
from torchtyping import TensorType
from pyrad.fields.modules.field_heads import FieldHeadNames
from pyrad.cameras.rays import Frustums, RaySamples
from pyrad.fields.modules.field_heads import FieldHeadNames
from pyrad.utils.misc import is_not_none
@@ -32,7 +32,7 @@ class Field(nn.Module):
"""Base class for fields."""
def density_fn(self, positions):
"""Returns only the density. Used primarily with the occupancy grid."""
"""Returns only the density. Used primarily with the density grid."""
# Need to figure out a better way to descibe positions with a ray.
ray_samples = RaySamples(
frustums=Frustums(