TFRimage is minimal tool to create TFRecords from a small dataset of images
Project description
TFRimage
An experimental minimal tool to create TFRecords from a small dataset of images (few thousand images max). Based on code from create_tfrecords but adapted to Tensorflow 2.0 with some changes.
📋 Installation
pip install tfr_image
💻 Usage
Example of the directory structure:
├── cat_dogs_sample
│ │── train
│ │── cat
│ │── cat1.jpg
│ │── cat2.jpg
│ │── dog
│ │── dog1.jpg
│ │── dog2.jpg
Example to create tfrecords inside dataset_dir directory
from tfr_image import TFRimage
tool = TFRimage()
tool.create_tfrecords(
dataset_dir="../cat_dogs_sample/train",
tfrecord_filename="cat_dogs",
validation_size=0.2,
num_shards=2,
)
Other Tools
- tensorflow-recorder : Google open source tool for Big dataset of images that provides connectivity with Google Cloud Dataflow.
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 tfr_image-1.2.tar.gz.
File metadata
- Download URL: tfr_image-1.2.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6d75d101790fa642065ad22d74f55df653593ff7f66874b40f39937d8963bb2
|
|
| MD5 |
8f891f8860848802ea9c5ab438e36633
|
|
| BLAKE2b-256 |
cab365711f92ea63e244fecd917d266b658b30c741aeb70b623108e1aad2d713
|
File details
Details for the file tfr_image-1.2-py3-none-any.whl.
File metadata
- Download URL: tfr_image-1.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1b8bc37ef54168ab3496a0eb49aea078c29636e66c0013bed4324d98dfac486
|
|
| MD5 |
28b786b981fc11a223011b6db6621164
|
|
| BLAKE2b-256 |
6681ed0f051a55c58b64d146c6c5c322d5ac83b937a1b43247c62ea4113e961b
|