Skip to main content

highresnet

https://img.shields.io/pypi/v/highresnet.svg https://img.shields.io/travis/fepegar/highresnet.svg https://zenodo.org/badge/DOI/10.5281/zenodo.3349989.svg Documentation Status Updates
$ NII_FILE=`download_oasis`
$ deepgif $NII_FILE
3D Slicer screenshot

PyTorch implementation of HighRes3DNet from Li et al. 2017, *On the Compactness, Efficiency, and Representation of 3D Convolutional Networks: Brain Parcellation as a Pretext Task*.

All the information about how the weights were ported from NiftyNet can be found in my submission to the MICCAI Educational Challenge 2019.

Usage

Command line interface

(deepgif) $ deepgif t1_mri.nii.gz
Using cache found in /home/fernando/.cache/torch/hub/fepegar_highresnet_master
100%|███████████████████████████████████████████| 36/36 [01:13<00:00,  2.05s/it]

PyTorch Hub

If you are using pytorch>=1.1.0, you can import the model directly from this repository using PyTorch Hub.

>>> import torch
>>> repo = 'fepegar/highresnet'
>>> model_name = 'highres3dnet'
>>> print(torch.hub.help(repo, model_name))
    "HighRes3DNet by Li et al. 2017 for T1-MRI brain parcellation"
    "pretrained (bool): load parameters from pretrained model"
>>> model = torch.hub.load(repo, model_name, pretrained=True)
>>>

Installation

2. Install PyTorch and highresnet

Within the conda environment:

pip install pytorch highresnet

Now you can do

>>> from highresnet import HighRes3DNet
>>> model = HighRes3DNet(in_channels=1, out_channels=160)
>>>

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.7.1 (2019-11-05)

  • First release on PyPI.

Metadata

Release files for highresnet 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for highresnet 0.10.2
File Size Uploaded
highresnet-0.10.2.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for highresnet 0.10.2
File Interpreter ABI Platform
highresnet-0.10.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 36.6 kB

Release files / highresnet-0.10.2.tar.gz

Download URL highresnet-0.10.2.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
938841caf10306e3bf429e6cb174dc8135b3aaff64967d395151ea8058f23565
BLAKE2b-256 checksum
How to use checksums
cdd8f4330e112607a436ff3c0709825f36fb245cbf24ff1b2a81f433810dbcaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

Release files / highresnet-0.10.2-py2.py3-none-any.whl

Download URL highresnet-0.10.2-py2.py3-none-any.whl
Size 17.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
451b1134868c9d648e8c531bf9bf4c0f2274df90834bb52b245255710192e016
BLAKE2b-256 checksum
How to use checksums
58b61910770261403d95acc22124e358d1ec40fc34d4f235caaab0d73948e564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.10.2 This release

2 release files

0.10.0

1 release file

0.9.2

1 release file

0.9.0

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page