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

How do I use the model in TensorFlow JS? #65

Closed
pottekkat opened this issue Jul 7, 2020 · 2 comments
Closed

How do I use the model in TensorFlow JS? #65

pottekkat opened this issue Jul 7, 2020 · 2 comments

Comments

@pottekkat
Copy link

Can anyone share the code of how I can use this model in tfjs?

const model = await tf.loadLayersModel('models/model.json')

I downloaded the model zip and loaded it as follows. How can I then use this in javascript code to access the model and classify images

@GantMan
Copy link
Owner

GantMan commented Jul 7, 2020

Best way to use this in TFJS is to use NSFWJS which is wrapped around this
https://github.com/infinitered/nsfwjs

It even has GIF support

@pottekkat
Copy link
Author

Thanks I will check it out!

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