pytorch-segmentation-toolbox icon indicating copy to clipboard operation
pytorch-segmentation-toolbox copied to clipboard

raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.") ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.

Open karlcao opened this issue 5 years ago • 6 comments

I follow the guidance, but pytorch1.0 do not support torch.utils.ffi. I can not run the code

karlcao avatar Nov 20 '19 13:11 karlcao

can not from torch.utils.ffi import _warp

karlcao avatar Nov 20 '19 13:11 karlcao

你好,请问单张gpu是不是可以直接用nn.BatchNorm2d,然后DataParallelModel(deeplab),,DataParallelCriterion(criterion)这两句都可以不要对吧

swjtulinxi avatar Jun 28 '20 01:06 swjtulinxi

还有你这个代码当中的模型中输出两个值下,x和dsn,dsn用于辅助损失函数,像pspnet那样,但计算loss时并没有把dsn考虑进去

swjtulinxi avatar Jun 28 '20 02:06 swjtulinxi

can not from torch.utils.ffi import _warp

how do you solve the problem?I have the same problem with you.

eternaldolphin avatar Jan 16 '21 08:01 eternaldolphin

1.find the following sentence: from torch.utils.ffi import create_extension change it to : from torch.utils.cpp_extension import BuildExtension 2. find the following sentence: ffi = create_extension(…) change it to: ffi = BuildExtension(…)

skyler9901 avatar Feb 26 '22 08:02 skyler9901

这个好像并不能解决问题

fachengxionglxq avatar Apr 03 '22 02:04 fachengxionglxq