Step 6: 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:
1
activeloop register
Copied!
In order for the Python API to authenticate with the Activeloop Platform, you should log in from the CLI using:
1
activeloop login -u username -p password
2
3
# Alternatively use "activeloop login" ... which is followed by prompts for username and password
Copied!
You can then access or create Hub Datasets by passing the Activeloop Platform path to hub.dataset()
1
import hub
2
3
platform_path = 'hub://workspace_name/dataset_name'
4
#'hub://jane_smith/my_awesome_dataset'
5
6
ds = hub.dataset(platform_path)
Copied!
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.
Last modified 2mo ago
Copy link