add structure for renderer

This commit is contained in:
Matt Tancik committed 2022-04-08 18:02:17 -07:00
1 parent 4e70568510
commit 0bc278c848
3 files changed
+20 -8

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
"""
Collection of render heads
"""
from enum import Enum
from typing import Optional
from torch import nn
@@ -39,7 +38,7 @@ class RenderHead(nn.Module):
class DensityHead(RenderHead):
"""RGB head"""
"""Density head"""
def __init__(self, in_dim: int, activation: Optional[nn.Module] = nn.Softplus) -> None:
super().__init__(in_dim, 1, activation)