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/*
Metadata
Release files for brainhance 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| brainhance-0.0.1.tar.gz | 8.3 MB | Without provenance | Details for brainhance-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| brainhance-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for brainhance-0.0.1-py3-none-any.whl |
Total release size: 16.5 MB
Release files / brainhance-0.0.1.tar.gz
| Download URL | brainhance-0.0.1.tar.gz |
|---|---|
| Size | 8.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63b788d3417ae8dab615d7b59477e9f3f89e5f14a733e9b8a32c8de1d72f9052
|
|
BLAKE2b-256 checksum How to use checksums |
24b3cbd4ea731fef8fb12200f76d57ac31df4afa6ca3faf90ff79e16098fdeb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / brainhance-0.0.1-py3-none-any.whl
| Download URL | brainhance-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7eeea9ee511bfc38aa358162687ed25b9bce67de4d13f25ccda4fdb833c1c42
|
|
BLAKE2b-256 checksum How to use checksums |
3254f1c74b630fa787e5eda10ae8fd9db5a44932745dd92c4f2ec406c728fb88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for brainhance 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.