ReshotAI / gaussian-splatting-blender-addon

https://www.lingosub.com
333 stars 35 forks source link

Import gaussian splatting with sh_degree != 3 #7

Open clement-chupin opened 8 months ago

clement-chupin commented 8 months ago

Impossible to import a gaussian splatting generate with a sh_degree different than 3, for example : python train.py -s ./dataset/mont_1/ --sh_degree 1 We obtain : Python: Traceback (most recent call last): File "/home/chupin/.config/blender/3.4/scripts/addons/blender-addon/__init__.py", line 80, in execute features_extra = features_extra.reshape((N, 3, 15)) ValueError: cannot reshape array of size 52317216 into shape (2179884,3,15)

It might come from the default casting of a sh_degree=3 gaussian splatting incompatible with sh_degree!=3