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

batch_input_cpu::error #5

Open
liutianling opened this issue Apr 28, 2018 · 3 comments
Open

batch_input_cpu::error #5

liutianling opened this issue Apr 28, 2018 · 3 comments

Comments

@liutianling
Copy link

liutianling commented Apr 28, 2018

when I test a image, i get error as following:
File "test_on_one_image.py", line 43, in main
_batch_input_cpu[0,:,:,:] = (img)
RuntimeError: The expanded size of the tensor (320) must match the existing size (240) at non-singleton dimension 2
Others, when i solve the size error, it show the model error?
Could you tell me how to solve it ?
And I want to konw the version of the packages you using.
Thank you!

@yifjiang
Copy link
Owner

yifjiang commented Apr 28, 2018

I pushed a quick fix. However, running "test_on_one_image.py" should require a GPU and I am currently unable to test it. If "test_on_one_image.py" still doesn't work, please let me know, and you can use "test_on_one_image_cpu.py" for now. That one has been tested with pyTorch ver 0.1.12 and torchvision ver 0.1.18 and only requires CPU.

@HsiaX
Copy link

HsiaX commented Apr 7, 2019

I pushed a quick fix. However, running "test_on_one_image.py" should require a GPU and I am currently unable to test it. If "test_on_one_image.py" still doesn't work, please let me know, and you can use "test_on_one_image_cpu.py" for now. That one has been tested with pyTorch ver 0.1.12 and torchvision ver 0.1.18 and only requires CPU.

I'm sorry but I want to ask that torchvision is 0.1.18 or 0.1.8? I try to search for 0.1.18 but failed.

@FedericoBarone994
Copy link

FedericoBarone994 commented Apr 7, 2019 via email

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

4 participants