Package ai.djl.repository.zoo
Class DefaultModelZoo
java.lang.Object
ai.djl.repository.zoo.ModelZoo
ai.djl.repository.zoo.DefaultModelZoo
A
ModelZoo
that contains models in specified locations.-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs a newLocalModelZoo
instance.DefaultModelZoo
(String locations) Constructs a newLocalModelZoo
instance from the given search locations. -
Method Summary
Modifier and TypeMethodDescriptionReturns the global unique identifier of theModelZoo
.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, setModelZooResolver
-
Field Details
-
GROUP_ID
- See Also:
-
-
Constructor Details
-
DefaultModelZoo
public DefaultModelZoo()Constructs a newLocalModelZoo
instance. -
DefaultModelZoo
Constructs a newLocalModelZoo
instance from the given search locations.- Parameters:
locations
- a comma separated urls where the models to be loaded from
-
-
Method Details
-
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
Returns all supported engine names.- Specified by:
getSupportedEngines
in classModelZoo
- Returns:
- all supported engine names
-