Usage
Downloading and loading models from OmniHub — OmniHubUtils API
The Pretrained Facade
import org.eclipse.deeplearning4j.omnihub.models.Pretrained;
// Load the VGG19 (no-top) DL4J ComputationGraph
ComputationGraph vgg19 = Pretrained.dl4j().vgg19noTop(false);
// Load the AgeGoogLeNet SameDiff model
SameDiff ageGooglenet = Pretrained.samediff().ageGooglenet(false);
// Load ResNet18 SameDiff model
SameDiff resnet18 = Pretrained.samediff().resnet18(false);OmniHubUtils — Loading DL4J Models
Loading a MultiLayerNetwork
Loading a ComputationGraph
OmniHubUtils — Loading SameDiff Models
Direct Download with downloadAndLoadFromZoo
Caching Behavior
Overriding the Zoo URL
Download Progress
Full Example
Custom Model Repositories (ADR 0076)
How the fallback chain works
The ModelRepository interface
Implementing a custom repository
Registering the custom repository
Targeting a specific repository by name
Removing a built-in repository
Default repository priorities at a glance
Repository name
Priority
Resolves
DSL integration
Next Steps
Last updated
Was this helpful?