faceswap icon indicating copy to clipboard operation
faceswap copied to clipboard

Cuda 9, CuDNN 7, TensorFlow 1.5 seem to work fine. any reason not to use the latest versions?

Open BeatHarness opened this issue 8 years ago • 20 comments

I'm working on Windows 10. I've installed Cuda 9, CuDNN 7 and TensorFlow 1.5, and everything has been working fine for a week now. I think it's a bit faster, but I have not measured it. Is there any specific reason to linger with Cuda 8 and TF 1.4?

BeatHarness avatar Feb 08 '18 23:02 BeatHarness

I think we should use something like tensorflow-gpu>=1.4.0

gdunstone avatar Feb 08 '18 23:02 gdunstone

@IUsedToBeAPygmy

I too have a set up with CUDA 9, CuDNN 7 and TF 1.5 using Python 3.6 on Win10 64bit and it works great...execpt I can't build dlib with CUDA support against version 9 :(

Have you had joy with this? This is all that is keeping me on v8/6 and TF 1.4...

facepainter avatar Feb 09 '18 04:02 facepainter

I have been using CUDA 9.1, cuDNN 7 and a custom build from TensorFlow master branch without trouble.

Uklosk avatar Feb 09 '18 07:02 Uklosk

I have a commit ready for that:

https://github.com/deepfakes/faceswap/commit/c1ce49ec6277ff20b8e85c30ff3a7fa3d2a90e4a

You can merge it if it's ok for you

Clorr avatar Feb 09 '18 10:02 Clorr

@facepainter i was unable install dlib via pip too. But i sucessfully installed dlib via github https://github.com/davisking/dlib via python setup.py install

shadowzoom avatar Feb 09 '18 11:02 shadowzoom

Not everyone runs Archlinux.

On 9 Feb. 2018 22:45, "dr-benway" [email protected] wrote:

works great on > CUDA9 CuDNN7 TF 1.6.0rc0 Python 3.6.2 Win10 x64

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/deepfakes/faceswap/issues/161#issuecomment-364412421, or mute the thread https://github.com/notifications/unsubscribe-auth/AEDEeMBumKWPOvfNOAx0_rfO-RE5cc5cks5tTC_TgaJpZM4R_Lm3 .

gdunstone avatar Feb 09 '18 11:02 gdunstone

works great on > CUDA9 CuDNN7 TF 1.6.0rc0 Python 3.6.2 Win10 x64 training with GAN128 (increased kernel sizes to 4 in order for them to be divisible by the strides)

dr-benway avatar Feb 09 '18 11:02 dr-benway

@facepainter @shadowfolder check this out for a compiled dlib wheel (19.4.99 py36 win64) > http://www.xavierdupre.fr/app/pymyinstall/helpsphinx/blog/2017/2017-07-10_dlib.html

dr-benway avatar Feb 09 '18 11:02 dr-benway

@dr-benway @shadowfolder - hmm yeah I can download/install and compile it fine...just not with CUDA support.

facepainter avatar Feb 09 '18 12:02 facepainter

facepainter commented 18 minutes ago @dr-benway @shadowfolder - hmm yeah I can download/install and compile it fine...just not with CUDA support.

Can you paste the build log for dlib? I built it successfully against CUDA 9.1

Uklosk avatar Feb 09 '18 13:02 Uklosk

@LordVulkan - Agh sorry didn't save - will try again though and post back...if you say it can be done that is good :) - kept getting errors when building the CUDA test app. From what I'd read people were saying it was not compatible so I gave up....Just to be 100% we are talking about building dlib with CUDA support on Win64 using CUDA 9.1 and cuDNN 7 for Visual Studio 2017? i.e.

cmake -G "Visual Studio 15 Win64" -T host=x64 -DUSE_AVX_INSTRUCTIONS=1 -DDLIB_USE_CUDA=1

facepainter avatar Feb 09 '18 21:02 facepainter

facepainter commented 7 minutes ago • edited @LordVulkan - Agh sorry didn't save - will try again though and post back...if you say it can be done that is good :) - kept getting errors when building the CUDA test app. From what I'd read people were saying it was not compatible so I gave up....Just to be 100% we are talking about building dlib with CUDA support on Win64 using CUDA 9.1 and cuDNN 7 for Visual Studio 2017? i.e.

cmake -G "Visual Studio 15 Win64" -T host=x64 -DUSE_AVX_INSTRUCTIONS=1 -DDLIB_USE_CUDA=1

I'm sorry but I'm on Linux. I just did.

python setup.py bdist_wheel --yes USE_AVX_INSTRUCTIONS

If I remember correctly, it automatically detects CUDA installation and I just had to tell cmake to use gcc-6 via CC and CXX variables.

Uklosk avatar Feb 09 '18 21:02 Uklosk

@IUsedToBeAPygmy can you post comparison benchmarks Cuda 8, CuDNN 6 and TensorFlow 1.4 vs Cuda 9, CuDNN 7 and TensorFlow 1.5 ? for example epochs per minute

iperov avatar Feb 11 '18 06:02 iperov

@dr-benway Are you sure about the dlib version you specify? I don't remember why, but I found at some point that you have to use dlib > 19.7 with the project. (And there is wheel for it with Python 3.6)

Clorr avatar Feb 11 '18 17:02 Clorr

Added PR #183 please review ASAP so that I can merge...

Clorr avatar Feb 11 '18 17:02 Clorr

@Clorr extraction certainly does work on the CPU with the (older) compiled dlib. training works as expected on the GPU.

dr-benway avatar Feb 12 '18 10:02 dr-benway

Just for reference: macOS High Sierra, custom built tensorflow 1.4 with GPU support, built against CUDA 9.1 and CuDNN works ok. Going to take a shot at tensorfow 1.5 with GPU support later today.

k3erg avatar Feb 14 '18 09:02 k3erg

win10, I've installed Cuda 9, CuDNN 7 and TensorFlow 1.5-gpu(pip). compiled dlib with cuda 9 and used faceswap without a problem. Then i thought i should get rid of cuda 8, uninstalled it but after it couldnt import dlib anymore. said couldnt find dll or something. installed cuda 8 again and it started to work again. i read that they can co-exist together, so far no problems.

Jack29913 avatar Feb 14 '18 17:02 Jack29913

@k3erg If you get 1.5 working with GPU on High Sierra, any chance you could type up a quick gist on how? I keep erroring after a few minutes, and can't figure out why.

kylejfrost avatar Feb 16 '18 12:02 kylejfrost