Torchgeometry

Latest version: v0.1.2

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.2

Package
=======
- Migrated the project to Arraiy Open Source Organization: https://github.com/arraiyopensource/torchgeometry. 48ad11f39f69be95fe35c164414ad58e0034f5d4
- Update with support of PyTorch v1.0.1. In fact, we test each time against nightly builds. 5c9d9ae1ccf13fc2381d62be6f5b4c81c265608b
- Fix issue with pip package PyTorch minimal version. Now we require at least v1.0.0. 6e16734d68074f22fb67a8b1c4418e4917e5b1f1
- Package version file is auto-generate and too keep tracked ``sha``. f337b3c131b2482a961f5aa895a9b344814bff5a
- Added codecov support to keep tracked tested code. e609b2112f25806d02364681d57a29b977950f59

Breaking Changes
===============
- Refactor ``DepthWarper`` API - now accepts ``PinholeCamera`` objects as parameters:
python
>>> pinholes camera models
>>> pinhole_dst = tgm.PinholeCamera(...)
>>> pinhole_src = tgm.PinholeCamera(...)
>>> create the depth warper, compute the projection matrix
>>> warper = tgm.DepthWarper(pinhole_dst, height, width)
>>> warper.compute_projection_matrix(pinhole_src)
>>> warp the destionation frame to reference by depth
>>> depth_src = torch.ones(1, 1, 32, 32) Nx1xHxW
>>> image_dst = torch.rand(1, 3, 32, 32) NxCxHxW
>>> image_src = warper(depth_src, image_dst) NxCxHxW


New Features
===========
- Added new ``PinholeCamera`` API to represent pinhole camera models. b6ec592bc4d00ba942d0f3d2085534acdefd783f
![pinhole_model](https://user-images.githubusercontent.com/5157099/54354104-1847c800-4656-11e9-9fad-867cbcd67fa7.png)
- Refactor and moved code from ``conversions.py`` and created a dedicated module for linear transforms ``transformations.py``. a1c25b1c5e3a5ac4e5109ea0e1b7256ba8e4ee56
- ``boxplus_transformation``, ``boxminus_transformation``, ``inverse_transformation``, ``transform_points``.
- Added a collection of losses:
- Image: SSIM f08812168984174d6054c5b21298963cdf421cd8
- Depth: InverseDepthSmoothnessLoss 42a1d22df0691444664c182eae7fc10acaa428cc
- Semantic segmentation:
- ``Diceloss`` 9b0fddf9055cb9a948856d087b52073551c44129
- ``TerskyLoss`` 89246d269739f89ed0731f52ff543863882efa48
- ``FocalLoss`` ffe4cb1b74ecb81baef05f97fe6c62f176336fd7
- Added ``SpatialSoftArgmax2d`` operator to extract 2D coordinates from probability maps. cf7bb292dbe19242e0b207a8747da601a27e4cf3
- Added ``extract_tensor_patches`` routine similar to ``tf.extract_image_patches`` but for multidimensional tensors instead of images. f60fa57b4dcf9462e443ee71bf571cc6e31a7939
- Added ``boxplus_transform`` and ``boxminus_transform`` to compose or compute relative pose functions. e0882ea32bb13e62275b678ddb60915058397d35

Bug Fixes
========
- Fixed ``DepthWarper`` in order to accept mini-batch computation. 7175b4f93f5cb855eb8ab4011c33e79cb32bf3fa
- Added missing tests for ``warp_affine``. 57cbd29aa291dc0cf60e6cff6b0665c91db39330
- Fixed and refactored ``quaternion_to_axis_angle`` and ``axis_angle_to_quaternion`` to avoid nans. 4aa0bca9cd2ab95b3edb7d043ff16d473b2e04b7

Test
====
- Updated code with python typing: https://docs.python.org/3/library/typing.html to perform static analysis tests using MyPy: http://mypy-lang.org 3c02b58e1d4de3e7583020c332a7b982c9e97d74
- Added pytest fixtures to split between CPU/CUDA tests. Additionally, we added Makefile commands to launch the tests. 1aff7f65d6535e88abc0d5383846be75d37e4af9
- Improved ``InversePose`` tests. d6a508c7600e5e464d6910028f7771f8d18fe722
- Improved ``HomographyWarper`` tests. 43bd8c2ea669d89d57a063998b491be18d2ab39a

contributors:
- edgarriba
- carlosb1
- Wizaron
- prlz77
- kajal-puri

0.1.1

Table of Contents
-------------------------
- Breaking Changes
- New Features
- Bug Fixes
- Documentation improvements

Breaking Changes
---------------------------
- `tgm.inverse` has been removed since now Pytorch supports batched version for `torch.inverse` f6c210d87ef63e6a07917cdf88b44091c52ede69

New Features
--------------------
- Added `tgm.warp_perspective` matching OpenCV interface d53cbce5d779fbc92b3449ed3c3c88f55f8b88ec
- Added `tgm.get_perspective_transform` matching OpenCV interface
a7db348c5978efc7870c649757947123bfbf78fb
- Added `tgm.get_rotation_matrix2d` matching OpenCV interface
876b2c601d4d5028ab84cc2735fa3fbb018b4c1b

Bug Fixes
--------------
- Fixed bug for inplace operation in `tgm.inverse_pose` 0aba15d0b3ea79cfc3ed6a31ba088f86db643658

Documentation improvements
------------------------------------------
- Added notebook tutorial for `tgm.warp_affine` and `tgm.warp_pesrpective` 894bf52b6c1be9780e190051e8d7b9b679733e2e

Other improvements
----------------------------
- Update to Pytorch v1.0.0 3ee14c83285f05ce8d29725a0489d0c9f8b058ed
- Refactor in testing framework. Removed `unittest` and now using `pytest` since it's easy to parametrize unit tests.
- parametrized tests for different batch sizes
- parametrized tests for device types: cpu and cuda. Note: need to test on cuda yet.
- Now we have official `pip` package to install the library: `pip install torchgeometry`
- URL: https://pypi.org/project/torchgeometry/0.1.1

0.1.0

**This is the initial release of the torchvision package.**

It contains a set of routines and modules for geometric computer vision implementing multi-view reprojection primitives that work on images and feature maps warping. In addition, we provide routines for conversions and utilities for the pinhole model cameras.

Table of Contents
- [API](api)
- [Test](test)
- [Documentation](documentation)
- [Examples](examples)

API
- Pinhole
- inverse_pose 001097c
- pinhole_matrix 063b0c6
- inverse_pinhole_matrix 063b0c6
- scale_pinhole 063b0c6
- homography_i_H_ref 063b0c6
- Conversions
- pi fb56c9c
- rad2deg fb56c9c
- deg2rad fb56c9c
- convert_points_from_homogeneous f13c462
- convert_points_to_homogeneous f13c462
- transform_points 1a1511c
- angle_axis_to_rotation_matrix 4c929d5
- rtvec_to_pose 4c929d5
- rotation_matrix_to_angle_axis f999165
- rotation_matrix_to_quaternion f999165
- quaternion_to_angle_axis f999165
- Warping
- HomographyWarper 2e54229
- DepthWarper cd03569
- Utils
- tensor_to_image 3ad7d05
- image_to_tensor 3ad7d05
- inverse 1a1511c

Test
- docker kit ae8d9e1
- automated test with TravisCI c213e3e
- lint tests c213e3e

Documentation
- sphinx documentation b9251ab
- development e800c36

Examples:
- homography regression ce1524d
- image warped by depth f999165
- jupiter notebooks 3c96835

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.