Skip to main content
PyPI version https://travis-ci.org/theHamsta/pyronn-torch.svg?branch=master

pyronn-torch

This repository provides PyTorch bindings for PYRO-NN, a collection of back-rotatable projectors for CT reconstruction.

Feel free to cite our publication:

@article{PYRONN2019,
author = {Syben, Christopher and Michen, Markus and Stimpel, Bernhard and Seitz, Stephan and Ploner, Stefan and Maier, Andreas K.},
title = {Technical Note: PYRO-NN: Python reconstruction operators in neural networks},
year = {2019},
journal = {Medical Physics},
}

Installation

From PyPI:

pip install pyronn-torch

From this repository:

git clone --recurse-submodules --recursive https://github.com/theHamsta/pyronn-torch.git
cd pyronn-torch
pip install torch
pip install -e .

You can build a binary wheel using

python setup.py bdist_wheel

Usage

import pyronn_torch

#ConeBeamProjector(volume_shape,
#                  volume_spacing,
#                  volume_origin,
#                  projection_shape,
#                  projection_spacing,
#                  projection_origin,
#                  projection_matrices)
projector = pyronn_torch.ConeBeamProjector(
    (128, 128, 128),
    (2.0, 2.0, 2.0),
    (-127.5, -127.5, -127.5),
    (2, 480, 620),
    [1.0, 1.0],
    (0, 0),
    np.array([[[-3.10e+2, -1.20e+03,  0.00e+00,  1.86e+5],
               [-2.40e+2,  0.00e+00,  1.20e+03,  1.44e+5],
               [-1.00e+00,  0.00e+00,  0.00e+00,  6.00e+2]],
              [[-2.89009888e+2, -1.20522754e+3, -1.02473585e-13,
                1.86000000e+5],
               [-2.39963440e+2, -4.18857765e+0,  1.20000000e+3,
                1.44000000e+5],
               [-9.99847710e-01, -1.74524058e-2,  0.00000000e+0,
                6.00000000e+2]]]) # two projection matrices
)
projection = projector.new_projection_tensor(requires_grad=True)

projection += 1.
result = projector.project_backward(projection, use_texture=True)

assert projection.requires_grad
assert result.requires_grad

loss = result.mean()
loss.backward()

Or easier with PyCONRAD (pip install pyconrad)

projector = pyronn_torch.ConeBeamProjector.from_conrad_config()

The configuration can then be done using CONRAD (startable using conrad from command line)

Download files

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

Source Distribution

pyronn-torch-0.0.8.tar.gz (38.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyronn_torch-0.0.8-cp38-cp38-manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8

pyronn_torch-0.0.8-cp37-cp37m-manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7m

pyronn_torch-0.0.8-cp36-cp36m-manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.6m

pyronn_torch-0.0.8-cp35-cp35m-manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.5m

File details

Details for the file pyronn-torch-0.0.8.tar.gz.

File metadata

  • Download URL: pyronn-torch-0.0.8.tar.gz
  • Upload date:
  • Size: 38.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5

File hashes

Hashes for pyronn-torch-0.0.8.tar.gz
Algorithm Hash digest
SHA256 cf9ede0e3b7e14e9811719e299f67f2a87b0527b952c8302f7585c632d03e788
MD5 b001ba487941f29b53b52287e13331da
BLAKE2b-256 a4cee3731be177ef48dd4621406c30243be7306feb8e6e7ab9a0b1848cd8bd6e

See more details on using hashes here.

File details

Details for the file pyronn_torch-0.0.8-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyronn_torch-0.0.8-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5

File hashes

Hashes for pyronn_torch-0.0.8-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c5faaf91724e2f022ae9f34910183210b6e600045a933897e2f656afdf0083d2
MD5 9c12fa7f049c8890878bfe07f86a1e1b
BLAKE2b-256 811682517077f2f866fb4231b5f044d9baf1370474aa91b3b2cdb9779d278113

See more details on using hashes here.

File details

Details for the file pyronn_torch-0.0.8-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyronn_torch-0.0.8-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5

File hashes

Hashes for pyronn_torch-0.0.8-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1719bb739a2a82a7c650c43dff6bc9126dc613068a5f20b50fe17275459f1e39
MD5 cc19e78da752bc5354b2bc5147e12ace
BLAKE2b-256 e67fad2e353ab6ae13de15704fb57ed42cc82f37b9aee0afdceed6e90e229fe2

See more details on using hashes here.

File details

Details for the file pyronn_torch-0.0.8-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyronn_torch-0.0.8-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5

File hashes

Hashes for pyronn_torch-0.0.8-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b40e837ed4169da9de85cd3441db427cfab6d59287b2a48906b51c203173f42
MD5 d617f745c7de05a0228cea95e77e82c9
BLAKE2b-256 054cdfa59c35224ce5931f4997cc3cdd640ac8066070d3ad56bc63665af203fc

See more details on using hashes here.

File details

Details for the file pyronn_torch-0.0.8-cp35-cp35m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyronn_torch-0.0.8-cp35-cp35m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5

File hashes

Hashes for pyronn_torch-0.0.8-cp35-cp35m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b0d306e0c683283610f4faa3b0e1e8e01061c0d260170337e2730f54f760ffe
MD5 b962ff8bfb1151bb07364c9dce45c33d
BLAKE2b-256 a1ce1a97a2a60af0462186c68566dc69b55af7a3c0ee70134a5af3f2d8adeeaa

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

5 files

0.0.9

5 files

This release

0.0.8 This release

5 files

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

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