[+] Windows setup guide

This commit is contained in:
Hykilpikonna
2021-12-22 23:58:18 -05:00
parent 03ef8d08b5
commit b4daaf0ef1
4 changed files with 59 additions and 38 deletions
+25 -1
View File
@@ -23,9 +23,33 @@ pip3 install -r requirements-mac.txt
plaidml-setup
```
4. Configure environment variables:
4. Configure environment variables in the run script:
```sh
export KERAS_BACKEND="plaidml.keras.backend"
export tg_token="Your telegram token here"
```
### Windows (CUDA)
1. Setup Python
```powershell
python3.9 -m venv venv
.\venv\Scripts\activate
pip install -r requirements-win-cuda.txt
```
2. Install CUDA
* Install NVIDIA Drivers: https://www.nvidia.com/drivers
* Install CUDA **11.2** (for TensorFlow 2.7.0): https://developer.nvidia.com/cuda-toolkit-archive
* Download cuDNN **8.1**: https://developer.nvidia.com/rdp/cudnn-archive
* Copy folders in `cudnn-11.2-windows-x64-v8.1.1.33\cuda` to `C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2`
* Restart IntelliJ IDEA
3. Check Device List
```shell
python -c "from tensorflow.python.client import device_lib; print(device_lib.list_local_devices())"
```