Code Monkey home page Code Monkey logo

transformers_for_hecktor2022_gtv_segmentation's Introduction

Transformers for HECKTOR2022 GTV Segmentation

This repository contains transformer models for the HECKTOR 2022 competition, focusing on the segmentation of head and neck gross tumor volume (GTV). The targets are the primary tumor (GTV-T) and involved lymph nodes (GTV-N).

Segmetation of both GTV-T and GTV-N for head and neck cancer

Transformer Models

The following transformer segmentation networks are experimented with on the HECKTOR2022 competition dataset:

  • UNETR++
  • UNETR
  • SWIN Transformer UNet
  • nnFormer

Data Processing

The "data_processing" directory contains a collection of scripts for an end-to-end DICOM-to-DICOM pipeline.

  • dcm2nii.py: Converts .dcm images and RTSTRUCTS to .nii.gz image and label files. Fuzzy name matching is used to locate both "GTVt" and "GTVn" within the RTSTRUCT file.
  • bounding_box.py: Identifies the region of interest within a 192x192x192 bounding box by locating tumors below the brain in the PET image using a thresholding method.
  • resample.py: Resamples images (CT, PET) and labels (GTV.nii.gz) to 1x1x1 mm^3 isotropic spacing. GTV-T and GTV-N are stored in a single .nii.gz file, with values of 1 for T and 2 for N.
  • resample_ct_test.py: Similar to resample.py but solely resamples CT images. Also include the funciont to revert resample based on the bounding-box information.
  • copy_data_for_nnUNet_Task005_CT.py: A script for data conversion and copying that follows the nnUNet format.
  • nii2dcm.py: Converts .nii.gz GTV files back to .dcm RTSTRUCT files with the naming convention "AI_GTV_T" and "AI_GTV_N". Both names are rendered in yellow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.