aipixel / GPS-Gaussian

[CVPR 2024 Highlight] The official repo for “GPS-Gaussian: Generalizable Pixel-wise 3D Gaussian Splatting for Real-time Human Novel View Synthesis”
https://shunyuanzheng.github.io/GPS-Gaussian
MIT License
453 stars 25 forks source link

数据加载中的相机参数问题 #24

Open caiyongqi opened 4 months ago

caiyongqi commented 4 months ago

在human_loader.py中: projection_matrix = getProjectionMatrix(znear=self.opt.znear, zfar=self.opt.zfar, K=intr, h=height, w=width).transpose(0, 1) world_view_transform = torch.tensor(getWorld2View2(R, T, np.array(self.opt.trans), self.opt.scale)).transpose(0, 1) 这个代码里面world_view_transform为什么是 世界坐标系到相机坐标系 变换矩阵的转置呀?(为什么多用了个transpose(0, 1)) projection_matrix 也使用transpose(0, 1)进行了转置? intr, extr是相机的内参和world to camera的外参吧?

ShunyuanZheng commented 4 months ago

这边是直接使用了3DGS源代码的写法scene/cameras.py,需要传入的intr和extr是W2C的没错。