reduced-3dgs 1.10.5__tar.gz → 1.10.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reduced-3dgs might be problematic. Click here for more details.
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/PKG-INFO +15 -33
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/README.md +13 -26
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/quantization/quantizer.py +11 -4
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs.egg-info/PKG-INFO +15 -33
- reduced_3dgs-1.10.7/reduced_3dgs.egg-info/requires.txt +2 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/setup.py +2 -7
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/simple-knn/simple_knn.cu +1 -0
- reduced_3dgs-1.10.5/reduced_3dgs.egg-info/requires.txt +0 -7
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/LICENSE.md +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/__init__.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/combinations.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/importance/__init__.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/importance/combinations.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/importance/trainer.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/prepare.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/pruning/__init__.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/pruning/combinations.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/pruning/trainer.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/quantization/__init__.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/quantization/abc.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/quantization/exclude_zeros.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/quantization/wrapper.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/quantize.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/shculling/__init__.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/shculling/gaussian_model.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/shculling/trainer.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs/train.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs.egg-info/SOURCES.txt +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs.egg-info/dependency_links.txt +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/reduced_3dgs.egg-info/top_level.txt +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/setup.cfg +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/diff_gaussian_rasterization/__init__.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/ext.cpp +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/rasterize_points.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/reduced_3dgs/kmeans.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/reduced_3dgs/redundancy_score.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/reduced_3dgs/sh_culling.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/reduced_3dgs.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/gaussian-importance/cuda_rasterizer/backward.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/gaussian-importance/cuda_rasterizer/forward.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/gaussian-importance/cuda_rasterizer/rasterizer_impl.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/gaussian-importance/diff_gaussian_rasterization/__init__.py +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/gaussian-importance/ext.cpp +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/gaussian-importance/rasterize_points.cu +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/simple-knn/ext.cpp +0 -0
- {reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/simple-knn/spatial.cu +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: reduced_3dgs
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.7
|
|
4
4
|
Summary: Refactored code for the paper "Reducing the Memory Footprint of 3D Gaussian Splatting"
|
|
5
5
|
Home-page: https://github.com/yindaheng98/reduced-3dgs
|
|
6
6
|
Author: yindaheng98
|
|
@@ -8,13 +8,8 @@ Author-email: yindaheng98@gmail.com
|
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE.md
|
|
11
|
-
Requires-Dist: tqdm
|
|
12
|
-
Requires-Dist: plyfile
|
|
13
|
-
Requires-Dist: scikit-learn
|
|
14
|
-
Requires-Dist: torch
|
|
15
|
-
Requires-Dist: torchvision
|
|
16
|
-
Requires-Dist: numpy
|
|
17
11
|
Requires-Dist: gaussian-splatting
|
|
12
|
+
Requires-Dist: scikit-learn
|
|
18
13
|
Dynamic: author
|
|
19
14
|
Dynamic: author-email
|
|
20
15
|
Dynamic: classifier
|
|
@@ -41,46 +36,33 @@ This repository contains the **refactored Python code for [Reduced-3DGS](https:/
|
|
|
41
36
|
* [Pytorch](https://pytorch.org/) (v2.4 or higher recommended)
|
|
42
37
|
* [CUDA Toolkit](https://developer.nvidia.com/cuda-12-4-0-download-archive) (12.4 recommended, should match with PyTorch version)
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
(Optional) If you have trouble with [`gaussian-splatting`](https://github.com/yindaheng98/gaussian-splatting), try to install it from source:
|
|
46
40
|
```sh
|
|
47
|
-
pip install
|
|
41
|
+
pip install wheel setuptools
|
|
42
|
+
pip install --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master --no-build-isolation
|
|
48
43
|
```
|
|
49
44
|
|
|
50
|
-
## Install
|
|
51
|
-
|
|
52
|
-
```sh
|
|
53
|
-
pip install --upgrade git+https://github.com/yindaheng98/reduced-3dgs.git@main
|
|
54
|
-
```
|
|
55
|
-
If you have trouble with [`gaussian-splatting`](https://github.com/yindaheng98/gaussian-splatting), you can install it from source:
|
|
56
|
-
```sh
|
|
57
|
-
pip install --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master
|
|
58
|
-
```
|
|
45
|
+
## PyPI Install
|
|
59
46
|
|
|
60
|
-
## Install (Development)
|
|
61
|
-
|
|
62
|
-
Install [`gaussian-splatting`](https://github.com/yindaheng98/gaussian-splatting).
|
|
63
|
-
You can download the wheel from [PyPI](https://pypi.org/project/gaussian-splatting/):
|
|
64
47
|
```shell
|
|
65
|
-
pip install --upgrade
|
|
48
|
+
pip install --upgrade reduced-3dgs
|
|
66
49
|
```
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
50
|
+
or
|
|
51
|
+
build latest from source:
|
|
52
|
+
```shell
|
|
53
|
+
pip install wheel setuptools
|
|
54
|
+
pip install --upgrade git+https://github.com/yindaheng98/reduced-3dgs.git@main --no-build-isolation
|
|
70
55
|
```
|
|
71
56
|
|
|
57
|
+
### Development Install
|
|
58
|
+
|
|
72
59
|
```shell
|
|
73
60
|
git clone --recursive https://github.com/yindaheng98/reduced-3dgs
|
|
74
61
|
cd reduced-3dgs
|
|
75
|
-
pip install
|
|
62
|
+
pip install scikit-learn
|
|
76
63
|
pip install --target . --upgrade --no-deps .
|
|
77
64
|
```
|
|
78
65
|
|
|
79
|
-
(Optional) If you prefer not to install `gaussian-splatting` in your environment, you can install it in your `reduced-3dgs` directory:
|
|
80
|
-
```sh
|
|
81
|
-
pip install --target . --no-deps --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master
|
|
82
|
-
```
|
|
83
|
-
|
|
84
66
|
## Quick Start
|
|
85
67
|
|
|
86
68
|
1. Download the dataset (T&T+DB COLMAP dataset, size 650MB):
|
|
@@ -14,46 +14,33 @@ This repository contains the **refactored Python code for [Reduced-3DGS](https:/
|
|
|
14
14
|
* [Pytorch](https://pytorch.org/) (v2.4 or higher recommended)
|
|
15
15
|
* [CUDA Toolkit](https://developer.nvidia.com/cuda-12-4-0-download-archive) (12.4 recommended, should match with PyTorch version)
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
```sh
|
|
20
|
-
pip install --upgrade reduced-3dgs
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Install (Build from source)
|
|
24
|
-
|
|
25
|
-
```sh
|
|
26
|
-
pip install --upgrade git+https://github.com/yindaheng98/reduced-3dgs.git@main
|
|
27
|
-
```
|
|
28
|
-
If you have trouble with [`gaussian-splatting`](https://github.com/yindaheng98/gaussian-splatting), you can install it from source:
|
|
17
|
+
(Optional) If you have trouble with [`gaussian-splatting`](https://github.com/yindaheng98/gaussian-splatting), try to install it from source:
|
|
29
18
|
```sh
|
|
30
|
-
pip install
|
|
19
|
+
pip install wheel setuptools
|
|
20
|
+
pip install --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master --no-build-isolation
|
|
31
21
|
```
|
|
32
22
|
|
|
33
|
-
## Install
|
|
23
|
+
## PyPI Install
|
|
34
24
|
|
|
35
|
-
Install [`gaussian-splatting`](https://github.com/yindaheng98/gaussian-splatting).
|
|
36
|
-
You can download the wheel from [PyPI](https://pypi.org/project/gaussian-splatting/):
|
|
37
25
|
```shell
|
|
38
|
-
pip install --upgrade
|
|
26
|
+
pip install --upgrade reduced-3dgs
|
|
39
27
|
```
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
or
|
|
29
|
+
build latest from source:
|
|
30
|
+
```shell
|
|
31
|
+
pip install wheel setuptools
|
|
32
|
+
pip install --upgrade git+https://github.com/yindaheng98/reduced-3dgs.git@main --no-build-isolation
|
|
43
33
|
```
|
|
44
34
|
|
|
35
|
+
### Development Install
|
|
36
|
+
|
|
45
37
|
```shell
|
|
46
38
|
git clone --recursive https://github.com/yindaheng98/reduced-3dgs
|
|
47
39
|
cd reduced-3dgs
|
|
48
|
-
pip install
|
|
40
|
+
pip install scikit-learn
|
|
49
41
|
pip install --target . --upgrade --no-deps .
|
|
50
42
|
```
|
|
51
43
|
|
|
52
|
-
(Optional) If you prefer not to install `gaussian-splatting` in your environment, you can install it in your `reduced-3dgs` directory:
|
|
53
|
-
```sh
|
|
54
|
-
pip install --target . --no-deps --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master
|
|
55
|
-
```
|
|
56
|
-
|
|
57
44
|
## Quick Start
|
|
58
45
|
|
|
59
46
|
1. Download the dataset (T&T+DB COLMAP dataset, size 650MB):
|
|
@@ -4,7 +4,15 @@ from typing import Dict, Tuple
|
|
|
4
4
|
import torch
|
|
5
5
|
import torch.nn as nn
|
|
6
6
|
import numpy as np
|
|
7
|
-
|
|
7
|
+
try:
|
|
8
|
+
from cuml.cluster import KMeans
|
|
9
|
+
kmeans_init = 'k-means||'
|
|
10
|
+
except ImportError:
|
|
11
|
+
print("Cuml not found, using sklearn's MiniBatchKMeans for quantization.")
|
|
12
|
+
from sklearn.cluster import MiniBatchKMeans
|
|
13
|
+
from functools import partial
|
|
14
|
+
KMeans = partial(MiniBatchKMeans, batch_size=256 * os.cpu_count())
|
|
15
|
+
kmeans_init = 'k-means++'
|
|
8
16
|
from gaussian_splatting import GaussianModel
|
|
9
17
|
from plyfile import PlyData, PlyElement
|
|
10
18
|
import numpy as np
|
|
@@ -65,9 +73,8 @@ class VectorQuantizer(AbstractQuantizer):
|
|
|
65
73
|
def generate_codebook(self, values: torch.Tensor, num_clusters, init_codebook=None):
|
|
66
74
|
kmeans = KMeans(
|
|
67
75
|
n_clusters=num_clusters, tol=self.tol, max_iter=self.max_iter,
|
|
68
|
-
init=
|
|
69
|
-
random_state=0, n_init="auto", verbose=
|
|
70
|
-
batch_size=256 * os.cpu_count()
|
|
76
|
+
init=kmeans_init if init_codebook is None else init_codebook.cpu().numpy(),
|
|
77
|
+
random_state=0, n_init="auto", verbose=1,
|
|
71
78
|
)
|
|
72
79
|
ids = torch.tensor(kmeans.fit_predict(values.cpu().numpy()), device=values.device)
|
|
73
80
|
centers = torch.tensor(kmeans.cluster_centers_, dtype=values.dtype, device=values.device)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: reduced_3dgs
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.7
|
|
4
4
|
Summary: Refactored code for the paper "Reducing the Memory Footprint of 3D Gaussian Splatting"
|
|
5
5
|
Home-page: https://github.com/yindaheng98/reduced-3dgs
|
|
6
6
|
Author: yindaheng98
|
|
@@ -8,13 +8,8 @@ Author-email: yindaheng98@gmail.com
|
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
10
|
License-File: LICENSE.md
|
|
11
|
-
Requires-Dist: tqdm
|
|
12
|
-
Requires-Dist: plyfile
|
|
13
|
-
Requires-Dist: scikit-learn
|
|
14
|
-
Requires-Dist: torch
|
|
15
|
-
Requires-Dist: torchvision
|
|
16
|
-
Requires-Dist: numpy
|
|
17
11
|
Requires-Dist: gaussian-splatting
|
|
12
|
+
Requires-Dist: scikit-learn
|
|
18
13
|
Dynamic: author
|
|
19
14
|
Dynamic: author-email
|
|
20
15
|
Dynamic: classifier
|
|
@@ -41,46 +36,33 @@ This repository contains the **refactored Python code for [Reduced-3DGS](https:/
|
|
|
41
36
|
* [Pytorch](https://pytorch.org/) (v2.4 or higher recommended)
|
|
42
37
|
* [CUDA Toolkit](https://developer.nvidia.com/cuda-12-4-0-download-archive) (12.4 recommended, should match with PyTorch version)
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
(Optional) If you have trouble with [`gaussian-splatting`](https://github.com/yindaheng98/gaussian-splatting), try to install it from source:
|
|
46
40
|
```sh
|
|
47
|
-
pip install
|
|
41
|
+
pip install wheel setuptools
|
|
42
|
+
pip install --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master --no-build-isolation
|
|
48
43
|
```
|
|
49
44
|
|
|
50
|
-
## Install
|
|
51
|
-
|
|
52
|
-
```sh
|
|
53
|
-
pip install --upgrade git+https://github.com/yindaheng98/reduced-3dgs.git@main
|
|
54
|
-
```
|
|
55
|
-
If you have trouble with [`gaussian-splatting`](https://github.com/yindaheng98/gaussian-splatting), you can install it from source:
|
|
56
|
-
```sh
|
|
57
|
-
pip install --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master
|
|
58
|
-
```
|
|
45
|
+
## PyPI Install
|
|
59
46
|
|
|
60
|
-
## Install (Development)
|
|
61
|
-
|
|
62
|
-
Install [`gaussian-splatting`](https://github.com/yindaheng98/gaussian-splatting).
|
|
63
|
-
You can download the wheel from [PyPI](https://pypi.org/project/gaussian-splatting/):
|
|
64
47
|
```shell
|
|
65
|
-
pip install --upgrade
|
|
48
|
+
pip install --upgrade reduced-3dgs
|
|
66
49
|
```
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
50
|
+
or
|
|
51
|
+
build latest from source:
|
|
52
|
+
```shell
|
|
53
|
+
pip install wheel setuptools
|
|
54
|
+
pip install --upgrade git+https://github.com/yindaheng98/reduced-3dgs.git@main --no-build-isolation
|
|
70
55
|
```
|
|
71
56
|
|
|
57
|
+
### Development Install
|
|
58
|
+
|
|
72
59
|
```shell
|
|
73
60
|
git clone --recursive https://github.com/yindaheng98/reduced-3dgs
|
|
74
61
|
cd reduced-3dgs
|
|
75
|
-
pip install
|
|
62
|
+
pip install scikit-learn
|
|
76
63
|
pip install --target . --upgrade --no-deps .
|
|
77
64
|
```
|
|
78
65
|
|
|
79
|
-
(Optional) If you prefer not to install `gaussian-splatting` in your environment, you can install it in your `reduced-3dgs` directory:
|
|
80
|
-
```sh
|
|
81
|
-
pip install --target . --no-deps --upgrade git+https://github.com/yindaheng98/gaussian-splatting.git@master
|
|
82
|
-
```
|
|
83
|
-
|
|
84
66
|
## Quick Start
|
|
85
67
|
|
|
86
68
|
1. Download the dataset (T&T+DB COLMAP dataset, size 650MB):
|
|
@@ -60,7 +60,7 @@ if os.name == 'nt':
|
|
|
60
60
|
|
|
61
61
|
setup(
|
|
62
62
|
name="reduced_3dgs",
|
|
63
|
-
version='1.10.
|
|
63
|
+
version='1.10.7',
|
|
64
64
|
author='yindaheng98',
|
|
65
65
|
author_email='yindaheng98@gmail.com',
|
|
66
66
|
url='https://github.com/yindaheng98/reduced-3dgs',
|
|
@@ -97,12 +97,7 @@ setup(
|
|
|
97
97
|
'build_ext': BuildExtension
|
|
98
98
|
},
|
|
99
99
|
install_requires=[
|
|
100
|
-
'tqdm',
|
|
101
|
-
'plyfile',
|
|
102
|
-
'scikit-learn',
|
|
103
|
-
'torch',
|
|
104
|
-
'torchvision',
|
|
105
|
-
'numpy',
|
|
106
100
|
'gaussian-splatting',
|
|
101
|
+
'scikit-learn',
|
|
107
102
|
]
|
|
108
103
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/diff-gaussian-rasterization/reduced_3dgs.cu
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{reduced_3dgs-1.10.5 → reduced_3dgs-1.10.7}/submodules/gaussian-importance/rasterize_points.cu
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|