DCNv2 can not built on pytorch1.0
See original GitHub issue from ._ext import dcn_v2 as _backend
ModuleNotFoundError: No module named 'models.networks.DCNv2._ext'
the DCNv2 can not be built on pytorch 1.0.
Traceback (most recent call last):
File "build.py", line 3, in <module>
from torch.utils.ffi import create_extension
File "/usr/local/lib/python3.6/dist-packages/torch/utils/ffi/__init__.py", line 1, in <module>
raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.")
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
Any fix on this?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (2 by maintainers)
Top Results From Across the Web
torch.backends — PyTorch 1.13 documentation
Returns whether PyTorch is built with CUDA support. Note that this doesn't necessarily mean CUDA is available; just that if this PyTorch binary...
Read more >DCNv2 - Python Package Health Analysis - Snyk
Based on project statistics from the GitHub repository for the PyPI package DCNv2, we found that it has been starred 1,144 times, and...
Read more >Dcnv2 github
I run Linux Mint 18 with preinstalled python-2 ImportError: No module ... 很久没写文章了,今天写换工作后的第一篇文章在win10+pytorch1.7下编译DCNv2这个东东。
Read more >Dcnv2 github
Known Issues: Gradient check w.r.t offset (solved) Backward is not reentrant (minor).. Keras-DCNv2 - Deformable Convolutional Networks v2 ...
Read more >Git pytorch
0. Community. multiline latex "PyTorch Deep Learning: a 60-minute Quick Start" is ... PyTorch is an open-source machine learning library based on the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, Thanks for your interests again. You can check the Pytorch1.0 DCNv2 from the original repo https://github.com/CharlesShang/DCNv2 . Remember also to disable cudnn BN for pytorch 1.0. Our preliminary result on pytorch 1.0 is about 0.4 AP lower than pytorch 0.4.1 (for ctdet_coco_dla_1x). Not sure if this is due to randomness or internal difference between the two versions. Other experiments are not fully tested in pytorch 1.0. You can still test with our pretrained model on pytorch 1.0.
You can
vim ~/anaconda3/lib/python3.6/site-packages/torch/nn/functional.pyorvim ~/anaconda3/envs/ENV_NAME/lib/python3.6/site-packages/torch/nn/functional.py(if you use conda environment) And changetorch.backend.cudnn.enabledtoFalsein line1623.