muelea / shapy

CVPR 2022 - Official code repository for the paper: Accurate 3D Body Shape Regression using Metric and Semantic Attributes.
https://shapy.is.tue.mpg.de/
295 stars 44 forks source link

ModuleNotFoundError: No module named 'resource #21

Open owais3901 opened 1 year ago

owais3901 commented 1 year ago

Hello Owais Here, i run the demo.py and getting the error ..

"ModuleNotFoundError: No module named 'resource'"

also when i run the virtual_measurements file i am getting this error

"ModuleNotFoundError: No module named 'body_measurements'"

Thanks in advance : - ))

muelea commented 1 year ago

Hi, I reinstalled the repo from scratch, but didn't get this error when running the example commands, including the demo.py for the regressor and for virtual measurements. Can you please explain when this happens so that I can reproduce it? Did you install the body measurements module from the SHPAY repo?

cd $SHAPY/mesh-mesh-intersection
export CUDA_SAMPLES_INC=$(pwd)/include
pip install -r requirements.txt
python setup.py install
owais3901 commented 1 year ago

@muelea when i run the setup.py file i am getting this error in command prompt fatal error C1189: #error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2019 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3\bin\nvcc.exe' failed with exit code 2

Faithyf commented 1 year ago

Have you solved this problem please?

muelea commented 1 year ago

I assume you are trying to install SHAPY on windows. The installation and demo code has been tested on Ubuntu only. You need to change the setup.py according to your system.

owais3901 commented 1 year ago

@muelea yeah i am running SHAPY on windows