Files
SpeechGenderAnalysis/README.md
T
2021-12-22 23:58:18 -05:00

1.1 KiB

SpeechGenderAnalysis

Setup

MacOS

  1. Create virtual environment:
python3.8 -m venv venv8
source venv8/bin/activate
  1. Install dependencies:
pip3 install -r requirements-mac.txt
  1. Configure plaidml to use GPU:
plaidml-setup
  1. Configure environment variables in the run script:
export KERAS_BACKEND="plaidml.keras.backend"
export tg_token="Your telegram token here"

Windows (CUDA)

  1. Setup Python
python3.9 -m venv venv
.\venv\Scripts\activate
pip install -r requirements-win-cuda.txt
  1. Install CUDA
  1. Check Device List
python -c "from tensorflow.python.client import device_lib; print(device_lib.list_local_devices())"