Skip to main content

Translation Equivariant ModelS

Project description

tests codecov ruff mypy

pypi

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.4.tar.gz (12.9 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.4-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tems-1.0.4.tar.gz
Algorithm Hash digest
SHA256 cb9452f02335e95a1f8f2e9ed7094863c1577cae622dbb6ef141e19475bec1c5
MD5 245ad42858e12d5d2e5859a7cb34dc43
BLAKE2b-256 2b24b11733405ece8c640d8918b3316301a7d9bbe7a3609774d201b363768857

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tems-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0908e624a60b541143721029ee86b036d5bad1e63e457085cd8f0f02cef69a02
MD5 9168d79b11ec5df98856dfac1b5719c1
BLAKE2b-256 fbf2ea81d1ab754dc1e30108fbac69699cb782cff4e7a938b6f46bedf6467181

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