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

Error when running demo #9

Open
rossjillian opened this issue Apr 8, 2023 · 1 comment
Open

Error when running demo #9

rossjillian opened this issue Apr 8, 2023 · 1 comment

Comments

@rossjillian
Copy link

When attempting to reproduce the demo, I get the following error:

RuntimeError: Expected tensor for argument #1 'input' to have the same type as tensor for argument #2 'rois'; but type torch.cuda.FloatTensor does not equal torch.cuda.DoubleTensor (while checking arguments for roi_pool_forward_kernel)

This might be related to: NVIDIA/apex#832. Unfortunately, I can't seem to find a way to convert input to float, as that code seems to lie within a torch module.

@avinabsaha
Copy link

Just convert the datatype of the rois to that of input, and it will run!

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