Load TIFF images into TensorFlow datasets using rasterio
Project description
tiff-tf-loader
tiff_image_dataset_from_directory() is a utility that lets you load .tif images into TensorFlow tf.data.Dataset pipelines, similar to image_dataset_from_directory() — but using rasterio under the hood.
Installation
pip install tiff-tf-loader
Usage
from tiff_tf_loader import tiff_image_dataset_from_directory
train_ds = tiff_image_dataset_from_directory(
"/path/to/data",
image_size=(128, 128),
batch_size=32,
label_mode="categorical",
validation_split=0.2,
subset="training",
seed=42
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tiff_tf_loader-0.1.1.tar.gz
(2.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tiff_tf_loader-0.1.1.tar.gz.
File metadata
- Download URL: tiff_tf_loader-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
607748b10814c1bad093b4ad56d10a5700c8d653f74c35eb3d2533321f8e9c44
|
|
| MD5 |
a0443bf2abc45495bee49dad88067922
|
|
| BLAKE2b-256 |
c14a67d4f33ab846686f6959b3b717d7b0331dc91b7d9fa38086d3ba022b6911
|
File details
Details for the file tiff_tf_loader-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tiff_tf_loader-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
339e411c8f8d7670f14af732f9975a0e704eafd0b750de4a6b423dfc306528c8
|
|
| MD5 |
5c888fccbdf3ebb0d63255e8c78dafb3
|
|
| BLAKE2b-256 |
10b268094043784fe6073943e1e24a404ff774631da3831a1e0166bdfc597edf
|