Skip to main content

Translation Equivariant ModelS

Project description

tests codecov ruff mypy

pypi python

Translation Equivariant ModelS (tems)

See the docs here

Available Models

  • UNet

Why use these Models

  • It is surprisingly annoying to make a torch modules that are compatible with torch.jit.script for easy packaging and sharing. All models in this library are tested for serlializaiton/deserialization with torch.jit.script
  • All models in this library have some helpful properties:
    • min_input_shape - the minimum amount of data that can be passed through a model
    • min_output_shape - the output shape when given data with shape: min_input_shape
    • context - (input_shape - output_shape)
    • equivariant_step - The minimum value by which you must increase the input shape to be able to process without error
  • All models are translation equivariant when in eval mode and with padding="valid"
    • To maintain translation equivariance, we sometimes need to crop more aggressively. This is only done in eval mode since it is assumed you will not be processing data blockwise during training. Note that min_input_shape, min_output_shape, and context will thus all change when the model is switched between modes.
    • This behaviour is explicitly tested and shown to be true s.t. while training, blockwise processing is not the same as full in memmory operations, wheras while in eval mode, this identity holds.
    • Crops to maintain translation equivariance are minimal to maximize the efficiency of blockwise processing with these models.
  • Nice simple pure torch implementation. No other dependencies.

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

tems-1.0.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

tems-1.0.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file tems-1.0.1.tar.gz.

File metadata

  • Download URL: tems-1.0.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tems-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4113ecb12acd6e85427cf25e3ed901906841cb910866d8373ece9f73d7b83026
MD5 a934649bec1821d907df283d59b6733a
BLAKE2b-256 569e7f20180f2f8d289a6e4e8ba4e5be512c31d5933285dca1efc09ccd41c1e5

See more details on using hashes here.

File details

Details for the file tems-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: tems-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tems-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33a8132ac447f15005c8e4b8d384ca2772c4fc6f0325ccb30e3b980b63fb9121
MD5 1f7d6d41144668973382a581744370ba
BLAKE2b-256 43f52438eea130ffb767d53dfce9c79b58de7e61e26a2bf06d7fb5f4413afcb8

See more details on using hashes here.

Supported by

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