roytseng-tw / Detectron.pytorch

A pytorch implementation of Detectron. Both training from scratch and inferring directly from pretrained Detectron weights are available.
MIT License
2.82k stars 567 forks source link

sh make.sh errors under pytorch version '1.0'. #171

Open youngwanLEE opened 5 years ago

youngwanLEE commented 5 years ago

System information

Under pytorch '1.0',

sh make.sh

Compiling nms kernels by nvcc... Traceback (most recent call last): File "build.py", line 4, in from torch.utils.ffi import create_extension File "/usr/local/lib/python3.6/dist-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.

This is because ffi was deprecated in Pytorch '1.0'.

Could anyone solve this problem?

wangg12 commented 5 years ago

I have the same problem. @roytseng-tw Do you have a plan to support pytorch 1.0?

SanjunLiu commented 5 years ago

I have the same problem .....

louxy126 commented 5 years ago

the same problem, I use “pip install torch==0.4” instead of ”pip install torch“”。 then, pip install cffi and sh make.sh ,it seems worked well

4ever-Rain commented 5 years ago

I have the same problem when I use the pytorch 1.0.0.

1329844541 commented 5 years ago

I have met same trouble,too.Anyone have way?

lamia482 commented 5 years ago

upload instruction on building for pytorch1.0 view the file in Markdown Editor https://drive.google.com/file/d/1aBGzUgMmCxb8OY0BQ0uCt7PCRvf7CS62/view?usp=sharing

FalkTannhaeuser commented 5 years ago

There is a fork that seems to support PyTorch 1.0: https://github.com/adityaarun1/Detectron.pytorch I have not yet tested it...