Installation¶
This guide covers installation for all AGI projects.
Prerequisites¶
- Python 3.11+ (3.12 recommended)
- Node.js 18+ (for frontends)
- conda or uv for environment management
- Git for version control
HEDit¶
From PyPI (Recommended)¶
From Source¶
# Clone the repository
git clone https://github.com/Annotation-Garden/hedit
cd hedit
# Create environment
conda create -n hedit python=3.12
conda activate hedit
# Install in development mode
pip install -e ".[dev]"
# Or with uv
uv sync
Verify Installation¶
API Key Setup¶
HEDit requires an OpenRouter API key:
Or set the environment variable:
Image Annotation¶
Clone and Install¶
# Clone the repository
git clone https://github.com/Annotation-Garden/image-annotation
cd image-annotation
# Create environment
conda create -n torch-312 python=3.12
conda activate torch-312
# Install
pip install -e ".[dev]"
Frontend Setup¶
Run Services¶
# Backend (from project root)
python -m image_annotation.api
# Frontend (from frontend/)
npm run dev
Environment Configuration¶
Both projects support environment variables for configuration. Create a .env file:
Docker¶
Both projects support Docker for containerized deployment:
Development Tools¶
Both projects use consistent tooling:
| Tool | Purpose | Config File |
|---|---|---|
| ruff | Linting & formatting | pyproject.toml |
| pytest | Testing | pyproject.toml |
| pre-commit | Git hooks | .pre-commit-config.yaml |
| mypy | Type checking | pyproject.toml |
Install pre-commit hooks:
Troubleshooting¶
Common Issues¶
Connection refused to API
Check that the API server is running and the URL is correct:
HED validation errors
Ensure you're using a supported schema version (8.3.0, 8.4.0).
Getting Help¶
- HEDit Issues: GitHub Issues
- Image Annotation Issues: GitHub Issues