Skip to main content
https://travis-ci.com/arraiy/torchgeometry.svg?token=M8pF2LfWb2ZxBDWRRvcP&branch=master

Documentation

The PyTorch Geometry package is a geometric computer vision library for PyTorch.

It consists of a set of routines and differentiable modules to solve generic geometry computer vision problems. At its core, the package uses PyTorch as its main backend both for efficiency and to take advantage of the reverse-mode auto-differentiation to define and compute the gradient of complex functions.

Development Setup

Assuming that you are on ubuntu 16.04, with nvidia-drivers installed.

In bash, source the path.bash.inc script. This will install a local conda environment under ./.dev_env, which includes pytorch and some dependencies (no root required).

source ./path.bash.inc
python -c "import torchgeometry; print(torchgeometry.__version__)"

To install, or update the conda environment run setup_dev_env.sh

./setup_dev_env.sh

Quick Usage

import torch
import torchgeometry as tgm

x_rad = tgm.pi * torch.rand(1, 3, 3)
x_deg = tgm.rad2deg(x_rad)

torch.allclose(x_rad, tgm.deg2rad(x_deg))  # True

Examples

Run our Jupyter notebooks examples to learn to use the library.

Installation

From source:

python setup.py install

Testing

python setup.py test

Cite

If you are using torchgeometry in your research-related documents, it is recommended that you cite the poster.

@misc{Arraiy2018,
 author    = {E. Riba, M. Fathollahi, W. Chaney, E. Rublee and G. Bradski}
 title     = {torchgeometry: when PyTorch meets geometry},
 booktitle = {PyTorch Developer Conference},
 year      = {2018},
 url       = {https://drive.google.com/file/d/1xiao1Xj9WzjJ08YY_nYwsthE-wxfyfhG/view?usp=sharing}
}

Future work

The roadmap will add more functions to allow developers to solve geometric problems.

Contributing

We appreciate all contributions. If you are planning to contribute back bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us.

Metadata

Release files for torchgeometry 0.1.1

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

Source distribution (sdist)

Source distribution for torchgeometry 0.1.1
File Size Uploaded
torchgeometry-0.1.1.tar.gz 21.0 kB Details

Built distribution (wheel)

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

Total release size: 42.7 kB

Release files / torchgeometry-0.1.1.tar.gz

Download URL torchgeometry-0.1.1.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
587957bea48e189c609de84a3537c36557fc2601751040bdab3dcdf4a8dc4d15
BLAKE2b-256 checksum
How to use checksums
99e61a677fe7625fb5db8be304d1a6e3c10f95d0f3ae83ba0f5199cdde87161a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.0

Release files / torchgeometry-0.1.1-py2.py3-none-any.whl

Download URL torchgeometry-0.1.1-py2.py3-none-any.whl
Size 21.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4f61d35cb2827ff2bc83ca54af0f6c3108d9bf18fb17e2ac4f9766edbc285ee8
BLAKE2b-256 checksum
How to use checksums
36cf12f033742afceeb27833bc346d42697f13788f3441631672d8e9bbbe73d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.7.0

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

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