Translation Equivariant ModelS
Project description
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.scriptfor easy packaging and sharing. All models in this library are tested for serlializaiton/deserialization withtorch.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 modelmin_output_shape- the output shape when given data with shape:min_input_shapecontext- (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
evalmode since it is assumed you will not be processing data blockwise during training. Note thatmin_input_shape,min_output_shape, andcontextwill 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.
- To maintain translation equivariance, we sometimes need to crop more aggressively. This is only done in
- 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.3.tar.gz
(12.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tems-1.0.3-py3-none-any.whl
(11.6 kB
view details)
File details
Details for the file tems-1.0.3.tar.gz.
File metadata
- Download URL: tems-1.0.3.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
176f7f864160ea626c373e4aaa42b597b6bc059a5b31e17e0469419164475a4d
|
|
| MD5 |
2a29bf882a43212afe1a5d0bedf4aa43
|
|
| BLAKE2b-256 |
4fd1ec79310d58e7da8446568c17f7aa08c80490193a1ff5339e77597b437983
|
File details
Details for the file tems-1.0.3-py3-none-any.whl.
File metadata
- Download URL: tems-1.0.3-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.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
004c95df5b0a0f26af111f4d35e86a1a46faf72bf1161a72f1369b18d8f724e6
|
|
| MD5 |
bf7a65f8f0f14eb44fe7fe84de3f6745
|
|
| BLAKE2b-256 |
7dcbf6e8a93a7411a2a91a667de0d4e67db67723279d079628e39130c2546442
|