Installing Tensorflow-GPU and Keras for R (and Python) on Windows in 2024
Installation & Hardware Guide for running Deep Neural Networks (DNNs) in R on Windows with graphics card acceleration Download the lab here: http://tinyurl.com/mv690/lab/9 Download data here: http://tinyurl.com/mv690/lab/9/data Shortcut to this video: http://tinyurl.com/mv690/v/dnn2 # Packages that play ball in 2024 with NVIDIA graphics card acceleration on Windows: Anaconda 2022.10 + Python 3.9.13 + Tensorflow 2.10.1 + cuDNN 8.1.0 + CUDAtoolkit 11.2 + R 4.3.3 + Keras(R) 2.13 # Installation code for Anaconda3 Prompt to install Tensorflow, cuDNN and CUDAtoolkit: C:\ProgramData\Anaconda3\python.exe -m pip install --upgrade pip pip install "tensorflow=2.10.1" ... or use "smaller than" 2.11. Youtube does not allow this symbol here. conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0 # Install Keras in R required only once: install.packages("keras") # Use Anaconda3 environment from R, needs to be called every time before running a DNN: library(keras) use_condaenv("base", required=T) # Check if graphics card (GPU) is detected: library(tensorflow) tf$python$client$device_lib$list_local_devices() # Troubleshooting: tf_config() # Check if Python 3.9 or 3.10? Tensorflow 2.10? system("nvidia-smi") # Check if graphics card driver up to date?
Download
0 formatsNo download links available.