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

Custom data at test time #2

Closed
eljdos opened this issue May 22, 2020 · 2 comments
Closed

Custom data at test time #2

eljdos opened this issue May 22, 2020 · 2 comments

Comments

@eljdos
Copy link

eljdos commented May 22, 2020

Hello,

Thank you so very much for the impressive work and for making it open source.

Out of curiosity I was wondering if you are going to explain how one could get it to work with custom datasets (by that i mean not from the list of supported datasets).

Thank you so very much and best regards,

@david-berthelot
Copy link
Collaborator

One way is to look at scripts/create_datasets.py, we convert datasets into a TFRecord file of tf.Example with two fields:

  • image is a string containing the png encoded image.
  • label is an int64 (unused, you can set it to 0)

Once you created two record files for your dataset (train and test), you can simply modify libml/data.py to add your dataset to the dictionary. And then when calling lag.py you would need to add --dataset=your_dataset_name.

@eljdos
Copy link
Author

eljdos commented May 22, 2020

Thank you very much for the answer :)

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

2 participants