Skip to content

This repository contains source code to synthesize synthetic craniosynostosis distance maps

License

Notifications You must be signed in to change notification settings

KIT-IBT/craniosource-gan-pca-ssm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Craniosource-GAN-PCA-SSM

Overview

This is a repository to use a GAN, PCA, and statistical shape models to create craniosynostosis distance maps, for example for the classification of craniosynostosis on purely synthetic data.

Requirements and installation

We used Python version 3.7, but any reasonably recent version of Python3 should be fine. Create a virtual environment to install the required packages using the requirements file:

# Create the virtual environment
mkdir -p $HOME/.venv
python3 -m venv $HOME/.venv/map_creator

# Activate the environment
source $HOME/.venv/map_creator/bin/activate

# Install the dependencies
pip install -r pip_requirements.txt

Alternatively, the dependencies are listed below and installing them via pip should suffice to re-create the virtual environment.

  • numpy
  • scikit-learn
  • scikit-image
  • vtk
  • torch

Run demo

The python code is cross-platform and should run everywhere. The demo is a simple shell script that just calles the script with different input parametern and should work anywhere where bash can be installed. On Windows, we recommend WSL.

bash ./demo.sh

Alternatively, just take a look at the demo file to figure out how to call the scripts.

License

All source code is subject to the terms of the General Public License 3.0.

About

This repository contains source code to synthesize synthetic craniosynostosis distance maps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published