Class DownloadResources
- java.lang.Object
-
- org.eclipse.deeplearning4j.resources.DownloadResources
-
public class DownloadResources extends Object
Top level namespace for handling downloaded resources. Contains utility classes for working with different resources.
-
-
Constructor Summary
Constructors Constructor Description DownloadResources()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CustomResourcecreateCustomResource(String fileName, String localCacheDirectory, String rootUrl)Create aCustomResourcestatic DataSetResourcecreateDatasetResource(String fileName, String localCacheDirectory, String rootUrl)Create anDataSetResourcestatic Dl4jZooResourcecreateLegacyZooResource(String fileName, String modelName)Create a legacy dl4j zoo modelstatic OmniHubResourcecreateOmnihubResource(String fileName)Create aOmniHubResourcefrom the given file
-
-
-
Method Detail
-
createCustomResource
public static CustomResource createCustomResource(String fileName, String localCacheDirectory, String rootUrl)
Create aCustomResource- Parameters:
fileName- the name of the file to downloadlocalCacheDirectory- the cache directory to store itrootUrl- the root url of the download- Returns:
- the created
CustomResource
-
createLegacyZooResource
public static Dl4jZooResource createLegacyZooResource(String fileName, String modelName)
Create a legacy dl4j zoo model- Parameters:
fileName- the file name of the model to downloadmodelName- the name of the model to download- Returns:
-
createDatasetResource
public static DataSetResource createDatasetResource(String fileName, String localCacheDirectory, String rootUrl)
Create anDataSetResource- Parameters:
fileName- the name of the file to download- Returns:
-
createOmnihubResource
public static OmniHubResource createOmnihubResource(String fileName)
Create aOmniHubResourcefrom the given file- Parameters:
fileName- the name of the file to download- Returns:
- the created resource
-
-