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:
- Install conda-pack using the following command or following official documentation.
pip install conda-pack
-
Download videorecap.tar.gz environment.
-
Unzip the environment into a directory.
mkdir -p videorecap
tar -xzf videorecap.tar.gz -C videorecap
- (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.
- Create conda environment:
conda create --name videorecap python=3.8
conda activate videorecap
- Install pytorch with the correct CUDA version.
- Install other packages:
pip install -r requirements.txt
- Install and setup nlg-eval:
pip install git+https://github.com/Maluuba/nlg-eval.git@master
nlg-eval --setup
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