Detectron.pytorch icon indicating copy to clipboard operation
Detectron.pytorch copied to clipboard

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

Open youngwanLEE opened this issue 6 years ago • 7 comments

System information

  • Operating system: Ubuntu 18.04
  • CUDA version: CUDA v10
  • cuDNN version: cuDNN v7.3
  • GPU models (for all devices if they are not all the same): ? V100
  • python version: ? 3.6
  • pytorch version: ? 1.0

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?

youngwanLEE avatar Oct 24 '18 02:10 youngwanLEE

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

wangg12 avatar Oct 26 '18 12:10 wangg12

I have the same problem .....

SanjunLiu avatar Nov 13 '18 09:11 SanjunLiu

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

louxy126 avatar Dec 08 '18 14:12 louxy126

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

4ever-Rain avatar Dec 11 '18 12:12 4ever-Rain

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

1329844541 avatar Jan 19 '19 13:01 1329844541

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

lamia482 avatar Feb 15 '19 01:02 lamia482

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

FalkTannhaeuser avatar Feb 15 '19 09:02 FalkTannhaeuser