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

ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead. #43

Open
17320266033 opened this issue Aug 3, 2019 · 4 comments

Comments

@17320266033
Copy link

i use torch=0.3.1 torchvision=0.3.1 cuda=9.0 when I try to train this network, I got this error :
should i use torch=0.2.0?

Traceback (most recent call last):
File "/home/tju/software/pycharm-2018.2.1/helpers/pydev/pydevd.py", line 1664, in
main()
File "/home/tju/software/pycharm-2018.2.1/helpers/pydev/pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/home/tju/software/pycharm-2018.2.1/helpers/pydev/pydevd.py", line 1068, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/tju/zhangbing/tianchi/cascade-rcnn_Pytorch-master/trainval_net.py", line 26, in
from model.utils.net_utils import adjust_learning_rate, save_checkpoint
File "/home/tju/zhangbing/tianchi/cascade-rcnn_Pytorch-master/lib/model/utils/net_utils.py", line 11, in
from model.roi_crop.functions.roi_crop import RoICropFunction
File "/home/tju/zhangbing/tianchi/cascade-rcnn_Pytorch-master/lib/model/roi_crop/functions/roi_crop.py", line 4, in
from .._ext import roi_crop
File "/home/tju/zhangbing/tianchi/cascade-rcnn_Pytorch-master/lib/model/roi_crop/_ext/roi_crop/init.py", line 2, in
from torch.utils.ffi import _wrap_function
File "/home/tju/.local/lib/python2.7/site-packages/torch/utils/ffi/init.py", line 1, in
raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
We've got an error while stopping in post-mortem: <type 'exceptions.KeyboardInterrupt'>

@kingwpf
Copy link

kingwpf commented Oct 8, 2019

same error, my pytorch version is 1.2.0

@luckyxianxian
Copy link

版本要求pytorch小于0.4.0

@zzu0654
Copy link

zzu0654 commented Aug 2, 2020

same error, my pytorch version is 1.1.0,can you help me?

@zzu0654
Copy link

zzu0654 commented Aug 2, 2020

版本要求pytorch小于0.4.0
我的torchvision版本是0.3.0,torch版本是1.1.0,但是同样的错误,请问您清楚吗?

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