Installation
Packages and dependencies
Pixi
Important
This is the recommended method for installing LENS packages and dependencies.
For simplicity and ease of use, we use and highly recommend pixi for package and dependency management. If you have not already installed pixi, please run the following in your command terminal:
curl -fsSL https://pixi.sh/install.sh | bash
The provided pixi.toml and pixi.lock files in the repository handle all packages and dependencies and the operation of all the various functions in LENS.
This documentation focuses on using pixi to run evaluation and training scripts.
Note
You will be prompted to restart your terminal after installation, please do so before proceeding. For more information, visit the pixi documentation.
Conda
Packages and dependencies can also be installed in a conda environment using our maintained conda-forge package. We recommend installing and using micromamba instead of conda by running the following in your command terminal:
"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
Once installed, create a new micromamba environment and install our conda-forge package by running the following in your command terminal:
micromamba create -n lens -c conda-forge lens-vpr
micromamba activate lens
pip install samna
The pip install samna is necessary since this package is not available on conda-forge.
PyPi
Warning
We do not recommend using pip to install dependencies for LENS, please use pixi.
All the packages and dependencies can alternatively be installed from PyPi. Before installing, you will need to ensure that your Python version is <= 3.11.
pip install lens-vpr
Repository cloning
To get the latest release of LENS, ensure you have git installed and clone the repository by running the following in your terminal:
git clone git@github.com:AdamDHines/LENS.git
Then navigate to the LENS project directory:
cd LENS