NVIDIA
NVIDIA
Notebook for Medical Image Segmentation
Resource
NVIDIA
NVIDIA
Notebook for Medical Image Segmentation

3D-UNet medical image segmentation allows for seamless segmentation of 3D volumes, with high accuracy and performance.

Download the resource

Download the resource manually from top right corner of resource page in this address:

https://ngc.nvidia.com/catalog/resources/nvidia:unet3d_medical_for_tensorflow

Also you can use this wget command:

wget --content-disposition https://api.ngc.nvidia.com/v2/resources/nvidia/unet3d_medical_for_tensorflow/versions/20.06.0/zip -O unet3d_medical_for_tensorflow_20.06.0.zip

Build the U-Net TensorFlow NGC container

This command will use the Dockerfile to create a Docker image named unet3d_tf, downloading all the required components automatically.

docker build -t unet3d_tf .

Download the Dataset

Data can be obtained by registering on Brain Tumor Segmentation 2019 dataset website at this address "https://www.med.upenn.edu/cbica/brats-2019/". The data should be downloaded and placed where /data in the container is mounted.

Run the Container

Start an interactive session in the NGC container to run preprocessing/training/inference. The following command will launch the container and mount the ./data directory as a volume to the /data directory inside the container, and ./results directory to the /results directory in the container.

mkdir data
mkdir results

docker run  -it --gpus=all --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --rm --ipc=host -v ${PWD}/data:/data -v ${PWD}/results:/results  -p 8888:8888 unet3d_tf:latest /bin/bash

Start notebook inside the container:

Use this command to start a jupyter notebook inside the container:

jupyter notebook --ip 0.0.0.0 --port 8888 --allow-root

Move the dataset to the /data directory inside the container

Download the notebook from the top right part of this page or use wget command on top of the page then upload the notebook into the jupyterlab and run the cells of the notebook to preprocess the dataset, train, benchmark and test the model.

NVIDIA uses cookies to improve your experience on our web site. We and our third-party partners also use cookies and other tools to collect and record information you provide as well as information about your interactions with our websites for performance improvement, analytics, and to assist in marketing efforts. By clicking "Accept All", you consent to our use of cookies and other tools as described in our Cookie Policy. You can manage your cookie settings by clicking on "Manage Settings." By continuing to use this site or by clicking one of the buttons below, you agree to our Terms of Service (which contains important waivers). Please see our Privacy Policy for more information on our privacy practices.