Closed pottekkat closed 1 year ago
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
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
Thanks I will check it out!
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