Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gin binding with my own tfrecord files #145

Closed
skokoh opened this issue Jun 25, 2020 · 2 comments
Closed

gin binding with my own tfrecord files #145

skokoh opened this issue Jun 25, 2020 · 2 comments

Comments

@skokoh
Copy link

skokoh commented Jun 25, 2020

Hi,

could you share some examples how to bind tfrecord files to gin with my own data?
More description of creating my own tfrecord.gin in tutorial would be really appreciated.

Many thanks!

@jesseengel
Copy link
Contributor

Hi! Thanks for the feedback. More tutorials would be great for sure, and we'll try to get there as the library matures. You shouldn't actually have to make your own gin file, as you can pass in flags to configure gin, the key one is

--gin_param="TFRecordProvider.file_pattern='/path/to/dataset_name*.tfrecord'"

Alternatively, you can just add the line:
TFRecordProvider.file_pattern='/path/to/dataset_name*.tfrecord'
to your new gin file based on tfrecord.gin to make that gin file specific to a single dataset, and then you don't need to pass the other flag.

@adarob
Copy link
Contributor

adarob commented Jun 25, 2020

Opened #146 to track adding a tutorial.

@adarob adarob closed this as completed Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants