mli0603 / BlenderNeuralangelo

Blender addon to inspect and preprocess COLMAP data for Neuralangelo (CVPR 2023)
308 stars 21 forks source link

I got an error when load COLMAP Data #6

Closed julianzhao88 closed 1 year ago

julianzhao88 commented 1 year ago

when I load COLMAP Data,there is an error Python: Traceback (most recent call last):File"neuralangelo addon.py", line 1095, in executeload camera(colmap data, context)File "neuralangelo addon.py", line 969 , in load camneragenerate camera plane texturelimage sequence)File "neuralangelo addon.py, line 897 , in generate camera plane texturematerial.node tree.links.new(image texture.outputs[ 'Color' ], principled bsdf inputs[Base Color'])AttributeError: 'NoneType' object has no attribute 'inputs' the version of blender is 3.5.1

mli0603 commented 1 year ago

Hi @julianzhao88

Thank you for your interest in our work.

This error is coming from loading images as textures, where the path is defined here

https://github.com/mli0603/BlenderNeuralangelo/blob/bbeb0b114e22d8778668b2a4ada9307db6a23e32/neuralangelo_addon.py#L936

If you have followed the commands from COLMAP exactly, you should expect a folder structure [like the following]:(https://github.com/mli0603/BlenderNeuralangelo/tree/main#0-running-colmap)

|__ dense (or your customized work directory)
    |__ images (folder of undistorted images)
    |__ sparse (folder of sparse reconstruction results)
    |__ run-colmap-geometric.sh
    |__ run-colmap-photometric.sh

Most likely your folder structure is different from what colmap is expecting.

crazySyaoran commented 1 year ago

same error here... the folder structure is:

|__ dense (or your customized work directory)
    |__ images (folder of undistorted images)
    |__ sparse (folder of sparse reconstruction results)
    |__ run-colmap-geometric.sh
    |__ run-colmap-photometric.sh
mli0603 commented 1 year ago

Hi @crazySyaoran

Thanks for the update. Would you mind sharing your colmap results with me (I.e., the ‘dense’ folder) so I can replicate your issue?

crazySyaoran commented 1 year ago

I updated my blender to latest version 3.5 and use English as language then the error message gone. Thank you.

julianzhao88 commented 1 year ago

I updated my blender to latest version 3.5 and use English as language then the error message gone. Thank you.

yes,use English,it works. Thanks