Similarly, if you would like to test your model on a new image, you can use testHook from line 103 in donkey.lua to load your image, and send it through the model for predictions. For example:
dofile('donkey.lua') img = testHook({loadSize}, 'test.jpg') model = torch.load('model_10.t7') predictions = model:forward(img:cuda())
--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at http://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.
Am I literally running each line separately in the th IDE?
You received this message because you are subscribed to a topic in the Google Groups "torch7" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/torch7/lms9AbYP-is/unsubscribe.
To unsubscribe from this group and all its topics, send an email to torch7+un...@googlegroups.com.