Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError.. #7

Open
lululalamm opened this issue Aug 16, 2019 · 0 comments
Open

RuntimeError.. #7

lululalamm opened this issue Aug 16, 2019 · 0 comments

Comments

@lululalamm
Copy link

Traceback (most recent call last):
File "main.py", line 352, in
main()
File "main.py", line 146, in main
is_calc_map=args.calc_map)
File "main.py", line 298, in evaluate
vis_result_dir=vis_result_dir)
File "/data/multi_person/pytorch-ppn/utils/eval_util.py", line 87, in multi_image_testing_on_mpi_mp_dataset
vis_im_path=vis_im_path)
File "/data/multi_person/pytorch-ppn/utils/eval_util.py", line 163, in single_image_testing_on_mpi_mp_dataset
input_im = transform(cropped_im)
File "/usr/local/lib/python3.6/dist-packages/torchvision/transforms/transforms.py", line 60, in call
img = t(img)
File "/usr/local/lib/python3.6/dist-packages/torchvision/transforms/transforms.py", line 163, in call
return F.normalize(tensor, self.mean, self.std, self.inplace)
File "/usr/local/lib/python3.6/dist-packages/torchvision/transforms/functional.py", line 208, in normalize
tensor.sub_(mean[:, None, None]).div_(std[:, None, None])
RuntimeError: expected type torch.DoubleTensor but got torch.FloatTensor

How can i fix it? :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant