shapy icon indicating copy to clipboard operation
shapy copied to clipboard

AttributeError: Caught AttributeError in DataLoader worker process 0.

Open msun67 opened this issue 11 months ago • 4 comments

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?

msun67 avatar Mar 20 '24 06:03 msun67

what is the cmd that you trying to run?

Rut-B avatar Mar 20 '24 06:03 Rut-B

%%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.

msun67 avatar Mar 20 '24 07:03 msun67

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

Rut-B avatar Mar 20 '24 13:03 Rut-B

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

msun67 avatar Mar 22 '24 00:03 msun67

did you try to install pytorch ?

Rut-B avatar Apr 10 '24 14:04 Rut-B

yes I have installed pytorch and torchvision

My error comes out like this SHAPY_Err

Can you help me :( ?

msun67 avatar Apr 11 '24 02:04 msun67

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.

muelea avatar Apr 12 '24 08:04 muelea

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

msun67 avatar Apr 15 '24 04:04 msun67