Apache License 2.0

项目介绍

baumgach/acdc_segmenter 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Apache License 2.0 许可证,目前获得 110 个 Star、37 次 Fork。

仓库全名
baumgach/acdc_segmenter
开源许可证
Apache License 2.0
Star 数
110
Fork 数
37
未关闭 Issue
4

README 摘要

This repository contains code to train state-of-the-art cardiac segmentation networks as described in this paper: An Exploration of 2D and 3D Deep Learning Techniques for Cardiac MR Image Segmentation. The modified U-Net architecture achieved the 3rd overall rank at the MICCAI 2017 ACDC Cardiac segmentation challenge. Authors: Christian F. Baumgartner (email) Lisa M. Koch (email) If you find this code helpful in…

完整内容见 GitHub 原始 README 或本页 。

常见问题

acdc_segmenter 用什么语言开发?

主要使用 Python 编写,采用 Apache License 2.0 许可证,目前有 110 个 Star。

acdc_segmenter 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 acdc_segmenter 的源码?

可以直接克隆仓库:git clone https://github.com/baumgach/acdc_segmenter.git,默认分支为 master;安装与运行步骤见仓库 README。

acdc_segmenter 最近还在维护吗?

仓库最近一次更新为 2022年11月22日,当前有 4 个未关闭 Issue;Star 数为 110,可作为社区活跃度的参考。

关于

Public code for our submission to the 2017 ACDC Cardiac Segmentation challenge

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
191
价值分
77
活跃状态
活跃

README

This repository contains code to train state-of-the-art cardiac segmentation networks as described in this paper: An Exploration of 2D and 3D Deep Learning Techniques for Cardiac MR Image Segmentation. The modified U-Net architecture achieved the 3rd overall rank at the MICCAI 2017 ACDC Cardiac segmentation challenge.

Authors:

  • Christian F. Baumgartner (email)
  • Lisa M. Koch (email)

If you find this code helpful in your research please cite the following paper:

@article{baumgartner2017exploration,
  title={An Exploration of {2D} and {3D} Deep Learning Techniques for Cardiac {MR} Image Segmentation},
  author={Baumgartner, Christian F and Koch, Lisa M and Pollefeys, Marc and Konukoglu, Ender},
  journal={arXiv preprint arXiv:1709.04496},
  year={2017}
}

Pre-trained weights

Pretrained weights for the best performing method can be found here: https://git.ee.ethz.ch/baumgach/acdc_pretrained_weights

It was not possible to upload all experiments due to size limits. However, the pretrained weights for the other experiments can be requested via email from [email protected].

Requirements

  • Python 3.5 (tested with Python 3.5.3)
  • Tensorflow (tested with tensorflow 1.12)
  • The package requirements are given in requirements.txt

Getting the code

Clone the repository by typing

git clone https://github.com/baumgach/acdc_segmenter.git

Installing required Python packages

Create an environment with Python 3.5. If you use virutalenv it might be necessary to first upgrade pip (pip install --upgrade pip).

Next, install the required packages listed in the requirements.txt file:

pip install -r requirements.txt

The tensorflow packages are not part of the requirements file because you may want to toggle the CPU and GPU version. For the GPU version type

pip install tensorflow-gpu==1.12

If you want to use the CPU version use the following command.

pip install tensorflow==1.12

If you want to go back and forth between GPU and CPU it probably makes sense to make two separate environments which are identical except for the tensorflow version.

Download the ACDC challenge data

If you don’t have access to the data already you can sign up and download it from this webpage.

The cardiac segmentation challenge and the data is described in detail here.

Running the code locally

Open the config/system.py and edit all the paths there to match your system.

Next, open train.py and, at the top of the file, select the experiment you want to run (or simply use the default).

To train a model simpy run:

python train.py

WARNING: When you run the code on CPU, you need around 12 GB of RAM. Make sure your system is up to the task. If not you can try reducing the batch size, or simplifying the network.

In system.py, a log directory was defined. By default it is called acdc_logdir. You can start a tensorboard session in order to monitor the training of the network(s) by typing the following in a shell with your virtualenv activated

tensorboard --logdir=acdc_logdir --port 8008

Then, navigate to localhost:8008 in your browser to open tensorboard.

At any point during the training, or after, you can evaluate your model by typing the following:

python evaluate acdc_logdir/unet3D_bn_modified_wxent

where you have to adapt the line to match your experiment. Note that, the path must be given relative to your working directory. Giving the full path will not work.

Running the code on the ETH CVL (Biwi) GPU infrastructure:

Instructions for setting everything up to run this code on the Biwi GPU infrastructure can be found here.

Don’t forget to change the at_biwi option in config/system.py!

Known issues

None at the moment

评论

暂无评论