Efficient data loading and visualization for volumes in PyTorch
Project description
# torchvtk PyTorch volume data loading framework
## Installation Instructions ` 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
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.2.4.tar.gz
.
File metadata
- Download URL: torchvtk-0.2.4.tar.gz
- Upload date:
- Size: 18.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 638a3f000b31440eae9634e772757a595aad26ae0f9b4e45831167a36ea0d23b |
|
MD5 | 6d3c5528b1c648b354530c538b3caab8 |
|
BLAKE2b-256 | a58fa791e53ffd99af75ad95dfb45193dd3d44b1d0160c3f8d9d940f251f0909 |
File details
Details for the file torchvtk-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: torchvtk-0.2.4-py3-none-any.whl
- Upload date:
- Size: 24.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83f51c6ee7ce89dbd6d28df96bb332e495810ab663f69caadc1a1b5cc4ce333b |
|
MD5 | 19d9f0f37f4a5ff7d029cb42aa9723dd |
|
BLAKE2b-256 | 2c11da08adfe753f2ff7b1036c6cd9b8b3581aa44f0d2b07095d1b3a521f819d |