NVlabs / neuralangelo

Official implementation of "Neuralangelo: High-Fidelity Neural Surface Reconstruction" (CVPR 2023)
https://research.nvidia.com/labs/dir/neuralangelo/
Other
4.41k stars 390 forks source link

ModuleNotFoundError: No module named 'third_party.colmap' #147

Closed thevaibhavkute closed 1 year ago

thevaibhavkute commented 1 year ago

image

getting the below error while running the above script... I have not made any changes still getting this error. After that I have tried to edit that file inside but still getting this error

Error:

.
.
.
Undistorting image [97/100]
Undistorting image [98/100]
Undistorting image [99/100]
Undistorting image [100/100]
Writing reconstruction...
Writing configuration...
Writing scripts...
Elapsed time: 0.218 [minutes]
Traceback (most recent call last):
  File "/content/neuralangelo/projects/neuralangelo/scripts/convert_data_to_json.py", line 24, in <module>
    from third_party.colmap.scripts.python.read_write_model import read_model, qvec2rotmat  # NOQA
ModuleNotFoundError: No module named 'third_party.colmap'
Config generated to file: /content/neuralangelo/projects/neuralangelo/configs/custom/lego.yaml
----------------------------------------
Number of registered images: 100
NagaPadma commented 1 year ago

I do have the same error. I have changed the code and tried yet facing the same error.

shayikhhossain commented 1 year ago

I'm facing the same issue: _No module named 'thirdparty.colmap'

Someone please help!

guomc9 commented 1 year ago

Errors may occur when coding "from third_party.xxx import xxx".

  1. Find

    /content/neuralangelo/projects/neuralangelo/scripts/convert_data_to_json.py
  2. Comment

    dir_path = Path(os.path.dirname(os.path.realpath(__file__))).parents[2]
    sys.path.append(dir_path.__str__())
  3. Add codes after comments above.

    sys.path.append('/content/neuralangelo/third_party')
  4. Find code after that:

    from third_party.colmap.scripts.python.read_write_model import read_model, qvec2rotmat
  5. then fix to:

    from colmap.scripts.python.read_write_model import read_model, qvec2rotmat

    屏幕截图 2023-11-15 125554

NagaPadma commented 1 year ago

Errors may occur when coding "from third_party.xxx import xxx".

  1. Find
/content/neuralangelo/projects/neuralangelo/scripts/convert_data_to_json.py
  1. Comment
dir_path = Path(os.path.dirname(os.path.realpath(__file__))).parents[2]
sys.path.append(dir_path.__str__())
  1. Add codes after comments above.
sys.path.append('/content/neuralangelo/third_party')
  1. Find code after that:
from third_party.colmap.scripts.python.read_write_model import read_model, qvec2rotmat
  1. then fix to:
from colmap.scripts.python.read_write_model import read_model, qvec2rotmat

屏幕截图 2023-11-15 125554

thank you so much :) . it worked 👍.

thevaibhavkute commented 1 year ago

Errors may occur when coding "from third_party.xxx import xxx".

  1. Find
/content/neuralangelo/projects/neuralangelo/scripts/convert_data_to_json.py
  1. Comment
dir_path = Path(os.path.dirname(os.path.realpath(__file__))).parents[2]
sys.path.append(dir_path.__str__())
  1. Add codes after comments above.
sys.path.append('/content/neuralangelo/third_party')
  1. Find code after that:
from third_party.colmap.scripts.python.read_write_model import read_model, qvec2rotmat
  1. then fix to:
from colmap.scripts.python.read_write_model import read_model, qvec2rotmat

屏幕截图 2023-11-15 125554

Thanks a lot!!

EntityinArray commented 1 year ago

Errors may occur when coding "from third_party.xxx import xxx".

  1. Find
/content/neuralangelo/projects/neuralangelo/scripts/convert_data_to_json.py
  1. Comment
dir_path = Path(os.path.dirname(os.path.realpath(__file__))).parents[2]
sys.path.append(dir_path.__str__())
  1. Add codes after comments above.
sys.path.append('/content/neuralangelo/third_party')
  1. Find code after that:
from third_party.colmap.scripts.python.read_write_model import read_model, qvec2rotmat
  1. then fix to:
from colmap.scripts.python.read_write_model import read_model, qvec2rotmat

屏幕截图 2023-11-15 125554

is this fix making its way into the repo?

thevaibhavkute commented 1 year ago

Errors may occur when coding "from third_party.xxx import xxx".

  1. Find
/content/neuralangelo/projects/neuralangelo/scripts/convert_data_to_json.py
  1. Comment
dir_path = Path(os.path.dirname(os.path.realpath(__file__))).parents[2]
sys.path.append(dir_path.__str__())
  1. Add codes after comments above.
sys.path.append('/content/neuralangelo/third_party')
  1. Find code after that:
from third_party.colmap.scripts.python.read_write_model import read_model, qvec2rotmat
  1. then fix to:
from colmap.scripts.python.read_write_model import read_model, qvec2rotmat

屏幕截图 2023-11-15 125554

is this fix making its way into the repo? while running this: image make there this change: from neuralangelo.third_party.colmap.scripts.python.read_write_model import read_model