AttributeError: module 'utils3d' has no attribute 'numpy' when running Microsoft MoGe training

3 weeks ago 29
ARTICLE AD BOX

I am trying to run the training code for the Microsoft MoGe (Monocular Geometry Estimation) model from their GitHub repository.

I have set up my environment and installed dependencies, but when I run the inference script, I encounter an AttributeError related to the utils3d library.

AttributeError: module 'utils3d' has no attribute 'numpy'

The code fails at the line where it attempts to use utils3d functions. It seems the code expects utils3d to have a numpy submodule or attribute, but the version I have installed does not support this. I installed the library using the requirements.txt file.

My Environment:

Python 3.8

PyTorch

OS: Linux

Does the Microsoft MoGe repository require a specific fork of utils3d that differs from the standard PyPI package? How can I install the correct version to resolve this attribute error?

Read Entire Article