O2 is a high-performance computing platform based on Linux, located at Harvard Medical School. The platform is managed by the Research Computing Group, part of HMS IT. See the O2 documentation website for platform-wide details (accounts, SLURM scheduling, storage quotas).
O2 does not support Docker, so this repository must be installed with the
non-Docker uv workflow described in
install_local.md, adapted to O2's module system and job scheduler:
- Log in to O2 and start an interactive session with a GPU if you need one for training
(see the O2 docs for current
srun/sbatchGPU-partition syntax). - Load a Python 3.12-compatible toolchain via
module load, then installuvper theuvinstallation guide. - Clone the repository and sync dependencies:
git clone git@github.com:ccb-hms/computervision.git cd computervision uv sync --frozen - Install Detectron2 the same way as in
install_local.md, from source:This requires a working CUDA toolchain in your loaded modules; consult O2's GPU documentation if the build fails.uv run python -m pip install --no-build-isolation "git+https://github.com/facebookresearch/detectron2.git" - Copy
envto.envand setDATA_DIRto a path on O2 storage you have write access to and sufficient quota for (dental X-ray datasets and model checkpoints are large) — see environment-variables.md. - Run Jupyter Lab through O2's Open OnDemand portal, or
start it manually in your interactive session with
uv run jupyter laband tunnel the port over SSH, per O2's Jupyter documentation.
Because module names, GPU partitions, and portal URLs change over time, treat the O2 platform docs linked above as authoritative for anything not specific to this repository.
