Install using Conda-Pack

April 8, 2024 ยท View on GitHub

The easiest way to install Video ReCap is using conda-pack with our provided videorecap.tar.gz environment. Here are the steps:

  1. Install conda-pack using the following command or following official documentation.
pip install conda-pack
  1. Download videorecap.tar.gz environment.

  2. Unzip the environment into a directory.

mkdir -p videorecap
tar -xzf videorecap.tar.gz -C videorecap
  1. (a) Activate the environment, and conda-unpack.
source videorecap/bin/activate
conda-unpack

Or, 4. (b) Copy the environment to your anaconda 'envs' directory, activate the environment, and conda-unpack.

mv videorecap ANACONDA_DIRECTORY/envs
conda activate videorecap
conda-unpack

Manual Installation

Alternatively, you can install Video ReCap using the following steps.

  1. Create conda environment:
conda create --name videorecap python=3.8
conda activate videorecap
  1. Install pytorch with the correct CUDA version.
  2. Install other packages:
pip install -r requirements.txt
  1. Install and setup nlg-eval:
pip install git+https://github.com/Maluuba/nlg-eval.git@master
nlg-eval --setup

(N.B.){\color{red}(N.B.)} Currently, nlg-eval --setup is not working because some files have been deleted from their server. Alternatively, you can download our provided nlgeval.zip file and copy to your environment site-packages.

unzip nlgeval.zip
mv nlgeval ANACONDA_DIRECTORY/envs/videorecap/lib/python3.8/site-packages