-
Notifications
You must be signed in to change notification settings - Fork 13
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
Setting up DCNv2 properly on RTX 4000 series GPUs #16
Comments
Hello, I have solved this problem in C2-matching, I guess it could be similarly solved for DATSR. |
Can you run DATSR normally in your environment?Thank you. |
@heng0607 pip install mmcv-full Because in this line, DATSR/datsr/models/archs/dcn_v2.py Line 14 in 76faa61
mmcv==0.4.4 (which is mmcv-lite now) does not contain ModulatedDeformConv2d, modulated_deform_conv2d , you need to use mmcv-full.Hope helpful! If you run into any problems, feel free to contact me. |
I had already solved the problem before I saw your reply, but thank you for your help |
I am attempting to fine-tune train a reference-based super resolution model with a personal, custom dataset. However, I am unable to properly install and run any of the codebases that depend on the C2-Matching codebase (C2-Matching, DATSR, AMSA , MRefSR) due to the DCNv2 installation process failing.
I consistently run into an error during the step of
where PyTorch is seemingly missing THC/THC.h files (see this pytorch forums thread, and this Github issues comment) that were removed in PyTorch 1.11. So if you need to downgrade to below PyTorch 1.11, then according to the the previous versions page, the latest CUDA version for 1.10.1 is CUDA 11.3. However, the minimum CUDA version supported on RTX 4000 series GPUs is CUDA 11.8. Note that I have tried so many variations of Pytorch versions and CUDA version installations, and nothing has worked so far.
What is the solution to this? How can I get the DCNv2 to compile correctly and have the layer be usable? I would very much like to run barely 1 year old SOTA architectures on the most recent GPUs.
As someone versed in PyTorch but not in CUDA or C++ programming, can I somehow replace this DCNv2 layer with a torchvision layer?
The text was updated successfully, but these errors were encountered: