This release is a pre-release and may not be stable for production use.
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.0rc2
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.0rc2.tar.gz | 127.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_cryoeraser-0.6.0rc2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 134.7 kB
Release files / torch_cryoeraser-0.6.0rc2.tar.gz
| Download URL | torch_cryoeraser-0.6.0rc2.tar.gz |
|---|---|
| Size | 127.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00afb9d52179c0fe5dbad90c7cb05eab6c1f86ff1931e77dcedd8c526e6aabb3
|
|
BLAKE2b-256 checksum How to use checksums |
287afb04bb54442ddb4b4eadb14e3954a909beaf77c2bf58140af85117e36d34
|
| 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.0rc2-py3-none-any.whl
| Download URL | torch_cryoeraser-0.6.0rc2-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90322a3c7c8010677b2fa5732d025619f90e3b69ac196696fffd17f09d770499
|
|
BLAKE2b-256 checksum How to use checksums |
5896f8d52551aaffff28c933adcccd0fcecdd0084ffb44a49eac220542868ad2
|
| 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