mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-26 02:49:57 +08:00
Merge branch 'gs-export-2' of github.com:nerfstudio-project/nerfstudio into gs-export-2
This commit is contained in:
commit
c64f86fe3c
1 file changed
+2
-2
@@ -505,10 +505,10 @@ class ExportGaussianSplat(Exporter):
|
|||||||
|
|
||||||
colors = model.colors_all.data.cpu().numpy()
|
colors = model.colors_all.data.cpu().numpy()
|
||||||
|
|
||||||
colors_diffuse = colors[:, 0, ..., np.newaxis]
|
colors = colors[:, 0, ..., np.newaxis]
|
||||||
shs = colors[:, 1:].reshape((colors.shape[0], -1, 1))
|
shs = colors[:, 1:].reshape((colors.shape[0], -1, 1))
|
||||||
|
|
||||||
for i in range(colors_diffuse.shape[1]):
|
for i in range(colors.shape[1]):
|
||||||
if i < 3:
|
if i < 3:
|
||||||
map_to_tensors[f"f_dc_{i}"] = colors[:, i]
|
map_to_tensors[f"f_dc_{i}"] = colors[:, i]
|
||||||
for i in range(shs.shape[1]):
|
for i in range(shs.shape[1]):
|
||||||
|
|||||||
Reference in new issue
Block a user