InstallationΒΆ
Installing the appropriate TensorFlow package:
pip install "tensorflow-gpu>=1.13.2, <=1.14"
for TensorFlow with GPU supportpip install "tensorflow>=1.13.2, <=1.14"
for CPU-only TensorFlow
Installing NiftyNet package
Option 1. released version from PyPI:
pip install niftynet
Option 2. latest dev version from source code repository:
git clone https://github.com/NifTK/NiftyNet.git # installing dependencies from the list of requirements cd NiftyNet/ pip install -r requirements-gpu.txt
Alternatively, you can download the code as a .zip file and extract it. Change
requirements-gpu.txt
torequirements-cpu.txt
for a CPU only version.(Optional) Accessing MetaImage format (
.mha/.mhd
files) requires SimpleITK:pip install SimpleITK