Skip to content

Installation Guide

Can be used as a library on all OS's, but to properly use the package entirely, best to use on a machine running a Debian-based distribution with systemd and NVIDIA drivers.

Prerequisites

Dependencies

Installation

# Clone CLAH Image Analysis repository
git clone https://github.com/thicclatka/CLAH_IA.git

# cd to CLAH IA directory
cd /path/to/CLAH_IA

# create conda environment
# yaml here is based on caiman's
conda env create -f environment.yml -n caiman
conda activate caiman

# Install package
# will also install dependencies listed above
pip install -e "/path/to/CLAH_IA[all]"

Library Mode

# to use as a library without GPU support
pip install git+https://github.com/thicclatka/CLAH_IA

# to use as a library with GPU support
pip install git+https://github.com/thicclatka/CLAH_IA[all]

Persistent web application setup

If program is running on a machine running Linux with systemd, you can set up the web applications to run as system services. This allows them to start automatically on boot and be managed by systemd.

To do this, navigate to the root directory of the CLAH_IA repository and run the setup.sh script:

cd /path/to/CLAH_IA
chmod +x setup.sh
./setup.sh

This script will typically perform the following actions:

  • Create systemd service files for the web applications.
  • Store files in config directory (~/.clah_ia/)
  • Provide instructions on:
    • How to reload systemd daemon
    • Start the services
    • Enable services to start on boot up

Make sure to inspect the SystemdServices directory in the repo if you want to understand the exact commands being run or if you need to customize the setup.