-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: reciprocal is not implemented for type torch.cuda.LongTensor #147
Comments
OK, it seems that Pytorch 0.3.0 can solve the problem. Maybe it is the version caused the problem. |
I also met this problem when I try to compile with pytorch 0.4.0? how to solve this problem? while i do not want to change the version of my pytorch... |
modify faster-rcnn.pytorch\lib\model\rpn\anchor_target_layer.py +156, from
to
|
another issue can be resoved with modify faster-rcnn.pytorch\lib\model\rpn\proposal_target_layer_cascade.py +133, from
to
|
Hi @xylcbd, thank you for your solutions. But I meet with anothor issue caused by: Traceback (most recent call last): I try to add norm.cuda() to solve it, but failed as: Traceback (most recent call last): could you kindly offer some advices? Thanks a lot! |
@jwyang, maybe you should check the input parameter "clip_norm", is it hosted by CUDA? |
Thanks for your opinion@xylcbd I have checked clip_norm, it is a float constant. At last I solve my problem by adding |
@xylcbd thanks so much for your solution. It works for me now |
@isalirezag put it before p.grad.mul_(norm) as gradiants are calculated on GPU |
Hi @xylcbd, thank you for your solutions. But I meet with anothor issue caused by: |
@kurosaki-fish ,no,have you solved the problem? |
For me, changing
to
Solved this problem |
command:python trainval_net.py --cuda |
the current master supports pytorch 0.4.0 now, feel free to use it! |
|
I saw someone posted a similar problem #116
Does this have something to do with Pytorch version???
Anyone with solution, plz contact me, thank you.
The text was updated successfully, but these errors were encountered: