Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tfr_image-1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

tfr_image-1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for tfr_image-1.2.tar.gz
Algorithm Hash digest
SHA256 f6d75d101790fa642065ad22d74f55df653593ff7f66874b40f39937d8963bb2
MD5 8f891f8860848802ea9c5ab438e36633
BLAKE2b-256 cab365711f92ea63e244fecd917d266b658b30c741aeb70b623108e1aad2d713

See more details on using hashes here.

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

Hashes for tfr_image-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b8bc37ef54168ab3496a0eb49aea078c29636e66c0013bed4324d98dfac486
MD5 28b786b981fc11a223011b6db6621164
BLAKE2b-256 6681ed0f051a55c58b64d146c6c5c322d5ac83b937a1b43247c62ea4113e961b

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