Skip to content

I get an error #3

@maylad31

Description

@maylad31

Downloading: "https://download.pytorch.org/models/resnet50-19c8e357.pth" to /root/.cache/torch/checkpoints/resnet50-19c8e357.pth
100% 97.8M/97.8M [00:00<00:00, 125MB/s]
Traceback (most recent call last):
File "demo.py", line 162, in
demo.run_demo(args)
File "/usr/local/lib/python3.7/dist-packages/torch/autograd/grad_mode.py", line 49, in decorate_no_grad
return func(*args, **kwargs)
File "demo.py", line 122, in run_demo
self.get_smpl(img_tensor)
File "demo.py", line 44, in get_smpl
pred_vertices, pred_cam_t, pred_rotmat, pred_betas = self.rsc_runner.get_3D_batch(img_tensor, scale, pre_process=True)
File "/content/f7b7c7758a46da49f84bc68b47997d69/Texformer/RSC_net/ra_test.py", line 34, in get_3D_batch
input_batch = self.pre_process_batch(input_batch)
File "/content/f7b7c7758a46da49f84bc68b47997d69/Texformer/RSC_net/ra_test.py", line 30, in pre_process_batch
return (batch - torch.tensor(self.IMG_NORM_MEAN).view(1, -1, 1, 1)) / torch.tensor(self.IMG_NORM_STD).view(1, -1, 1, 1)
RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions