public class ImageNetLabels extends BaseLabels
labels
Constructor and Description |
---|
ImageNetLabels() |
Modifier and Type | Method and Description |
---|---|
String |
decodePredictions(INDArray predictions)
Given predictions from the trained model this method will return a string
listing the top five matches and the respective probabilities
|
String |
getLabel(int n)
Returns the description of tne nth class in the 1000 classes of ImageNet.
|
protected ArrayList<String> |
getLabels()
Override to return labels when not calling
BaseLabels.BaseLabels(String) . |
protected URL |
getURL() |
protected String |
resourceMD5() |
protected String |
resourceName() |
decodePredictions, getLabels, getResourceFile
public ImageNetLabels() throws IOException
IOException
protected ArrayList<String> getLabels() throws IOException
BaseLabels
BaseLabels.BaseLabels(String)
.getLabels
in class BaseLabels
IOException
public String getLabel(int n)
getLabel
in interface Labels
getLabel
in class BaseLabels
n
- protected URL getURL()
getURL
in class BaseLabels
protected String resourceName()
resourceName
in class BaseLabels
protected String resourceMD5()
resourceMD5
in class BaseLabels
Copyright © 2019. All rights reserved.