Efficient data loading and visualization for volumes in PyTorch
Project description
torchvtk
PyTorch volume data loading framework
Documentation
Installation Instructions
The latest GitHub release is pushed to PyPi:
pip install torchvtk
To get the master run:
pip install git+https://github.com/torchvtk/torchvtk.git@master#egg=torchvtk
Optional for DICOM stuff only:
conda create --name "tvtk" python=3.6 && conda activate tvtk
conda install gdcm -c conda-forge
pip install pydicom dicom_numpy h5py numpy matplotlib
If you need DICOM, and thus gdcm, your Python version needs to be <=3.6
Modify tvtk
in the third line (both after --name
and at the end of the line) to your preferred environment name or just add the required packages to your existing environment.
Note that the restriction to Python <= 3.6 is due to gdcm
and higher version should work as well if you don't need DICOM loading capabilities.
Creating the Numpy Files for the HDF 5 File generation.
hdf5/nifiti_crawler.py
This script generates out of the nifti Files of the Medical Decathlon Challenge numpy arrays that contain the images and the segmentation groundtruths.
Creating the HDF5 Files
hdf5/hdf5_crawler.py
This script generates hdf5 Files with different compression techniques. These files contain the image as well as the groundtruth. The image is normalized between [0,1] and is stored in the Float32 Format. The Groundtruth is saved as an Int16 Format. The used compressions are gzip, szip and lzf.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file torchvtk-0.4.2.tar.gz
.
File metadata
- Download URL: torchvtk-0.4.2.tar.gz
- Upload date:
- Size: 39.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbd24341f73e550d7eb6940b3dd2ef5b5e2b915deadf2c977a899b0a71d699ac |
|
MD5 | 70c4d2daeb2c2c207c69497fa722ac3d |
|
BLAKE2b-256 | 47feba66fe0e78ccaa9e7f20c294af362d059f7da44414826eace65ad2552303 |
File details
Details for the file torchvtk-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: torchvtk-0.4.2-py3-none-any.whl
- Upload date:
- Size: 47.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dad0c3fcce60d975393ee83ba5a9acb41af9cfc2c323e324c32fe925301818ed |
|
MD5 | 8665ed9e98290299a25ca2305c7e8db0 |
|
BLAKE2b-256 | 0f87a437aa6f21a9d0b4119702a33b83d6087e7a2acc595074e4b791182407a2 |