Documentation
From creating your first project to deploying trained models.
Getting started
Choose your starting point
New project
GoStart fresh with a new segmentation project
- 1. Go to Projects
- 2. Click New Project
- 3. Define ROI classes
- 4. Upload images
Import existing data
Already have annotated masks from other tools
- 1. Create project with matching classes
- 2. Upload images
- 3. Import masks (indexed or RGB)
- 4. Validate palette mapping
Run inference
Use a trained model on new images
- 1. Select project
- 2. Go to Inference tab
- 3. Choose model and dataset
- 4. Review results
Complete workflow
From raw images to exported segmentation results
Create Project
Start by creating a new project to organize your segmentation work.
- ·Navigate to the Projects dashboard
- ·Click the New Project button
- ·Enter a descriptive name for your project
- ·A default background class is created automatically
Define Classes
Set up the ROI classes you want to segment in your images.
- ·Access the Classes tab in your project
- ·Add classes for each region type (e.g., Tumor, Stroma)
- ·Assign distinct colors for visual clarity
- ·Set label values (integers starting from 1)
- ·Mark one class as background (typically label_value=0)
Upload Images & Masks
Add your histology images and optionally import pre-existing masks.
- ·Create a dataset in the Datasets tab
- ·Supported formats: PNG, JPEG, TIFF
- ·Bulk upload multiple images at once
- ·Optional: Import pre-annotated masks
- ·Mask types: Indexed (preferred) or RGB with palette mapping
Annotate Images
Use the annotation editor to label regions of interest.
- ·Open any image in the annotate view
- ·Select a class from the dropdown menu
- ·Use polygon tool: click to add points, close to complete
- ·Edit polygons by dragging points
- ·Delete by selecting and pressing Delete key
- ·Changes auto-save as you work
Train Model
Train a deep learning model on your annotated data.
- ·Go to the Training tab
- ·Select training and validation datasets
- ·Choose a preset: Baseline, Fast Dev, or High Quality
- ·Or customize: epochs, batch size, learning rate, augmentation
- ·Architecture: UNet with configurable encoder
- ·Monitor progress with real-time loss curves
Run Inference
Apply your trained model to segment new images.
- ·Navigate to the Inference tab
- ·Select a trained model from your project
- ·Choose the target dataset to process
- ·Start the inference job
- ·Progress is shown in real-time
Review & Export
Review predictions, make corrections, and export results.
- ·View predicted masks overlaid on original images
- ·ROI table shows measurements: area, perimeter, bounding box
- ·Click any ROI to highlight it on the image
- ·Edit predictions if needed
- ·Export masks, ROI data (CSV), and metrics
Features reference
Detailed documentation of key features
Annotation Tools
Training Options
Supported Formats
Data Management
Technical architecture
How HistoScope is built and deployed
HistoScope is a full-stack platform consisting of a web application for project management, annotation, and result review, backed by a REST API and asynchronous task processing for compute-intensive operations like model training and inference. All data is stored in S3-compatible object storage, with metadata tracked in PostgreSQL.
Data flow
Mask format
FAQ
Quick answers to common questions
.env.example to .env, then run docker compose up -d. The web app is at localhost:3000 and the API at localhost:8000.