xmed-lab / GraphEcho

ICCV 2023, "GraphEcho: Graph-Driven Unsupervised Domain Adaptation for Echocardiogram Video Segmentation"
MIT License
33 stars 3 forks source link

GraphEcho: Graph-Driven Unsupervised Domain Adaptation for Echocardiogram Video Segmentation

:hammer: PostScript

  :smile: This project is the pytorch implemention of [paper];

  :laughing: Our experimental platform is configured with One RTX3090 (cuda>=11.0);

  :blush: Currently, this code is avaliable for public dataset CAMUS and EchoNet;

  :smiley: For codes and accessment that related to dataset CardiacUDA;

      :eyes: The code is now available at:       ``` ..\datasets\cardiac_uda.py


  :heart_eyes: For codes and accessment that related to dataset ***CardiacUDA***

         **:eyes:** Please follw the link to access our dataset:

## :computer: Installation

1. You need to build the relevant environment first, please refer to : [**requirements.yaml**](requirements.yaml)

2. Install Environment:
conda env create -f requirements.yaml
```

:blue_book: Data Preparation

1. EchoNet & CAMUS

2. CardiacUDA

  1. Please access the dataset through : XiaoweiXu's Github
  2. Follw the instruction and download.
  3. Finish dataset download and unzip the datasets.
  4. Modify your code in both:
        ..\datasets\cardiac_uda.py
        and modify the infos and dataset path in
        ..\train_cardiac_uda.py
        # The layer of the infos dict should be :
        # dict{
        #     center_name: {
        #                  file: {
        #                        views_images: {image_path},
        #                        views_labels: {label_path},}}}

:feet: Training

  1. In this framework, after the parameters are configured in the file train_cardiac_uda.py and train_camus_echo.py, you only need to use the command:

    python train_cardiac_uda.py

    And

    python train_camus_echo.py
  2. You are also able to start distributed training.

    • Note: Please set the number of graphics cards you need and their id in parameter "enable_GPUs_id".

#

:rocket: Code Reference
:rocket: Updates Ver 1.0(PyTorch)
:rocket: Project Created by Jiewen Yang : jyangcu@connect.ust.hk