vt-vl-lab / 3d-photo-inpainting

[CVPR 2020] 3D Photography using Context-aware Layered Depth Inpainting
https://shihmengli.github.io/3D-Photo-Inpainting/
Other
6.9k stars 1.11k forks source link

RTX 3XXX Series Not Supported #130

Closed 78Alpha closed 2 years ago

78Alpha commented 3 years ago

Thought to give my new GPU test on BMD mixed with 3DP but noticed some suspicious slowness, a process that should have taken 10 minutes was taking 7 hours. I worked down the list of why and thought to test BMD on its own, and sure enough, it provided the information I needed. It gives a warning that the RTX 3070 in my system has a newer compute version than is supported, and instead of defaulting to my RTX 2060 (this is supported and works in seconds), it defaults to a single CPU thread (1/16).

The same issue is found in 3DP, but 3DP does not report the issue like BMD does, it instead just tries to move forward.

conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c conda-forge

on the pytorch page makes the card work and the results are not altered by the change

powernic commented 3 years ago

@78Alpha I have built a docker container for my RTX3070 card and it works great on WSL, you can try using https://github.com/powernic/docker_3d-photo-inpainting

yunhhp12 commented 3 years ago

@78Alpha This helped me a lot thanks!

vgaggia commented 3 years ago

Hey, i'm trying to get this to work, i'm using a 30xx series card as well, but in docker i'm getting RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx I do obviously have my drivers installed i've used wsl to do some stuff in the past with other repos, but i just can't get thiis repo to work

powernic commented 3 years ago

@vgaggia What OS build version do you have? https://docs.nvidia.com/cuda/wsl-user-guide/index.html

2.1. WSL 2 System Requirements Ensure you are registered on Windows Insider Program and subscribing to the Dev Channel and OS build is 20145 or later. We recommend at least OS 21390 or higher for latest features and performance updates. Windows 11 is supported. Refer to Windows 11 system requirements. Ensure the WSL Kernel installed is the latest version or at least 4.19.121+. Once again, we recommend 5.10.16.3 or later for better performance. WSL2 GPU acceleration will be available on Pascal and later GPU architecture on both GeForce and Quadro product SKUs in WDDM mode. It will not be available on Quadro GPUs in TCC mode or Tesla GPUs yet.

vgaggia commented 3 years ago

I'm running windows 11 build 22000

powernic commented 3 years ago

@vgaggia What version of linux are you using in wsl? Does the card work in wsl? has the driver been installed in linux according to the instructions? https://docs.nvidia.com/cuda/wsl-user-guide/index.html

vgaggia commented 3 years ago

So i decided to just ditch wsl and setup a bare metal ubuntu system, i setup the default 3dp with the updated cudatoolkit for 30 series and i'm now getting Segmentation fault (core dumped), btw i'm using a rtx 3060 non ti.

Screenshot from 2021-08-17 23-33-51

(edit) Is there no way to emulate older versions of cuda i wonder?

austinask commented 2 years ago

Did you ever solve this? I have the same error

vgaggia commented 2 years ago

No i think i ended up just using google collab unfortunately.

austinask commented 2 years ago

Thanks for the response, I had ended up doing the same.