NVIDIAGameWorks / kaolin

A PyTorch Library for Accelerating 3D Deep Learning Research
Apache License 2.0
4.53k stars 562 forks source link

Remove fake image from converted gsplat camera #839

Open shumash opened 4 weeks ago

shumash commented 4 weeks ago

This line is unnecessary, remove fake image to avoid memory overhead: https://github.com/NVIDIAGameWorks/kaolin/blob/master/kaolin/render/camera/gsplats.py#L58

shumash commented 4 weeks ago

E.g. constructor can work as follows:

    return GSCamera(colmap_id=0,
                    R=R, T=T, FoVx=fovx, FoVy=fovy,
                    image=torch.zeros((3, height, width)) if needs_fake_image else None,  # fake
                    data_device=device,
                    gt_alpha_mask=None, image_name='fake', uid=0,
                    width=width, height=height)