Step 5: Using Activeloop Storage
Storing and loading datasets from Activeloop Platform Storage.
You can store your Hub Datasets on Activeloop Platform by first creating an account in the CLI using:
activeloop register
In order for the Python API to authenticate with the Activeloop Platform, you should log in from the CLI using:
activeloop login -u username -p password
# Alternatively use "activeloop login" ... which is followed by prompts for username and password
You can then access or create Hub Datasets by passing the Activeloop Platform path to hub.dataset()
import hub
platform_path = 'hub://workspace_name/dataset_name'
ds = hub.dataset(platform_path)
When you create an account in Activeloop Platform, a default workspace is created that has the same name as your username. You are also able to create other workspaces that represent organizations, teams, or other collections of multiple users.
Public datasets such as 'hub://activeloop/mnist-train' can be accessed without logging in.
Copy link