Skip to content

Commit 1eaa046

Browse files
committed
Fix apple#5 and apple#6.
Also fix bibtex.
1 parent cdb4ddc commit 1eaa046

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ If you find our work useful, please cite the following paper:
7878
```bibtex
7979
@inproceedings{Sharp2025:arxiv,
8080
title = {Sharp Monocular View Synthesis in Less Than a Second},
81-
author = {Lars Mescheder and Wei Dong and Shiwei Li and Xuyang Bai and Marcel Santos and Peiyun Hu and Bruno Lecouat and Mingmin Zhen and Ama\"{e}l Delaunoyand Tian Fang and Yanghai Tsin and Stephan R. Richter and Vladlen Koltun},
81+
author = {Lars Mescheder and Wei Dong and Shiwei Li and Xuyang Bai and Marcel Santos and Peiyun Hu and Bruno Lecouat and Mingmin Zhen and Ama\"{e}l Delaunoy and Tian Fang and Yanghai Tsin and Stephan R. Richter and Vladlen Koltun},
8282
journal = {arXiv preprint arXiv:2512.10685},
8383
year = {2025},
8484
url = {https://arxiv.org/abs/2512.10685},

src/sharp/cli/render.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def render_gaussians(
8787

8888
intrinsics = torch.tensor(
8989
[
90-
[f_px, 0, (width - 1) / 2., 0],
91-
[0, f_px, (height - 1) / 2., 0],
90+
[f_px, 0, (width - 1) / 2.0, 0],
91+
[0, f_px, (height - 1) / 2.0, 0],
9292
[0, 0, 1, 0],
9393
[0, 0, 0, 1],
9494
],

src/sharp/utils/gaussians.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,14 +320,17 @@ def load_ply(path: Path) -> tuple[Gaussians3D, SceneMetaData]:
320320
# Parse color space.
321321
color_space_index = supplement_data.get("color_space", 1)
322322
color_space = cs_utils.decode_color_space(color_space_index)
323+
colors = torch.from_numpy(colors).view(1, -1, 3).float()
324+
323325
if color_space == "sRGB":
324-
colors = cs_utils.sRGB2linearRGB(colors)
326+
# Convert to linearRGB for proper alpha blending.
327+
colors = cs_utils.sRGB2linearRGB(colors.flatten(0, 1)).view(1, -1, 3)
328+
color_space = "linearRGB"
325329

326330
mean_vectors = torch.from_numpy(mean_vectors).view(1, -1, 3).float()
327331
quaternions = torch.from_numpy(quaternions).view(1, -1, 4).float()
328332
singular_values = torch.exp(torch.from_numpy(scale_logits).view(1, -1, 3)).float()
329333
opacities = torch.sigmoid(torch.from_numpy(opacity_logits).view(1, -1)).float()
330-
colors = torch.from_numpy(colors).view(1, -1, 3).float()
331334

332335
gaussians = Gaussians3D(
333336
mean_vectors=mean_vectors,

0 commit comments

Comments
 (0)