Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

TTDG-MGM

> 编程语言
Open source

[CVPR 2025] Test-Time Domain Generalization via Universe Learning: A Multi-Graph Matching Approach for Medical Image Segmentation

100 stars0 likes4 views
WebsiteGitHub

About

[CVPR 2025] Test-Time Domain Generalization via Universe Learning: A Multi-Graph Matching Approach for Medical Image Segmentation

TTDG-MGM

Test-Time Domain Generalization via Universe Learning: A Multi-Graph Matching Approach for Medical Image Segmentation
Xingguo Lv, Xingbo Dong, Liwen Wang, Jiewen Yang, Lei Zhao, Bin Pu, Zhe Jin, Xuejun Li

Official PyTorch implementation of the CVPR 2025 paper (score: 44444)

Features

  • State-of-the-art performance on Retinal Fundus Segmentation and Polyp Segmentation Datasets
  • ⚡ Efficient implementation with Pytorch and Mask-RCNN
  • Easy-to-use training/evaluation scripts
  • Pre-trained models available

Installation

Prerequisites

  • Python ≥ 3.6
  • PyTorch ≥ 1.5 and torchvision that matches the PyTorch installation.
  • Detectron2 == 0.5

Install conda env

bash
conda create -n ttdg python=3.7 -y
conda activate ttdg
pip install -r requirements.txt

Build Detectron2 from Source

Follow the INSTALL.md to install Detectron2.

Quick Start

Data Preparation

  1. The preprocessed data can be downloaded from Google Drive.

  2. Organize the annotations/masks as the COCO annotation format.

json
{
    "images": [
        {"id": 1, "width": 640, "height": 480, "file_name": "000001.jpg"}
    ],
    "annotations": [
        {
            "id": 1,
            "image_id": 1,
            "category_id": 1,
            "segmentation": [[100, 100, 150, 100, 150, 150, 100, 150]],
            "area": 2500,
            "bbox": [100, 100, 50, 50],
            "iscrowd": 0
        }
    ],
    "categories": [
        {"id": 1, "name": "person", "supercategory": "human"}
    ]
}
  1. Organize dataset structure:
txt
datasets/
└── Fundus/
    ├── Drishti_GS/                
    │   ├── test/
    │   │   └── image/                        
    │   └── train/
    │       └── image/                      
    ├── ORIGA/
    ├── RIM_ONE_r3/                             
    ├── REFUGE/                                       
    ├── REFUGE_Valid/
    │   └── image/                                                    
    ├── Drishti_GS_test.json      
    ├── Drishti_GS_train.json
    ├── ORIGA_test.json
    ├── ORIGA_train.json
    └── ...

Test-time Adaptation with Pretrained Models

bash
python train_net.py --eval-only --config configs/test_segment.yaml \
                MODEL.WEIGHTS .pth

Download pre-trained models from Google Drive

Source Model Training

bash
python train_net.py \
      --num-gpus 1 \
      --config configs/seg_res50fpn_source.yaml\
      OUTPUT_DIR output/

Citation

If you use this work in your research or wish to refer to the results published in the paper, please use the following BibTeX entry.

bibtex
@inproceedings{lv2025test,
  title={Test-Time Domain Generalization via Universe Learning: A Multi-Graph Matching Approach for Medical Image Segmentation},
  author={Lv, Xingguo and Dong, Xingbo and Wang, Liwen and Yang, Jiewen and Zhao, Lei and Pu, Bin and Jin, Zhe and Li, Xuejun},
  booktitle={Proceedings of the Computer Vision and Pattern Recognition Conference},
  pages={15621--15631},
  year={2025}
}

Acknowledgement

We gratefully acknowledge the following open-source projects that inspired or contributed to our implementation:

  • ThinkMatch
  • VPTTA
  • ToMo-UDA
  • Detectron2

Issues· 1 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言