robmacc / objectives

Home Page:https://robmacc.github.io/objectives/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

 ██████╗ ██████╗      ██╗███████╗ ██████╗████████╗██╗██╗   ██╗███████╗███████╗
██╔═══██╗██╔══██╗     ██║██╔════╝██╔════╝╚══██╔══╝██║██║   ██║██╔════╝██╔════╝
██║   ██║██████╔╝     ██║█████╗  ██║        ██║   ██║██║   ██║█████╗  ███████╗
██║   ██║██╔══██╗██   ██║██╔══╝  ██║        ██║   ██║╚██╗ ██╔╝██╔══╝  ╚════██║
╚██████╔╝██████╔╝╚█████╔╝███████╗╚██████╗   ██║   ██║ ╚████╔╝ ███████╗███████║
 ╚═════╝ ╚═════╝  ╚════╝ ╚══════╝ ╚═════╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝╚══════╝

build docs linting testing codecov

Environment

Windows

Install CUDA:

choco install cuda --version 10.1

Install conda:

choco install anaconda3

Install conda dependencies and pip:

conda env create -f environment.yml
conda activate objectives

Install PyTorch requirements:

bash install-torch.sh

Linux

Install CUDA:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-ubuntu1604.pin
sudo mv cuda-ubuntu1604.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/ /"
sudo apt-get update
sudo apt-get -y install cuda

Install conda:

curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh

Install conda dependencies and pip:

conda env create -f environment.yml
conda activate objectives

Install PyTorch requirements:

bash install-torch.sh

Docs and Tests

Build docs with make build-docs, run tests with pytest.

Usage

run from project root with python src/main.py

About

https://robmacc.github.io/objectives/

License:GNU General Public License v3.0


Languages

Language:Python 93.1%Language:Makefile 3.7%Language:Shell 3.3%