public class ImageClassifierNiNImageNet extends BaseImageClassifier
Pretrained Network-in-Network (NiN) image classifier using imagenet data. Trained by szagoruyko [1,2] and achieves 62.6% top1 center crop accuracy on validation set.
[1] https://gist.github.com/szagoruyko/0f5b4c5e2d2b18472854
[2] https://github.com/soumith/imagenet-multiGPU.torch/blob/master/models/ninbn.lua
ImageClassifier.Scorecategories, categoryBest, categoryScores, imageRgb, imageSize, imageType, massage, network, tensorInput, tensorOutput| Constructor and Description |
|---|
ImageClassifierNiNImageNet() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadModel(java.io.File directory)
Loads the model at the specified location.
|
protected boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> |
preprocess(boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> image)
Massage the input image into a format recognized by the network
|
classify, getAllResults, getBestResult, getCategories, getImageRgb, getInputType, innerProcesspublic void loadModel(java.io.File directory)
throws java.io.IOException
ImageModelBasedirectory - Path to directory or file containing the modeljava.io.IOExceptionprotected boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> preprocess(boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> image)
preprocess in class BaseImageClassifier