hustvl / 4DGaussians

[CVPR 2024] 4D Gaussian Splatting for Real-Time Dynamic Scene Rendering
https://guanjunwu.github.io/4dgs/
Apache License 2.0
2.26k stars 189 forks source link

Problem about hypernerf2colmap.py #108

Closed cdfan0627 closed 8 months ago

cdfan0627 commented 8 months ago

Hellow

Thank you very much for your code, I would like to ask the following questions.

image

May I ask why the following problem occurs as long as I change 2x to 1x in hypernerf2colmap.py?

image
guanjunwu commented 8 months ago

hi, because the dataset only has "2x" folder.

cdfan0627 commented 8 months ago

Hi, I am using hypernerf's misc_espresso, which contains dataset has "1x" folder

guanjunwu commented 8 months ago

Hi, if you want to use "1x", I think you can change theimagesize,camera parameters of line 71. Maybe that will work?

cdfan0627 commented 8 months ago

不好意思,但是他的image size是讀camera json檔案的image size,那個camera json檔案的image size,就是1x的image size

guanjunwu commented 8 months ago

我这里是2x的,我觉得你只要把71行的那个 print(idx,"SIMPLE_PINHOLE",image_size[0]/2,image_size[1]/2,cam['focal_length']/2,cam['principal_point'][0]/2,cam['principal_point'][1]/2,file=object_cameras_file) 改成 print(idx,"SIMPLE_PINHOLE",image_size[0],image_size[1],cam['focal_length'],cam['principal_point'][0],cam['principal_point'][1],file=object_cameras_file),是不是就行了

cdfan0627 commented 8 months ago

成功了 非常感謝您的幫忙!