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

Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same #6

Open
MaxLeo-LMZ opened this issue May 26, 2022 · 0 comments

Comments

@MaxLeo-LMZ
Copy link

run evaluate_model.py

Traceback (most recent call last):
File "evaluate_model.py", line 421, in
eval_dict = evaluate_model(pixor, data_loader, distance_ranges=[70, 50, 30], iou_thresholds=[0.5, 0.6, 0.7, 0.8, 0.9]).to(device)
File "evaluate_model.py", line 227, in evaluate_model
batch_predictions = model(batch_data)
File "/home/mingzhong/anaconda3/envs/pixor-36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/mingzhong/PycharmProjects/pixor/PIXOR-pytorch/PIXOR-master/PIXOR.py", line 244, in forward
x_b = self.basis_block(x)
File "/home/mingzhong/anaconda3/envs/pixor-36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/mingzhong/PycharmProjects/pixor/PIXOR-pytorch/PIXOR-master/PIXOR.py", line 28, in forward
x = self.conv1(x)
File "/home/mingzhong/anaconda3/envs/pixor-36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/home/mingzhong/anaconda3/envs/pixor-36/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 446, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/home/mingzhong/anaconda3/envs/pixor-36/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 443, in _conv_forward
self.padding, self.dilation, self.groups)
RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same

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