CityGaussian icon indicating copy to clipboard operation
CityGaussian copied to clipboard

matrix_city The size of tensor a (1333) must match the size of tensor b (1600) at non-singleton dimension 1.

Open hhuzhouhui opened this issue 8 months ago • 4 comments

After downsampling in matrix_city, the image resolution is 1600x900. Why is the resolution in sparse/cameras.txt showing as 1920 1080 with the PINHOLE values 2317.6449482429634 2317.6449482429634 960.0 540.0 (1920x1080 resolution)? How can I solve this issue?

RuntimeError: The size of tensor a (1333) must match the size of tensor b (1600) at non-singleton dimension 1.

hhuzhouhui avatar Apr 11 '25 06:04 hhuzhouhui

Camera list with one line of data per camera: CAMERA_ID, MODEL, WIDTH, HEIGHT, PARAMS[] Number of cameras: 1 1 PINHOLE 1920.0 1080.0 2317.6449482429634 2317.6449482429634 960.0 540.0

hhuzhouhui avatar Apr 11 '25 06:04 hhuzhouhui

@hhuzhouhui If downsampling is applied, the intrinsics would be automatically adjusted by the code. Perhaps you can check if the code has correctly received correct downsampling rate.

DekuLiuTesla avatar Apr 16 '25 13:04 DekuLiuTesla

I guess when you run estimate depth python, you set the image path to the path with downsampled result. 1333=1920/1.2/1.2. you should run the estimate depth again with origin image path.

enhongHan avatar Apr 23 '25 02:04 enhongHan

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 23 '25 03:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 06 '25 03:06 github-actions[bot]