a collection of assorted algorithms expressed in Tensors. Dev package that pushes on green from master.
Project description
TensorBank
TensorBank is a collection of assorted algorithms expressed in Tensors.
We do not intend to limit ourselves to a specific domain. The initial batch of algorithms is focused on point and box gemoetry for some object detection tasks, but more algorithms will be added later.
We are open to all backends, including Tensorflow, Pytorch, and NumPy.
Primarily, this project is to avoid copy-pasting the "utils" directory from one project to the next :-)
Installation
$ pip install tensorbank
Usage
If you're using TensorFlow, import TensorBank as follows and use the tb.
prefix:
import tensorbank.tf as tb
tb.axis_aligned_boxes.area(
[[1, 1, 2, 2],
[-1, -1, 1, 2]])
>>> tf.Tensor([1 6], shape=(2,), dtype=int32)
See API Reference on Readthedocs for the full list of the algorithms offered and comprehensive usage examples.
Development version
If you want to install the push-on-green development version, do this instead:
$ pip install tensorbank-dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tensorbank-dev-0.2.202007081907.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57badb8ffc0c01ddc1f03c9fd674722ea538ca52d91469fb10966c4c827578de |
|
MD5 | 60f32b9d86b74276b8f3ff865f587d99 |
|
BLAKE2b-256 | 4f9cf57326f709e05bf5b59cc90c9321669aa6b1c2d0ee9e7d1f762b337fa6f7 |
Hashes for tensorbank_dev-0.2.202007081907-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43d723fd53d21936221f28b776c623b1cc486657697e47c900d19827856269d6 |
|
MD5 | 23256d6b11621c857d65d93e8d210b1b |
|
BLAKE2b-256 | 1e90ec5cb83d34247c10b2dc8f6982a022074053cbc24d848d72a855bb05452a |