Skip to content

Commit 4e95ad6

Browse files
committed
Fixup remaining modules & cleanup
1 parent e6805eb commit 4e95ad6

57 files changed

Lines changed: 6154 additions & 10665 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,5 @@ results
126126

127127
!examples/benchmarks/compression/results/
128128

129+
gsplat/hip/
129130
*.hip

examples/simple_trainer.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,11 @@ class Config:
5252
render_traj_path: str = "interp"
5353

5454
# Path to the Mip-NeRF 360 dataset
55-
# data_dir: str = "data/360_v2/garden"
56-
data_dir: str = "/home/pxlth/Videos/gs-videos/pidhaytsi/entrance-1"
55+
data_dir: str = "data/360_v2/garden"
5756
# Downsample factor for the dataset
58-
data_factor: int = 2
57+
data_factor: int = 4
5958
# Directory to save results
60-
result_dir: str = "results/pidhaytsi-entrance-1"
59+
result_dir: str = "results/garden"
6160
# Every N images there is a test image
6261
test_every: int = 8
6362
# Random crop size for training (experimental)
@@ -117,7 +116,7 @@ class Config:
117116
default_factory=DefaultStrategy
118117
)
119118
# Use packed mode for rasterization, this leads to less memory usage but slightly slower.
120-
packed: bool = True
119+
packed: bool = False
121120
# Use sparse gradients for optimization. (experimental)
122121
sparse_grad: bool = False
123122
# Use visible adam from Taming 3DGS. (experimental)
@@ -1218,7 +1217,7 @@ def main(local_rank: int, world_rank, world_size: int, cfg: Config):
12181217
init_scale=0.1,
12191218
opacity_reg=0.01,
12201219
scale_reg=0.01,
1221-
strategy=MCMCStrategy(verbose=True, cap_max=3_000_000),
1220+
strategy=MCMCStrategy(verbose=True),
12221221
),
12231222
),
12241223
}

gsplat/__init__.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,31 @@
22

33
from .compression import PngCompression
44
from .cuda._torch_impl import accumulate
5-
# from .cuda._torch_impl_2dgs import accumulate_2dgs
5+
from .cuda._torch_impl_2dgs import accumulate_2dgs
66
from .cuda._wrapper import (
77
RollingShutterType,
88
fully_fused_projection,
9-
# fully_fused_projection_2dgs,
10-
# fully_fused_projection_with_ut,
9+
fully_fused_projection_2dgs,
10+
fully_fused_projection_with_ut,
1111
isect_offset_encode,
1212
isect_tiles,
1313
proj,
1414
quat_scale_to_covar_preci,
1515
rasterize_to_indices_in_range,
16-
# rasterize_to_indices_in_range_2dgs,
16+
rasterize_to_indices_in_range_2dgs,
1717
rasterize_to_pixels,
18-
# rasterize_to_pixels_2dgs,
19-
# rasterize_to_pixels_eval3d,
18+
rasterize_to_pixels_2dgs,
19+
rasterize_to_pixels_eval3d,
2020
spherical_harmonics,
2121
world_to_cam,
2222
)
2323
from .exporter import export_splats
2424
from .optimizers import SelectiveAdam
2525
from .rendering import (
2626
rasterization,
27-
# rasterization_2dgs,
28-
# rasterization_2dgs_inria_wrapper,
29-
# rasterization_inria_wrapper,
27+
rasterization_2dgs,
28+
rasterization_2dgs_inria_wrapper,
29+
rasterization_inria_wrapper,
3030
)
3131
from .strategy import DefaultStrategy, MCMCStrategy, Strategy
3232
from .version import __version__
@@ -37,8 +37,8 @@
3737
"MCMCStrategy",
3838
"Strategy",
3939
"rasterization",
40-
# "rasterization_2dgs",
41-
# "rasterization_inria_wrapper",
40+
"rasterization_2dgs",
41+
"rasterization_inria_wrapper",
4242
"spherical_harmonics",
4343
"isect_offset_encode",
4444
"isect_tiles",
@@ -49,14 +49,14 @@
4949
"world_to_cam",
5050
"accumulate",
5151
"rasterize_to_indices_in_range",
52-
# "fully_fused_projection_2dgs",
53-
# "rasterize_to_pixels_2dgs",
54-
# "rasterize_to_indices_in_range_2dgs",
55-
# "accumulate_2dgs",
56-
# "rasterization_2dgs_inria_wrapper",
52+
"fully_fused_projection_2dgs",
53+
"rasterize_to_pixels_2dgs",
54+
"rasterize_to_indices_in_range_2dgs",
55+
"accumulate_2dgs",
56+
"rasterization_2dgs_inria_wrapper",
5757
"RollingShutterType",
58-
# "fully_fused_projection_with_ut",
59-
# "rasterize_to_pixels_eval3d",
58+
"fully_fused_projection_with_ut",
59+
"rasterize_to_pixels_eval3d",
6060
"export_splats",
6161
"__version__",
6262
]

0 commit comments

Comments
 (0)