Installation

We recommend using Docker for reducing compatibility issues.

Docker

  1. Install Docker Engine and make sure to follow the post-install instructions. Otherwise, install Docker Desktop.

  2. If you have a GPU and want to use it to accelerate compute:

    1. Install NVIDIA CUDA Toolkit.

    2. Install NVIDIA Container Toolkit.

  3. 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
    
  4. Check out psifx available commands!

    psifx --all-help
    

Local

  1. Install the following system-wide:

    sudo apt install ffmpeg ubuntu-restricted-extras
    
  2. 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
    
  3. Install psifx:

    pip install 'psifx @ git+https://github.com/psifx/psifx.git'
    

    or

    pip install psifx
    
  4. [Optional] We use OpenFace for face inference in videos. The instructions to install OpenFace are in the Video Processing Guide.

  5. [Optional] Language models are required for the text tools. The installation instructions for each models provider are in the Text Processing Guide.