Skip to main content

PyTorch implementation of DSNT

Project description

:warning: I have helped integrate DSNT into Kornia (from v0.1.4). New users are advised to use that implementation instead of this one. Existing users should note that the "normalised" coordinate system differs between the two implementations (see https://github.com/anibali/dsntnn/issues/15).

PyTorch DSNT

This repository contains the official implementation of the differentiable spatial to numerical (DSNT) layer and related operations.

$ pip install dsntnn

Usage

Please refer to the basic usage guide.

Scripts

Running examples

$ python3 setup.py examples

HTML reports will be saved in the examples/ directory. Please note that the dsntnn package must be installed with pip install for the examples to run correctly.

Building documentation

$ mkdocs build

Running tests

Note: The dsntnn package must be installed before running tests.

$ pytest                                 # Run tests.
$ pytest --cov=dsntnn --cov-report=html  # Run tests and generate a code coverage report.

Other implementations

  • Tensorflow: ashwhall/dsnt
    • Be aware that this particular implementation represents coordinates in the (0, 1) range, as opposed to the (-1, 1) range used here and in the paper.

If you write your own implementation of DSNT, please let me know so that I can add it to the list. I would also greatly appreciate it if you could add the following notice to your implementation's README:

Code in this project implements ideas presented in the research paper "Numerical Coordinate Regression with Convolutional Neural Networks" by Nibali et al. If you use it in your own research project, please be sure to cite the original paper appropriately.

License and citation

(C) 2017 Aiden Nibali

This project is open source under the terms of the Apache License 2.0.

If you use any part of this work in a research project, please cite the following paper:

@article{nibali2018numerical,
  title={Numerical Coordinate Regression with Convolutional Neural Networks},
  author={Nibali, Aiden and He, Zhen and Morgan, Stuart and Prendergast, Luke},
  journal={arXiv preprint arXiv:1801.07372},
  year={2018}
}

Project details


Download files

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

Source Distribution

dsntnn-0.5.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

dsntnn-0.5.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file dsntnn-0.5.3.tar.gz.

File metadata

  • Download URL: dsntnn-0.5.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1.post20200515 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4

File hashes

Hashes for dsntnn-0.5.3.tar.gz
Algorithm Hash digest
SHA256 2c99f2435b35170d9661d2d5f593f398be8f1a4347a45bf773edfcaf865bb2b9
MD5 55bcdb575eda28cb95ebf79ea0633516
BLAKE2b-256 eeb2a789ce0572e4f540ea81303cf64c780a46cc65cc943969d838999b3cc0e4

See more details on using hashes here.

File details

Details for the file dsntnn-0.5.3-py3-none-any.whl.

File metadata

  • Download URL: dsntnn-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1.post20200515 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4

File hashes

Hashes for dsntnn-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76a7634a2c23cad892d8c2a445c158724b324a3a651df47ce5b26d262e50afeb
MD5 813d783aeacd39d6fb09e8f0bf4c2e3c
BLAKE2b-256 05f40ac425404c397b7aebebbd2e142d29c13ed9cf7173b378c4e7e6751569d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page