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

Data directory #217

Open
HuJiawei24 opened this issue Aug 12, 2020 · 1 comment
Open

Data directory #217

HuJiawei24 opened this issue Aug 12, 2020 · 1 comment

Comments

@HuJiawei24
Copy link

Hi, if I want to train the model from scratch with my own dataset, how/where do I modify the code to set the directory?

@leonoverweel
Copy link
Contributor

Hey, thanks for checking out Larq! If your dataset is in TensorFlow Datasets, the easiest way is to define a Zookeeper @component for it in larq_zoo/training/datasets.py; you can then call it using the CLI as described in the docs.

Otherwise, the easiest way is to write your own training code (see Keras guide) and only importing the model from Larq Zoo, for example:

import larq_zoo as lqz

dataset = ... # https://www.tensorflow.org/guide/data

model = lqz.literature.BiRealNet()  # https://docs.larq.dev/zoo/#available-models
model.compile(...)
model.fit(...)

Let me know if you have more questions!

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