mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-11 02:24:38 +08:00
Merge branch 'gs-export-2' of github.com:nerfstudio-project/nerfstudio into gs-export-2
This commit is contained in:
commit
c64f86fe3c
@ -505,10 +505,10 @@ class ExportGaussianSplat(Exporter):
|
||||
|
||||
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))
|
||||
|
||||
for i in range(colors_diffuse.shape[1]):
|
||||
for i in range(colors.shape[1]):
|
||||
if i < 3:
|
||||
map_to_tensors[f"f_dc_{i}"] = colors[:, i]
|
||||
for i in range(shs.shape[1]):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user