reduced-3dgs 1.10.5__cp310-cp310-win_amd64.whl → 1.10.6__cp310-cp310-win_amd64.whl
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/diff_gaussian_rasterization/_C.cp310-win_amd64.pyd +0 -0
- reduced_3dgs/importance/diff_gaussian_rasterization/_C.cp310-win_amd64.pyd +0 -0
- reduced_3dgs/quantization/quantizer.py +11 -4
- reduced_3dgs/simple_knn/_C.cp310-win_amd64.pyd +0 -0
- {reduced_3dgs-1.10.5.dist-info → reduced_3dgs-1.10.6.dist-info}/METADATA +1 -1
- {reduced_3dgs-1.10.5.dist-info → reduced_3dgs-1.10.6.dist-info}/RECORD +9 -9
- {reduced_3dgs-1.10.5.dist-info → reduced_3dgs-1.10.6.dist-info}/WHEEL +0 -0
- {reduced_3dgs-1.10.5.dist-info → reduced_3dgs-1.10.6.dist-info}/licenses/LICENSE.md +0 -0
- {reduced_3dgs-1.10.5.dist-info → reduced_3dgs-1.10.6.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -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)
|
|
Binary file
|
|
@@ -3,12 +3,12 @@ reduced_3dgs/combinations.py,sha256=dRrtTIQLggUP22Olp0DVSlD0C8YDgnrpTlrCcGZyWM0,
|
|
|
3
3
|
reduced_3dgs/prepare.py,sha256=MFUUckRHKfgcva4ZOBxfPFyE95N-OlCQLplpmEPuzOk,4440
|
|
4
4
|
reduced_3dgs/quantize.py,sha256=BVqBb2tQgiP3hap5-OByD8VELtJJGfEeFzaVFyzCJZU,2572
|
|
5
5
|
reduced_3dgs/train.py,sha256=yRQPQv-hTOBQN-tqGHYs2aIZ0AbWq158CXpthYN2cfw,5666
|
|
6
|
-
reduced_3dgs/diff_gaussian_rasterization/_C.cp310-win_amd64.pyd,sha256=
|
|
6
|
+
reduced_3dgs/diff_gaussian_rasterization/_C.cp310-win_amd64.pyd,sha256=QnHil663TLhHihMOWPGK_tpogJ0wRLO66wzGfXne2QQ,1610752
|
|
7
7
|
reduced_3dgs/diff_gaussian_rasterization/__init__.py,sha256=oV6JjTc-50MscX4XHeIWSgLr3l8Y25knBIs-0gRbJr4,7932
|
|
8
8
|
reduced_3dgs/importance/__init__.py,sha256=neJsbY5cLikEGBQGdR4MjwCQ5VWVikT1357DwL0EtWU,289
|
|
9
9
|
reduced_3dgs/importance/combinations.py,sha256=F9IYDZ6iquZw5Djn2An88dlp2MUGieAyuZyVaDZdSts,2962
|
|
10
10
|
reduced_3dgs/importance/trainer.py,sha256=Sj4ORvoYtFT7z3hifzFZDfhFyqumHraXyk3vMVtk0AU,12661
|
|
11
|
-
reduced_3dgs/importance/diff_gaussian_rasterization/_C.cp310-win_amd64.pyd,sha256=
|
|
11
|
+
reduced_3dgs/importance/diff_gaussian_rasterization/_C.cp310-win_amd64.pyd,sha256=h0_JG45D8yuy8-_AgY8-V7DE4_50CuWHOq5gPdEkNQ8,1302016
|
|
12
12
|
reduced_3dgs/importance/diff_gaussian_rasterization/__init__.py,sha256=Tix8auyXBb_QFQtXrV3sLE9kdnl5zgHH0BbqcFzDp84,12850
|
|
13
13
|
reduced_3dgs/pruning/__init__.py,sha256=E_YxJ9cDV_B6EJbYUBEcuRYMIht_C72rI1VJUXFCLpM,201
|
|
14
14
|
reduced_3dgs/pruning/combinations.py,sha256=xO39d08DEsDnKI5np_1xQ4H29O486Q_cThLfWhlH810,2385
|
|
@@ -16,14 +16,14 @@ reduced_3dgs/pruning/trainer.py,sha256=JJml-uYfDfUpbsjRNZbIvnUYYslVgFXkhejbkYSo0
|
|
|
16
16
|
reduced_3dgs/quantization/__init__.py,sha256=1z1xMn3yj9u7cR9JizGrI3WSyIES_Tqq6oDquvglSeo,225
|
|
17
17
|
reduced_3dgs/quantization/abc.py,sha256=rsi8HFRwQCltWTYiJ3BpygtQDT7hK6J01jKMOboOY8w,1910
|
|
18
18
|
reduced_3dgs/quantization/exclude_zeros.py,sha256=fKSgjHous4OpdI6mQi9z23if9jnbB79w2jChpxkCJWw,2381
|
|
19
|
-
reduced_3dgs/quantization/quantizer.py,sha256=
|
|
19
|
+
reduced_3dgs/quantization/quantizer.py,sha256=2myyBsYPGbzjZhjpKnYMYcvk6INqeds7wRdBRbIPki4,17948
|
|
20
20
|
reduced_3dgs/quantization/wrapper.py,sha256=cyXqfJgo9b3fS7DYXxOk5LmQudvrEhweOebFsjRnXiQ,2549
|
|
21
21
|
reduced_3dgs/shculling/__init__.py,sha256=nP2BejDCUdCmJNRbg0hfhHREO6jyZXwIcRiw6ttVgqo,149
|
|
22
22
|
reduced_3dgs/shculling/gaussian_model.py,sha256=f8QWaL09vaV9Tcf6Dngjg_Fmk1wTQPAjWhuhI_N02Y8,2877
|
|
23
23
|
reduced_3dgs/shculling/trainer.py,sha256=9hwR77djhZpyf-URhwKHjnLbe0ZAOS-DIw58RzkcHXQ,6369
|
|
24
|
-
reduced_3dgs/simple_knn/_C.cp310-win_amd64.pyd,sha256=
|
|
25
|
-
reduced_3dgs-1.10.
|
|
26
|
-
reduced_3dgs-1.10.
|
|
27
|
-
reduced_3dgs-1.10.
|
|
28
|
-
reduced_3dgs-1.10.
|
|
29
|
-
reduced_3dgs-1.10.
|
|
24
|
+
reduced_3dgs/simple_knn/_C.cp310-win_amd64.pyd,sha256=w7v44ndobRqldV1LuioMCAI3KgEZT0F0En7IKQGdj-s,1248768
|
|
25
|
+
reduced_3dgs-1.10.6.dist-info/licenses/LICENSE.md,sha256=LQ4_LAqlncGkg_mQy5ykMAFtQDSPB0eKmIEtBut0yjw,4916
|
|
26
|
+
reduced_3dgs-1.10.6.dist-info/METADATA,sha256=Sn6qPfw9clEy74_ULrx2uR-C6VmJvE4eSlwUHmv53go,13015
|
|
27
|
+
reduced_3dgs-1.10.6.dist-info/WHEEL,sha256=KUuBC6lxAbHCKilKua8R9W_TM71_-9Sg5uEP3uDWcoU,101
|
|
28
|
+
reduced_3dgs-1.10.6.dist-info/top_level.txt,sha256=PpU5aT3-baSCdqCtTaZknoB32H93UeKCkYDkRCCZMEI,13
|
|
29
|
+
reduced_3dgs-1.10.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|