facebookarchive / fb.resnet.torch

Torch implementation of ResNet from http://arxiv.org/abs/1512.03385 and training scripts
Other
2.29k stars 664 forks source link

Is there any way to predict(classify) large amount of image? #121

Closed Laodax closed 7 years ago

Laodax commented 8 years ago

I want to predict more than thounds of or ten thounds of image, and I just know use like this"th classify.lua resnet-101.t7 img1.jpg img2.jpg ..."to input image. Can I input like a .txt file or any way to input a lot of image?

colesbury commented 7 years ago

The classify.lua script is not written to efficient classify lots of images since it does it one at a time. You can look at extract-features.lua which takes a directory of image for an example of how to handle lots of images at once.