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: result type Byte can't be cast to the desired output type Bool #17

Closed
asadnorouzi opened this issue Mar 25, 2020 · 4 comments

Comments

@asadnorouzi
Copy link

I am getting the following runtime error:

RuntimeError: result type Byte can't be cast to the desired output type Bool

It is caused by line 130 in box_coder_utils.py.

@zwqnju
Copy link

zwqnju commented Mar 26, 2020

I just change dir_labels.byte() to dir_labels.bool() and the error is eliminated.

@asadnorouzi
Copy link
Author

Thank you @zwqnju. It fixed the error.

@zwqnju
Copy link

zwqnju commented Apr 1, 2020

@asadnorouzi I find that using PyTorch 1.1 can also fix this issue, which do not need modifying code. Higher version of PyTorch does not support the code.

@asadnorouzi
Copy link
Author

@zwqnju Yeah, I figured that this repo has been developed based on Pytorch 1.1. I'm testing it with Pytorch 1.4. It's been OK so far.

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

2 participants