Skip to content

Commit d395aa2

Browse files
authored
change grid resolution type (#3400)
1 parent dff42c9 commit d395aa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nerfstudio/models/instant_ngp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from __future__ import annotations
2020

2121
from dataclasses import dataclass, field
22-
from typing import Dict, List, Literal, Optional, Tuple, Type
22+
from typing import Dict, List, Literal, Optional, Tuple, Type, Union
2323

2424
import nerfacc
2525
import torch
@@ -49,7 +49,7 @@ class InstantNGPModelConfig(ModelConfig):
4949
"""Whether to create a scene collider to filter rays."""
5050
collider_params: Optional[Dict[str, float]] = None
5151
"""Instant NGP doesn't use a collider."""
52-
grid_resolution: int = 128
52+
grid_resolution: Union[int, List[int]] = 128
5353
"""Resolution of the grid used for the field."""
5454
grid_levels: int = 4
5555
"""Levels of the grid used for the field."""

0 commit comments

Comments
 (0)