waikato-ufdl/wai-annotations

TFRecords sharded filenames

csterling opened this issue · 1 comments

Currently the generated/expected filenames for shard files in the TFRecords format are:

[base]-XXXXX-of-YYYYY

where [base] is the base filename given to the reader/writer.

If [base] contains an extension, it would be more logical to format as:

[base_without_extension]-XXXXX-of-YYYYY.[extension]

Other formatting variations may be desirable as well, e.g. changing the number of digits of X and Y.

Add the ability to specify formatting for sharded filenames.

As of commit c59ecf1, shard filenames are now specified explicitly, and formatting is left to the user.