jwyang / faster-rcnn.pytorch

A faster pytorch implementation of faster r-cnn
MIT License
7.67k stars 2.33k forks source link

(pytorch v'1.0.0.dev20181113') torch.utils.ffi is deprecated. Please use cpp extensions instead #363

Closed ahmed-shariff closed 5 years ago

ahmed-shariff commented 5 years ago

torch.utils.ffi is deprecated in pytorch version 1.0+

jwyang commented 5 years ago

@ahmed-shariff thanks for reminding! Not this repo now can only support pytorch up to 0.4.0. Will work on the upgrading later.

ahmed-shariff commented 5 years ago

I will see if I can make any changes. The cpp_extention's JIT loader seems like a nice option. Also #289 should help support later versions.

E-Dreamer-LQ commented 5 years ago

Does this program work in pytorch1.0, how to fix the error or replace the error reporting module????

ahmed-shariff commented 5 years ago

Have you looked at https://github.com/pytorch/vision/blob/master/torchvision/models/detection/faster_rcnn.py ?

E-Dreamer-LQ commented 5 years ago

Thank you for your reply . Sorry, I haven't read this yet. Let me have a look. I want to make sure that this problem can still be solved.

E-Dreamer-LQ commented 5 years ago

emmm, @ahmed-shariff could you tell me how to fix it directly. I've only found one way to lower the torch version so far, but that doesn't fit my current situation.

ahmed-shariff commented 5 years ago

I am not sure what is it you are struggling with? If you can give more detail I might be able to help in some way.

E-Dreamer-LQ commented 5 years ago

emmm, the problem I encountered was that "torch.utils.ffi is deprecated. Please use cpp extensions instead" in pytorch1.0.0 ,now I have two choices, one is reducing the torch's version to 0.4, another is address this problem . however, I need to run this program in NVIDIA Jetson xavier , and in Jetson xavier,I can only install torch 1.0.0 , So I need to address the problem that happened in pytorch1.0.0 , do you have some ideas to help me ? Thank you .