torch-cryoeraser
torch-cryoeraser is a Python package for erasing local regions of cryo-EM images.
Image data in masked regions are replaced with noise matching local image statistics.
Installation
pip install torch-cryoeraser
Usage
import torch
import tifffile
from torch_cryoeraser import erase_region_2d
# load image and mask
image = tifffile.imread("image.tif")
mask = tifffile.imread("mask.tif")
# to torch tensor
image = torch.tensor(image)
mask = torch.tensor(mask)
# erase masked regions
erased_image = erase_region_2d(image=image, mask=mask)
for more info, please check the documentation.
Metadata
Release files for torch-cryoeraser 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| torch_cryoeraser-0.6.0.tar.gz | 127.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_cryoeraser-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 134.6 kB
Release files / torch_cryoeraser-0.6.0.tar.gz
| Download URL | torch_cryoeraser-0.6.0.tar.gz |
|---|---|
| Size | 127.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5d7f9326b9dbb33f18f7a5c221baf38179265b5582bdd9ca8d7259b22e6f9d4
|
|
BLAKE2b-256 checksum How to use checksums |
648248d38dad2d4d4128a64248a2d09e9d88f0710264801275829ae5eb0a340a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.
Transparency logRelease files / torch_cryoeraser-0.6.0-py3-none-any.whl
| Download URL | torch_cryoeraser-0.6.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fff9c5e3f8fb2b458d9ca202df4cdb1594fc59a37cf4ddb75505723bbb893494
|
|
BLAKE2b-256 checksum How to use checksums |
413fefc807811dce11cd18404a50c7de3154102ee28b5ceb7ba20c1e11e247bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.
Transparency log