Class DefaultModelZoo

java.lang.Object
ai.djl.repository.zoo.ModelZoo
ai.djl.repository.zoo.DefaultModelZoo

public class DefaultModelZoo extends ModelZoo
A ModelZoo that contains models in specified locations.
  • Field Details

  • Constructor Details

    • DefaultModelZoo

      public DefaultModelZoo()
      Constructs a new LocalModelZoo instance.
    • DefaultModelZoo

      public DefaultModelZoo(String locations)
      Constructs a new LocalModelZoo instance from the given search locations.
      Parameters:
      locations - a comma separated urls where the models to be loaded from
  • Method Details

    • getGroupId

      public String getGroupId()
      Returns the global unique identifier of the ModelZoo.

      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 class ModelZoo
      Returns:
      the global unique identifier of the ModelZoo
    • getSupportedEngines

      public Set<String> getSupportedEngines()
      Returns all supported engine names.
      Specified by:
      getSupportedEngines in class ModelZoo
      Returns:
      all supported engine names