Skip to main content

Simplifies the process of applying U-net style models to large images.

Project description

Image Apply

test

A package for improving the simplicity of adapting Segmentation Models to large images.

This package include a class that can be used to apply a segmentation model to large images. The class will split the image into smaller tiles, apply the model to each tile, and then stitch the tiles back together. This allows the model to be applied to images that are too large to fit in memory.

Installation

pip install imageapply

Usage

This package can be used to easily extend a segmentation model to large images. The following example is for a model that takes a batch of images of size (None, 256, 256, 3) as input and outputs a mask of size (None, 256, 256, 1).

from imageapply import FlexibleModel
model = FlexibleModel(model, input_size=(256, 256, 3), max_batch_size=16)

# Apply the model to a batch of large images of size (20, 1024, 1024, 3)
masks = model(images)

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

imageapply-0.2.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imageapply-0.2.2-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file imageapply-0.2.2.tar.gz.

File metadata

  • Download URL: imageapply-0.2.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.2 Linux/5.15.0-1019-azure

File hashes

Hashes for imageapply-0.2.2.tar.gz
Algorithm Hash digest
SHA256 6aed4aac65e673ec174153505eb8602a8d8a0f1a2ec111d568be2658c93ec8bd
MD5 9b75fc4ef976efa853a31d9b0604c7be
BLAKE2b-256 ac3357a279f27fefd7dc3a4b3ae8b0a28b3191f5d5d7357a79e2323209f2bc47

See more details on using hashes here.

File details

Details for the file imageapply-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: imageapply-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.10.2 Linux/5.15.0-1019-azure

File hashes

Hashes for imageapply-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a78a23343bbb073901cf2bc5588fc5869a8e40e1112d30eee9975abd0a90b8
MD5 44a06239d5e4303da0cc260eb5a10067
BLAKE2b-256 fb2fc4476a739670413ad04b13a40be1bea114bd311be974e377aea8f675bf38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page