Skip to Content
TissueLab Docs

Installation

Install and start TissueLab Self-Hosted.

Architecture

  1. App
    Desktop window or browser · port 3000
  2. Service
    Slides, tiles, workflows · port 5001
  3. Model nodes
    One conda env each · ports 8001+
  4. GPU
    Dedicated, CUDA preferred

Requirements

Recommended
OSWindows 11, macOS on Apple silicon (M-series), or Linux
ProcessorIntel Core i7 / AMD Ryzen 7 class, 8 cores or more; Apple M-series on Mac
Memory16 GB RAM or more
GraphicsDedicated GPU with 8 GB VRAM; NVIDIA (CUDA) preferred
SoftwareNode.js 24+, Python 3.11 with conda
OptionalDocker, for the Research panel only
  • Intel-based Macs are not supported.
  • The viewer and the service run without a GPU; the model nodes are what need one.

Install and run

Commands are the same on macOS (Terminal, bash) and Windows (PowerShell) unless a step shows two tabs.

Get the code

git clone https://github.com/zhihuanglab/TissueLab.git
cd TissueLab/app

Install the app

npm install
cd render
npm install
cd ..

Set up the Python service

Create the environment first; conda asks for confirmation.

cd service
conda create -n tissuelab python=3.11

Then install the service into it:

conda activate tissuelab
pip install -r requirements-macos.txt
cp .env.example .env.local
cd ..

On Linux, use requirements-linux.txt.

Add slide readers

Needed for .svs, .ndpi and JPEG-2000 TIFF slides.

brew install vips

Start the service

In the app folder. It listens on http://127.0.0.1:5001.

cd service
conda activate tissuelab
python main.py

To check that it is up, open http://127.0.0.1:5001/api/v1/docs in a browser.

Start the app

In a second terminal, also in the app folder.

npm run dev

Other ways to run

GoalCommand
Production-style desktop runnpm run build, then npm start, in app
Browser instead of the desktop windownpm run dev in app/render, then open http://localhost:3000
Service from the app foldernpm run start-backend

Next steps

On this page