Command-line tool to perform MRI upsampling via SRGANS
Project description
Braingan3d Software Release
Usage
The usage of this software is relatively simple,
brainsgan input_file output_file
The input_file
and output_file
files can be either path to NIFTI images
(with extension either .nii
or .nii.gz
) or to a file (normally in the
.txt
format) containing a list of images. For the upsampling for more
than on file, the second form is preferred, as it avoids loading the model onto
the GPU over and over again.
It is possible to choose the network used with the -n/--network
flag. E.g.,
brainsgan LR_scan.nii.gz SR_scan.nii.gz --network dHCP
Recommended settings
This code does not take advantage of more than one GPU. Thus, used in a
multi-GPU system, it is recommended to add the CUDA_VISIBLE_DEVICES
before
running the code
CUDA_VISIBLE_DEVICES=<GPU_to_be_used> brainsgan input_file output_file
It is also possible to use only the CPU by leaving GPU_to_be_used
empty.
Runtime
Running on a single Nvidia P100, the upsampling takes roughly one second per scan and roughtly 4s on the CPU.
Developer Information
Build
The following information is only useful for individuals who are actively contributing to the program.
We use setuptool and wheel to build the distribution code. The process is described next. More information can be found here.
- Be sure that setuptools, twine, and wheel are up-to-dated
python3 -m pip install --user --upgrade setuptools wheel twine
- Run the build command
python3 setup.py sdist bdist_wheel
- Upload the package to pip
python3 -m twine upload dist/*
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 brainhance-0.0.1.tar.gz
.
File metadata
- Download URL: brainhance-0.0.1.tar.gz
- Upload date:
- Size: 8.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63b788d3417ae8dab615d7b59477e9f3f89e5f14a733e9b8a32c8de1d72f9052 |
|
MD5 | dd4c7f3875ddd4c883ae742ec86fc0b1 |
|
BLAKE2b-256 | 24b3cbd4ea731fef8fb12200f76d57ac31df4afa6ca3faf90ff79e16098fdeb8 |
File details
Details for the file brainhance-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: brainhance-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7eeea9ee511bfc38aa358162687ed25b9bce67de4d13f25ccda4fdb833c1c42 |
|
MD5 | 3490c4f6ff992a2e6459838e5bb9e937 |
|
BLAKE2b-256 | 3254f1c74b630fa787e5eda10ae8fd9db5a44932745dd92c4f2ec406c728fb88 |