This is the official documentation for the LFAI lstm model.
The first step is to install python if it is not already installed. Go over to Python and download the latest version.
By default you will have python3 installed. Just check the version by typing the following command python3 --version
and make sure the version is above 3.6
Go into the folder which contains requirements.txt
.
Make sure to check if your computer has a NVIDIA gpu that supports CUDA. If your computer does not support CUDA we will use the CPU version.
You can execute the following command to install the requirements for an NVIDIA gpu.
python -m pip install -U -r requirements.txt
You can execute the following command to install the requirements for a CPU.
python -m pip install -U -r requirements_cpu.txt
Check if your computer has a NVIDIA gpu by typing this command into the Terminal nvidia-smi
. If it returns Command 'nvidia-smi' not found
you do not have an NVIDIA gpu installed or the drivers are not properly installed.
You can execute the following command to install the requirements for an NVIDIA gpu.
./install.sh
You can execute the following command to install the requirements for a CPU.
./install_cpu.sh
This is the end you did it! Now you can move on to the Next Section!