Skip to content

Files

Latest commit

b9b4612 · Jun 3, 2024

History

History
42 lines (31 loc) · 1.08 KB

INSTALL.md

File metadata and controls

42 lines (31 loc) · 1.08 KB

Installation

This codebase is tested on Ubuntu 20.04.2 LTS with python 3.10. Follow the below steps to create environment and install dependencies.

  • Setup conda environment (recommended).
# Create a conda environment
conda create -y -n dac python=3.10

# Activate the environment
conda activate dac

# Install torch (requires version >= 1.8.1) and torchvision
# Please refer to https://pytorch.org/ if you need a different cuda version
pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121
  • Install dassl library.
# Instructions borrowed from https://github.com/KaiyangZhou/Dassl.pytorch#installation

# Clone this repo
git clone https://github.com/KaiyangZhou/Dassl.pytorch.git
cd Dassl.pytorch/

# Install dependencies
pip install -r requirements.txt

# Install this library (no need to re-build if the source code is modified)
python setup.py develop
cd ..
  • Install other requirements
# Install requirements
pip install -r requirements.txt

# Update setuptools package 
pip install setuptools==59.5.0