/ Модель

Характеристики

Библиотека
timm
Опубликована
13 авг 2025

gigaheart

Эмбеддинги изображенийИзображение → embedding

GigaHeart — исследовательская vision transformer модель, извлекающая признаки сердца из объёмов КТ грудной клетки для исследований трансплантации сердца и сопоставления размеров сердца.

1скачиваний за 30 дней6лайковвеса обновлены13 авг 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

GigaHeart — специализированная модель компьютерного зрения для анализа сердца на КТ грудной клетки, разработанная Hanwen Xu, Addie Woicik и соавторами. Это vision transformer, предварительно обученный на 180 897 объёмах КТ грудной клетки от 56 607 пациентов с механизмом обучения, который сопоставляет область сердца со всем объёмом грудной клетки, чтобы выделять тонкие кардиальные признаки.

Модель принимает объём КТ в формате TIFF после нормализации интенсивностей и гистограммного выравнивания и выдаёт эмбеддинги изображений. Она предназначена для исследований моделей КТ грудной клетки, сопоставления размеров сердца и воспроизведения результатов статьи; контрольные точки и код доступны для исследовательского использования. Клиническое применение и любые развёрнутые сценарии, коммерческие или нет, выходят за рамки назначения модели. Лицензия в предоставленных данных не указана.

Сценарии применения

  • извлечение эмбеддингов сердца из КТ грудной клетки
  • исследование моделей-основ для кардиальной КТ
  • сопоставление размеров сердца на КТ
  • воспроизведение экспериментов по анализу КТ при трансплантации сердца

Ограничения

Модель предназначена только для исследований и воспроизведения экспериментов; её нельзя использовать для клинической помощи или принятия клинических решений. Для запуска требуется предварительная обработка объёма TIFF; код оценки и сопоставления размеров сердца в карточке обозначен как планируемый к выпуску.

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

GigaHeart

A Cardiac-specific CT Foundation Model for Heart Transplantation

[Model]

Here, we developed GigaHeart, the first heart-specific foundation model pretrained on 180,897 chest CT volumes from 56,607 patients. The key idea of GigaHeart is to direct the foundation model's attention towards the heart by contrasting the heart region and the entire chest, thereby encouraging the model to capture fine-grained cardiac features.

Hanwen Xu, Addie Woicik, Sanaz Asadian, Junbo Shen, Zhengyan Zhang, Ali Nabipoor, J. Peter Musi, Jeffrey Keenan, Maziar Khorsandi, Bassel Al-Alao, Ioannis Dimarakis, Hamid Chalian, Yiing Lin, Daniel Fishbein, Jay Pal*, Sheng Wang*, Shin Lin* (*Corresponding authors)

Model Overview

Overview of heart-aware training in GigaHeart

Install

On an NVIDIA A100 Tensor Core GPU machine, with CUDA toolkit enabled.

  1. Download our code and open the GigaHeart
git clone https://github.com/gigaheart/gigaheart
cd gigaheart
  1. Install GigaHeart and its dependencies
conda env create -f environment.yaml
conda activate gigaheart

Model Download

The GigaHeart models can be accessed from GigaHeart model.

Inference

The GigaHeart model consists of a data preprocessing module and a vision transformer module. We released the pretrained model here with the relevant codes to get output embeddings. We will release more code relevant to evaluation and heart size matching upon publication.

Inference with the GigaHeart model

Takes a .tif file as input, applies min–max normalization (scaling values to 0–1), and performs volume-level histogram equalization.

from utils import process_ct

images, _, _ = process_ct("example/CTseg_1_raw.tif")

Then load the GigaHeart encoder:

import timm
from PIL import Image
from torchvision import transforms
import torch
from torch import nn
from timm.layers import Mlp

gigaheart = timm.create_model("hf_hub:gigaheart/gigaheart", act_layer=nn.GELU, mlp_layer=Mlp, pretrained=True)

class MaybeToTensor(transforms.ToTensor):
    """
    Convert a ``PIL Image`` or ``numpy.ndarray`` to tensor, or keep as is if already a tensor.
    """

    def __call__(self, pic):
        if isinstance(pic, torch.Tensor):
            return pic
        return super().__call__(pic)
    
transform = transforms.Compose(
    [
        transforms.Resize(256, interpolation=transforms.InterpolationMode.BICUBIC),
        transforms.CenterCrop(224),
        MaybeToTensor(),
        transforms.Normalize(mean=(0.485, 0.456, 0.406), std=(0.229, 0.224, 0.225)),
    ]
)

Running inference to extract CT embeddings:

  images_torch = transform(images)

  with torch.no_grad():
      output = gigaheart(images_torch)
      print("Model output:", output.shape)

Model Uses

Intended Use

The data, code, and model checkpoints are intended to be used solely for (I) future research on chest CT foundation models/heart size matching 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.

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.

Usage and License Notices

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.

Acknowledgements

We would like to express our gratitude to the authors and developers of the exceptional repositories that this project is built upon: DINOv2, MAE, Timm, and TorchScale. Their contributions have been invaluable to our work.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · timm · image-feature-extraction

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
4eea9fd

0 моделей