NVlabs / nvdiffrec

Official code for the CVPR 2022 (oral) paper "Extracting Triangular 3D Models, Materials, and Lighting From Images".
Other
2.15k stars 224 forks source link

caffe2.proto module import error #45

Open jnm26 opened 2 years ago

jnm26 commented 2 years ago

After installing, executing train.py like in the ReadMe causes the following

ImportError: cannot import name 'metanet_pb2' from partially initialized module 'caffe2.proto' (most likely due to a circular import) (C:\Users\John\miniconda3\lib\site-packages\caffe2\proto\__init__.py)

Looking at it in VSCode it looks like caffe2 isn't installed? Does it need to be built from source seperately?

image

Also everywhere it looks like caffe2 is deprecated?

jmunkberg commented 2 years ago

We do not use caffe2 in the code base, and I have not seen this error. As a first step, perhaps check if your PyTorch installation works as expected.