PREDICTING FROM JSON SAVED FROM DEMO

229 views
Skip to first unread message

bhagwa...@gmail.com

unread,
Jul 17, 2017, 9:20:55 PM7/17/17
to convnetjs
I'm not interested in training a network.

I have a JSON saved from the demo network (which trained a CNN on MNIST data for 10 minutes on my browser)

I want to know if I can use it to predict on an image saved on my laptop in the following manner.

net = new convnetjs.Net();
net.fromJSON(json);
var x = convnetjs.img_to_vol(document.getElementById('some_image'))
var output_probabilities_vol = net.forward(x)


Please tell me how you would do it? If possible give me a running example.

Thanks,
Aditya

Reply all
Reply to author
Forward
0 new messages