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/
305 stars 44 forks source link

Can't run the sample. What am I missing? #22

Open gabriel-wainmann opened 1 year ago

gabriel-wainmann commented 1 year ago

Hi

Running this in a Colab Notebook. All is well until running the demo.

I get:

omegaconf.errors.ValidationError: Cannot convert 'tuple' to string: '('betas', 'global_rot', 'body_pose', 'camera')' full_key: groups[0] reference_type=Tuple[str] object_type=list

krystofjo commented 1 year ago

Hi, I have installed everything without problem on Ubuntu 18.04.

When running the demo, I am getting the same error. @gabriel-wainmann did you manage to solve it, please?

muelea commented 1 year ago

Can you post the command you're using to run the demo? The error message suggested it's related to a wrong path or keyword in your command.

krystofjo commented 1 year ago

I am using the one suggested in README.md:

@ubuntu:~/shapy/regressor$ python demo.py --save-vis true --save-params true --save-mesh true --split test --datasets openpose --output-folder ../samples/shapy_fit/ --exp-cfg configs/b2a_expose_hrnet_demo.yaml --exp-opts output_folder=../data/trained_models/shapy/SHAPY_A part_key=pose datasets.pose.openpose.data_folder=../samples datasets.pose.openpose.img_folder=images datasets.pose.openpose.keyp_folder=openpose datasets.batch_size=1 datasets.pose_shape_ratio=1.0

I have doublechecked everything and I am no longer getting the mentioned error after this command. But I get an ImportError: ImportError: cannot import name 'BodyMeasurements' from 'body_measurements' (unknown location)

I have looked in measurements.py in body_measurements package and I can see no such thing as BodyMeasurements. Do you have an idea where could be a problem? Thanks a lot