caizhongang / SMPLer-X

Official Code for "SMPLer-X: Scaling Up Expressive Human Pose and Shape Estimation"
https://caizhongang.github.io/projects/SMPLer-X/
Other
968 stars 69 forks source link

RuntimeError: Caught RuntimeError in replica 0 on device 0. #27

Open cg666-debug opened 10 months ago

cg666-debug commented 10 months ago

when I run

sh slurm_inference.sh test_video mp4 24 smpler_x_h32

it occurs error

RuntimeError: Caught RuntimeError in replica 0 on device 0.

I used

num_gpus =1  

and in /main/common/base.py I used

ckpt = torch.load(cfg.pretrained_model_path,map_location=torch.device('cpu'))
lllluy commented 10 months ago

I have the same problem. Have you solved it?

garvita-tiwari commented 10 months ago

Hi do you also get this error in the error stack? /site-packages/torch/_tensor.py", line 639, in __rsub__ return _C._VariableFunctions.rsub(self, other) RuntimeError: Subtraction, the-operator, with a bool tensor is not supported. If you are trying to invert a mask, use the~orlogical_not()operator instead.

If yes then this will solve the problem: https://github.com/mks0601/I2L-MeshNet_RELEASE/issues/6#issuecomment-675152527