torch.utils.ffi is deprecated
Opened this issue · 4 comments
Hi there,
thank you for the good structured repo here.
Unfortunately I am getting this error (relatively new to python):
Compiling crop_and_resize kernels by nvcc...
./make.sh: line 12: nvcc: command not found
Traceback (most recent call last):
File "build.py", line 3, in
from torch.utils.ffi import create_extension
File "/Users//opt/anaconda3/lib/python3.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.
Compiling nms kernels by nvcc...
./make.sh: line 20: nvcc: command not found
Traceback (most recent call last):
File "build.py", line 3, in
from torch.utils.ffi import create_extension
File "/Users//opt/anaconda3/lib/python3.7/site-packages/torch/utils/ffi/init.py", line 1, in
raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
What can I da about it?
Downgrading to torch 1.0 does not help (as intended in another issue). Also I dont want to downgrade to 0.4 since the version is too old.
Also I dont know how to change it to torch.utils.cpp_extension.
Regards
I actually like fastai more than fb's stuff but am undecided since they are really good supported. But fastai has the 1-cycle super convergence training etc. and your implementation is just more straight forward than fbs with lots of variables and yaml files...
its also part of torchvision now
(https://github.com/pytorch/vision/blob/master/torchvision/ops/boxes.py)