Getting started#

This page takes you from nothing installed to the VALIDATE window open.

What you need#

  • A computer running macOS, Linux or Windows.

  • git and uv. uv installs Python, VALIDATE and the AI segmentation models.

  • Disk space for the AI model weights (1–3 GB per model).

  • Optional: an NVIDIA GPU (CUDA) or an Apple silicon Mac. Without one, segmentation runs on the CPU, which is slower.

Install#

  1. Open a terminal, go to the folder you want to install into, and create a Python environment:

    uv venv --python 3.11
    source .venv/bin/activate
    
    uv venv --python 3.11
    .venv\Scripts\activate
    
  2. Download and install pyCERR and VALIDATE:

    git clone https://github.com/cerr/pyCERR.git
    uv pip install -e ./pyCERR
    git clone https://github.com/aditiiyer/validate.git
    uv pip install -e ./validate
    
  3. Check that both installed:

    python -c "import cerr, validate; print('ok')"
    

    You should see ok.

Note

Both are installed from their git folders, so each run can record the exact VALIDATE and pyCERR versions used.

Open VALIDATE#

With the environment active, run:

python -m validate

The VALIDATE window opens on the Segment tab:

The VALIDATE window when first opened. The Analysis section at the top has Start from, Data, Plan info, Model and Output. Below it are the Segment, Model and Review tabs, with Segment selected.

Tip

To open VALIDATE with the Data folder already filled in, add the folder to the command: python -m validate /path/to/cohort.

Next steps#