ShijieZhou-UCLA / feature-3dgs

[CVPR 2024 Highlight] Feature 3DGS: Supercharging 3D Gaussian Splatting to Enable Distilled Feature Fields
Other
381 stars 25 forks source link

May be bug: rasterizer reduce feature dimension. #36

Closed Riften closed 3 months ago

Riften commented 3 months ago

I'm trying training sam feature embedding for SfM data sets for Tanks&Temples and Deep Blending from gaussian-splatting. I use provided vit_h pretrained model with speedup cnn. vit_h produces 256-dim feature map, which is used as ground truth during training. However, I got unmatched tensor dimension error for convolution operation during training.

RuntimeError: Given groups=1, weight of size [256, 64, 1, 1], expected input[1, 8, 42, 64] to have 64 channels, but got 8 channels instead

It seems that it is because the rasterizer operation during rendering reduces feature dimension.

Is this a bug or wrong configuration?

ShijieZhou-UCLA commented 3 months ago

Hi @Riften! I would suggest a double check for your configuration according to https://github.com/ShijieZhou-UCLA/feature-3dgs?tab=readme-ov-file#train

e.g. If you want to render 64-dim feature and use to speed-up module CNN, you should set: