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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newLocalModelZooinstance.DefaultModelZoo(String locations) Constructs a newLocalModelZooinstance 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, listModels, listModelZoo, loadModel, registerModelZoo, setModelZooResolver
-
Field Details
-
GROUP_ID
- See Also:
-
-
Constructor Details
-
DefaultModelZoo
public DefaultModelZoo()Constructs a newLocalModelZooinstance. -
DefaultModelZoo
Constructs a newLocalModelZooinstance 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:
getGroupIdin classModelZoo- Returns:
- the global unique identifier of the
ModelZoo
-
getSupportedEngines
Returns all supported engine names.- Specified by:
getSupportedEnginesin classModelZoo- Returns:
- all supported engine names
-