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

AttributeError: Caught AttributeError in DataLoader worker process 0. #45

Closed msun67 closed 4 months ago

msun67 commented 6 months ago

Hi

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

I get: File "/usr/local/lib/python3.10/dist-packages/torch/_utils.py", line 722, in reraise raise exception AttributeError: Caught AttributeError in DataLoader worker process 0.

Can you help me?

Rut-B commented 6 months ago

what is the cmd that you trying to run?

msun67 commented 6 months ago

%%shell cd /content/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 am trying to run the cmd command.

Rut-B commented 6 months ago

this work for me: see https://colab.research.google.com/drive/1vcMP4e8QALFUNzadKAz5fE7_3Gu90EDj#scrollTo=1naSpmZGIg_t

msun67 commented 6 months ago

I can't see it because I don't have access to it :(

Rut-B commented 5 months ago

did you try to install pytorch ?

msun67 commented 5 months ago

yes I have installed pytorch and torchvision

My error comes out like this SHAPY_Err

Can you help me :( ?

muelea commented 5 months ago

The error message says that np.int does not exist. I assume your install numpy version is different from the version we use in SHAPY. Make sure you have numpy==1.19.5 installed.

msun67 commented 5 months ago

Thank you very much for your answer.

Is there a way to change the numpy version in colab?

i try: !apt update !pip install --upgrade pip setuptools wheel !apt-get install -y libatlas-base-dev gfortran !pip cache purge !pip uninstall numpy

But installation of numpy==1.19.5 failed. SHAPY_Err2

Drexregion commented 4 months ago

this work for me: see https://colab.research.google.com/drive/1vcMP4e8QALFUNzadKAz5fE7_3Gu90EDj#scrollTo=1naSpmZGIg_t

Hey is it possible for you to grant me access to the collab?

I am having some issues with mine.