Installation¶
We recommend using Docker for reducing compatibility issues.
Docker¶
Install Docker Engine and make sure to follow the post-install instructions. Otherwise, install Docker Desktop.
If you have a GPU and want to use it to accelerate compute:
Install NVIDIA CUDA Toolkit.
Install NVIDIA Container Toolkit.
Run the latest image:
export PSIFX_VERSION="X.Y.Z" # Major.Minor.Patch export DATA_PATH="/path/to/data" docker run \ --user $(id -u):$(id -g) \ --gpus all \ --mount type=bind,source=$DATA_PATH,target=$DATA_PATH \ --interactive \ --tty \ psifx/psifx:$PSIFX_VERSION
Check out
psifx
available commands!psifx --all-help
Local¶
Install the following system-wide:
sudo apt install ffmpeg ubuntu-restricted-extras
Create a dedicated
conda
environment following the instructions in that order:conda create -y -n psifx-env python=3.9 pip conda activate psifx-env
Install
psifx
:pip install 'psifx @ git+https://github.com/psifx/psifx.git'
or
pip install psifx
[Optional] We use OpenFace for face inference in videos. The instructions to install OpenFace are in the Video Processing Guide.
[Optional] Language models are required for the text tools. The installation instructions for each models provider are in the Text Processing Guide.