-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dcn compile errors #84
Comments
If you are using pytorch 1.5, I think this solution can solve your problem |
Yes, the problem is that mmsr has not been updated to support pytorch 1.5, which is what you get if you install pytorch via anaconda now. There have been several reports of the same problem with the same source files in the mmdetection project; see issue #2513 in that project. This was fixed by releasing version 2.0 of mmdetection; see issue #2618 and 2619. If you look at the revision history of the files deform_conv_cuda.cpp and deform_conv_cuda_kernel.cu in the master branch of mmdetection, you can see what was changed in version 2.0. You cannot simply copy the two source files from mmdetection source tree into mmsr's source directory; there are a few differences between the files. Instead, you can either do a pair-wise compare of the two files and copy across only the relevant changes, or just hand-edit the source files within mmsr's source directory. The changes needed are: In deform_conv_cuda.cpp, change all occurrences of AT_CHECK to TORCH_CHECK. In deform_conv_cuda_kernel.cu, find all of the occurrences of In addition, there appears to be one bug in the second file that has been corrected in mmdetection. In line 821 of the source, an argument list includes "pad_h, pad_h" where mmdetection's version of the code passes "pad_h, pad_w". I changed this to agree with mmdetection. With these changes, the dcn compile succeeds. (Ubuntu 18.04.4 LTS, GCC 7.5.0, Anaconda with Python 3.7.6, CUDA 10.1, Pytorch 1.5. |
It seems to compile for me. I hope they add this fix soon! Thanks for your work Ubuntu 18.04.4 LTS, GCC 7.5.0, python 3.6.9, CUDA 11, Pytorch 1.5 |
Thanks for using MMSR. |
* [Feature] Support SwinIR model * [Feature] Support SwinIR model * [Feature] Support SwinIR model * [Feature] Support SwinIR model * [Feature] Support SwinIR model * [Feature] Support SwinIR model * fix configs * rename * remove testdata * refactor decompression test config * update the readme * [Feature] Support SwinIR model * update random JPEG and noise * update random JPEG and noise * update real sr large config * fix sr configs * fix car and denoising configs * fix random_degradations * fix readme * refactor swinirnet * fix ut * remove files * fix init * fix jpeg comp * fix readme * fix lint * fix ut * fix ut * fix ut Co-authored-by: Z-Fran <1396925302@qq.com> Co-authored-by: Z-Fran <49083766+Z-Fran@users.noreply.github.com>
Trying to compile dcn with
python setup.py develop
produces:The text was updated successfully, but these errors were encountered: