GAP-LAB-CUHK-SZ / Total3DUnderstanding

Implementation of CVPR'20 Oral: Total3DUnderstanding: Joint Layout, Object Pose and Mesh Reconstruction for Indoor Scenes from a Single Image
MIT License
415 stars 50 forks source link

ImportError: No module named 'build' #47

Open frankmecial opened 1 year ago

frankmecial commented 1 year ago

i got the following errors

(total3D) G:\Total3DUnderstanding-master>python main.py configs/total3d.yaml --mode train out\total3d\20221129161655 ['external/pyTorchChamferDistance/build'] Traceback (most recent call last): File "main.py", line 21, in from net_utils.utils import initiate_environment File "G:\Total3DUnderstanding-master\net_utils\utils.py", line 12, in from models.registers import METHODS File "G:\Total3DUnderstanding-master\models__init.py", line 1, in from . import total3d, mgnet File "G:\Total3DUnderstanding-master\models\mgnet\init.py", line 1, in from . import modules, training, config, dataloader File "G:\Total3DUnderstanding-master\models\mgnet\config.py", line 5, in from .testing import Tester File "G:\Total3DUnderstanding-master\models\mgnet\testing.py", line 8, in from external.pyTorchChamferDistance.chamfer_distance import ChamferDistance File "G:\Total3DUnderstanding-master\external\pyTorchChamferDistance\chamfer_distance\init__.py", line 1, in from .chamfer_distance import ChamferDistance File "G:\Total3DUnderstanding-master\external\pyTorchChamferDistance\chamfer_distance\chamfer_distance.py", line 8, in build_directory="external/pyTorchChamferDistance/build") File "C:\Users\moo-nin\anaconda3\envs\total3D\lib\site-packages\torch\utils\cpp_extension.py", line 644, in load is_python_module) File "C:\Users\moo-nin\anaconda3\envs\total3D\lib\site-packages\torch\utils\cpp_extension.py", line 824, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "C:\Users\moo-nin\anaconda3\envs\total3D\lib\site-packages\torch\utils\cpp_extension.py", line 967, in _import_module_from_library file, path, description = imp.find_module(module_name, [path]) File "C:\Users\moo-nin\anaconda3\envs\total3D\lib\imp.py", line 298, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named 'build'

It looks like some files should in "build" disapper, how to solve this problem?

yinyunie commented 1 year ago

Hi,

Have you tried to deploy it on Ubuntu? because this code is developed under Ubuntu 16.04. It should work on any other Ubuntu system.

Best, Yinyu