You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

GigaTIME-flash

GigaTIME-flash is a lightweight, efficient variant of GigaTIME. It pairs a GigaPath-flash encoder with a convolutional decoder to translate routine H&E tiles into 21-channel virtual mIF maps.

📄 Paper • Code • License • PyTorch • Microsoft

What is this model?

  • Task: GigaTIME-flash takes in an H&E slide and creates a virtual mIF slide across 21 protein channels.
  • Inputs: The model processes the H&E slide at a tile size of 256×256. The input is a tensor of shape [B, 3, 256, 256].
  • Outputs: The output is the 23-channel spatial proteomics maps (2 are background channels) of shape [B, 23, 256, 256]. The order of protein channels can be found in config.json and in the code.

Quickstart

You need to agree to the terms to access the model. Once you have access, set your HuggingFace read-only token as an environment variable:

export HF_TOKEN=<huggingface read-only token>

Then download and load the model:

import os
import torch
from huggingface_hub import snapshot_download

repo_id = "prov-gigatime/GigaTIME-flash"
local_dir = snapshot_download(repo_id=repo_id)

weights_path = os.path.join(local_dir, "model.pth")
state_dict = torch.load(weights_path, map_location="cpu")
model.load_state_dict(state_dict)

Checkout the scripts/gigatime_flash_testing.ipynb notebook at the GitHub Repo for a full inference example.

Model Uses

Intended Use

The data, code, and model checkpoints are intended to be used solely for (I) future research on pathology AI models and (II) reproducibility of the experimental results reported in the reference paper. The data, code, and model checkpoints are not intended to be used in clinical care or for any clinical decision-making purposes.

Primary Intended Use

The primary intended use is to support AI researchers reproducing and building on top of this work. GigaTIME-flash should be helpful for generating virtual mIF profiles from routine H&E pathology slides.

Out-of-Scope Use

Any deployed use case of the model --- commercial or otherwise --- is out of scope. Although we evaluated the models using a broad set of publicly-available research benchmarks, the models and evaluations are intended for research use only and not intended for deployed use cases.

License Notice

The model is not intended or made available for clinical use as a medical device, clinical support, diagnostic tool, or other technology intended to be used in the diagnosis, cure, mitigation, treatment, or prevention of disease or other conditions. The model is not designed or intended to be a substitute for professional medical advice, diagnosis, treatment, or judgment and should not be used as such. All users are responsible for reviewing the output of the developed model to determine whether the model meets the user's needs and for validating and evaluating the model before any clinical use.

Citation

@article{valanarasu2025multimodal,
  title={Multimodal AI generates virtual population for tumor microenvironment modeling},
  author={Valanarasu, Jeya Maria Jose and Xu, Hanwen and Usuyama, Naoto and Kim, Chanwoo and Wong, Cliff and Argaw, Peniel and Shimol, Racheli Ben and Crabtree, Angela and Matlock, Kevin and Bartlett, Alexandra Q and others},
  journal={Cell},
  year={2025},
  publisher={Elsevier}
}
Downloads last month
51
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support