Skip to main content

Efficient data loading and visualization for volumes in PyTorch

Project description

torchvtk

PyTorch volume data loading framework Upload Python Package

Installation Instructions

The latest GitHub release is pushed to PyPi: Upload Python Package To get the master run:

pip install git+https://github.com/xeTaiz/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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchvtk-0.2.5.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

torchvtk-0.2.5-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file torchvtk-0.2.5.tar.gz.

File metadata

  • Download URL: torchvtk-0.2.5.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for torchvtk-0.2.5.tar.gz
Algorithm Hash digest
SHA256 cab902bfe7ba1da90af003e2ad1e75536028edabdbdcdff6f8a8a598d87d8b5d
MD5 f5cfc93b7e9a32bfded6109aae623a31
BLAKE2b-256 d1204eb5e31468de91e872dfa6c1f616dc54df72df34e0449bb281dad5168116

See more details on using hashes here.

File details

Details for the file torchvtk-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: torchvtk-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for torchvtk-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e1fcb9cc9251f57009b678bb623d13ffcd35d78585724002314885cad472277e
MD5 7b15ebbbce116b6b556d4f60361d138e
BLAKE2b-256 5424f614755e95834debd9085fc48a7033351fe0428bed629b6876e3a1c48565

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page