Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: no field of name f_dc_0 #42

Open
caiolopesdasilva opened this issue Oct 16, 2024 · 2 comments
Open

ValueError: no field of name f_dc_0 #42

caiolopesdasilva opened this issue Oct 16, 2024 · 2 comments

Comments

@caiolopesdasilva
Copy link

Hi all,

I tried to using this addon in multiple versions of Blender, from 3.6LTS to 4.0 4.1 and 4.2

I always face the same error:

Python: Traceback (most recent call last):
  File "C:\Users\render\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\gaussian_splatting_io\__init__.py", line 74, in execute
    features_dc[:, 0, 0] = np.asarray(plydata.elements[0]["f_dc_0"])
                                      ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "C:\Users\render\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\gaussian_splatting_io\plyfile.py", line 715, in __getitem__
    return self.data[key]
           ~~~~~~~~~^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\site-packages\numpy\core\memmap.py", line 334, in __getitem__
    res = super().__getitem__(index)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: no field of name f_dc_0

I see others are facing the same issue but I have not found a proper solution for this. I am using the latest version from this repo. Anything that I can do?

@caiolopesdasilva caiolopesdasilva changed the title Import error ValueError: no field of name f_dc_0 Oct 16, 2024
@juliette1ternet
Copy link

Hi,

I faced the same issue on different versions as well,
It stopped giving me the error when I imported a .splat instead of a .ply. I hope this will help!

@errorsurface
Copy link

I was getting the same error with this add-on as well with the Kiri Engine one.
If you are using Polycam download the SPLAT .ply, instead of the regular one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants