Package ai.djl.repository.zoo
Class DefaultModelZoo
- java.lang.Object
-
- ai.djl.repository.zoo.ModelZoo
-
- ai.djl.repository.zoo.DefaultModelZoo
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GROUP_ID
-
Constructor Summary
Constructors Constructor Description DefaultModelZoo()
Constructs a newLocalModelZoo
instance.DefaultModelZoo(java.lang.String locations)
Constructs a newLocalModelZoo
instance from the given search locations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getGroupId()
Returns the global unique identifier of theModelZoo
.java.util.Set<java.lang.String>
getSupportedEngines()
Returns all supported engine names.-
Methods inherited from class ai.djl.repository.zoo.ModelZoo
addModel, addModel, getModelLoader, getModelLoaders, getModelZoo, hasModelZoo, listModels, listModels, listModelZoo, loadModel, registerModelZoo
-
-
-
-
Field Detail
-
GROUP_ID
public static final java.lang.String GROUP_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultModelZoo
public DefaultModelZoo()
Constructs a newLocalModelZoo
instance.
-
DefaultModelZoo
public DefaultModelZoo(java.lang.String locations)
Constructs a newLocalModelZoo
instance from the given search locations.- Parameters:
locations
- a comma separated urls where the models to be loaded from
-
-
Method Detail
-
getGroupId
public java.lang.String getGroupId()
Returns the global unique identifier of theModelZoo
.We recommend to use reverse DNS name as your model zoo group ID to make sure it's not conflict with other ModelZoos.
- Specified by:
getGroupId
in classModelZoo
- Returns:
- the global unique identifier of the
ModelZoo
-
getSupportedEngines
public java.util.Set<java.lang.String> getSupportedEngines()
Returns all supported engine names.- Specified by:
getSupportedEngines
in classModelZoo
- Returns:
- all supported engine names
-
-