mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 07:48:50 +08:00
add structure for renderer
This commit is contained in:
1 parent
4e70568510
commit
0bc278c848
3 files changed
+20
-8
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user