Skip to main content

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fliser 0.1.1
File Size Uploaded
fliser-0.1.1.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fliser 0.1.1
File Interpreter ABI Platform
fliser-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / fliser-0.1.1.tar.gz

Download URL fliser-0.1.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5cd909870588f3bc5a97f3612527e9c4449c0d0cc62dbb151a451aa1e6a099c3
BLAKE2b-256 checksum
How to use checksums
2e4aab33d7edd1fd6ba727439fa6f5f8f39b0b368b20ea65a2d7b7e1ae66ace3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 3, 2026.

Transparency log

Release files / fliser-0.1.1-py3-none-any.whl

Download URL fliser-0.1.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3008261e22a48b9a13a20a4cea6ad8c01fe1ee17830ca27492f9b6bcced6a6e4
BLAKE2b-256 checksum
How to use checksums
132f75c744988052b8a4fb01c855e1d166d6680fc6d27107aa2764ff6bc9b4bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page