Step 6: Using Activeloop Storage
Storing and loading datasets from Activeloop Platform Storage.

Register

You can store your Hub Datasets with Activeloop by first creating an account in Activeloop Platform or in the CLI using:
1
activeloop register
Copied!

Login

In order for the Python API to authenticate with your account, you should log in from the CLI using:
1
activeloop login
2
3
# Alternatively, you can directly input your username and password in the same line:
4
# activeloop login -u my_username -p my_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.

Tokens

Once you have an Activeloop account, you can create tokens in Activeloop Platform (Organization Details -> API Tokens) and pass them to python commands that require authentication using:
1
ds = hub.load(platform_path, token = 'xyz')
Copied!
Copy link