EasyVolcap icon indicating copy to clipboard operation
EasyVolcap copied to clipboard

Error when training 3DGS

Open brianneoberson opened this issue 1 year ago • 3 comments

Hello,

I am trying to test your dynamic 3DGS implementation on the example dataset actor1_4_subseq you provide. I did all of the previous steps, including training Instant-NGP+T and getting the vhulls. But now when running evc-train -c configs/exps/gaussiant/gaussiant_${expname}.yaml I get the following error:

RuntimeError: The expanded size of the tensor (262144) must match the existing size (705441) at non-singleton dimension 0.  Target sizes: [262144, 3].  Tensor sizes: [705441, 3]
*** The expanded size of the tensor (262144) must match the existing size (705441) at non-singleton dimension 0.  Target sizes: [262144, 3].  Tensor sizes: [705441, 3]
> {path/to/EasyVolcap/easyvolcap/utils/gaussian_utils.py(443)create_from_pcd()
    441         if colors is not None:
    442             SH = rgb2sh0(colors)
--> 443             features[:, :3, 0] = SH
    444         features[:, 3: 1:] = 0
    445 

Would you have an idea why this is happening?

brianneoberson avatar May 08 '24 13:05 brianneoberson

Looks like we encountered a shape mismatch error when using the initial point cloud for initializing 3DGS. Could you share the prepared init point clouds files (.plys)? In the documented example, we use dense initialization for every frame instead of visual hulls, so there might be some bug in the visual hull code path.

dendenxu avatar May 22 '24 11:05 dendenxu

Have you solved it?I am using the enerf_outdoor dataset

foooolish avatar Nov 15 '24 09:11 foooolish

Probably change the config file gaussiant_actor1_4_subseq.yaml where the number "262144" is hard setted ?

Peamon avatar Mar 07 '25 14:03 Peamon