fliser
Helper library for doing tiled inference with PyTorch.
Installation
pip install fliser
Examples
Use Fliser.from_sizes to choose the best tile size from a set of candidates.
The tile size that requires the least amount of tiles to cover the full image will be chosen.
from fliser import Fliser
device = torch.device("cuda:0")
# Create model
model = MyModel().to(device)
# Read image
image = load_image(...)
image = image.unsqueeze(0).to(device)
_, c, h, w = x.shape
# Create Fliser helper class
fliser = Fliser.from_sizes(
image_size=(h, w),
num_channels=c,
tile_sizes=[(416, 632), (512, 512), (632, 416)]
min_overlap=32,
)
for tile in fliser.tiles():
# Do inference for single tile
with torch.inference_mode():
pred = model(image[tile.slice()])
# Update Fliser state
fliser.update(tile, pred)
# Compute combined output
output = fliser.compute()
Use Fliser.from_aspect_ratios to instead choose tile size from a set of aspect ratios.
fliser = Fliser.from_aspect_ratios(
image_size=(h, w),
num_channels=c,
tile_num_pixels=512**2,
aspect_ratios=(0.5, 1.0, 2.0),
min_overlap=32,
)
Metadata
Release files for fliser 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fliser-0.1.2.tar.gz | 7.6 kB | With provenance | Details for fliser-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fliser-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for fliser-0.1.2-py3-none-any.whl |
Total release size: 15.1 kB
Release files / fliser-0.1.2.tar.gz
| Download URL | fliser-0.1.2.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73f40e74029db1355c403dc6768dae8f745a77541d50c2f3f3148cb1b692c8d8
|
|
BLAKE2b-256 checksum How to use checksums |
6c1e4914eaeb1c9d5c3ee5928c5afcc2a0433810b25db9feff4db01936647f1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 28, 2026.
Transparency logRelease files / fliser-0.1.2-py3-none-any.whl
| Download URL | fliser-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5260744b7ae98d6f7b2265b25a5921e9d5210dd94471a01aefb0756cf5b9e9ad
|
|
BLAKE2b-256 checksum How to use checksums |
d64657ee5f11ec4a8d88d75aa6f8d3542f2980108d000e4929591b30f1ceb521
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 28, 2026.
Transparency logSecurity for fliser 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fliser-0.1.2.tar.gz
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 Oct 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.