Keras-style data iterator for images contained in dataset files such as hdf5 or PIL readable files. Images can be contained in several files.
Project description
Dataset Iterator
This repo contains keras iterator classes for multi-channel (time-lapse) images contained in dataset files such as hdf5.
Dataset structure:
One dataset file can contain several sub-datasets (dataset_name0, dataset_name1, etc...), the iterator will iterate through all of them as if they were concatenated.
.
├── ...
├── dataset_name0
│ ├── channel0
│ └── channel1
│ └── ...
├── dataset_name1
│ ├── channel0
│ └── channel1
│ └── ...
└── ...
Each dataset contain channels (channel0, channel1 ...) that must have same shape. All datasets must have the same number of channels, and shape (except batch size) must be equal among datasets.
Groups
There can be more folder level, for instance to have train and test sets in the same file:
.
├── ...
├── experiment1
│ ├── train
│ │ ├── raw
│ │ └── labels
│ └── test
│ ├── raw
│ └── labels
├── experiment2
│ ├── train
│ │ ├── raw
│ │ └── labels
│ └── test
│ ├── raw
│ └── labels
└── ...
train_it = MultiChannelIterator(dataset_file_path = file_path, channel_keywords = ["/raw", "/labels"], group_keyword="train")
test_it = MultiChannelIterator(dataset_file_path = file_path, channel_keywords = ["/raw", "/labels"], group_keyword="test")
Image formats
- Those iterators are using an object of class
DatasetIOto access the data. - There is currently an implementation of DatasetIO for .h5 files (
H5pyIO), as well as dataset composed of multiple images files supported by PILLOW (MultipleFileIO). - one can also concatenate datasets from different files:
- if a dataset is split into several files that contain the same channels: use
ConcatenateDatasetIO - if a dataset contains channels in different files, use:
MultipleDatasetIO
- if a dataset is split into several files that contain the same channels: use
Demo
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
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 dataset_iterator-0.5.7.tar.gz.
File metadata
- Download URL: dataset_iterator-0.5.7.tar.gz
- Upload date:
- Size: 68.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb0cd8f8058ad37078fcbe7eba1740f5f8e50b7400602c51fe700b15f67b4a32
|
|
| MD5 |
3e0796b7ef1a83ec466dba00a65cb568
|
|
| BLAKE2b-256 |
27eeed1505ddfba9bbe3512986038fcbe2dce941dc36956af9339c9ef7bbfd2b
|
Provenance
The following attestation bundles were made for dataset_iterator-0.5.7.tar.gz:
Publisher:
publish-to-pypi.yml on jeanollion/dataset_iterator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dataset_iterator-0.5.7.tar.gz -
Subject digest:
fb0cd8f8058ad37078fcbe7eba1740f5f8e50b7400602c51fe700b15f67b4a32 - Sigstore transparency entry: 696538356
- Sigstore integration time:
-
Permalink:
jeanollion/dataset_iterator@d643962fca1d4f3227bf401d578c61229e5723c3 -
Branch / Tag:
refs/tags/v0.5.7 - Owner: https://github.com/jeanollion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@d643962fca1d4f3227bf401d578c61229e5723c3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dataset_iterator-0.5.7-py3-none-any.whl.
File metadata
- Download URL: dataset_iterator-0.5.7-py3-none-any.whl
- Upload date:
- Size: 77.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f84871a24ffbf1abc731ea5f47aafff11bb00232a87150a6e51849b7edb52c5a
|
|
| MD5 |
206882dcda55e395de9c7a5de9034f04
|
|
| BLAKE2b-256 |
261c3fbfd9536760a29a3d6a0e361c4c1e49e440d4084cf0e610f0106e717af9
|
Provenance
The following attestation bundles were made for dataset_iterator-0.5.7-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on jeanollion/dataset_iterator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dataset_iterator-0.5.7-py3-none-any.whl -
Subject digest:
f84871a24ffbf1abc731ea5f47aafff11bb00232a87150a6e51849b7edb52c5a - Sigstore transparency entry: 696538372
- Sigstore integration time:
-
Permalink:
jeanollion/dataset_iterator@d643962fca1d4f3227bf401d578c61229e5723c3 -
Branch / Tag:
refs/tags/v0.5.7 - Owner: https://github.com/jeanollion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@d643962fca1d4f3227bf401d578c61229e5723c3 -
Trigger Event:
push
-
Statement type: