Quickstart
A jump-start guide to using Deep Lake.
Last updated
Was this helpful?
A jump-start guide to using Deep Lake.
Last updated
Was this helpful?
Deep Lake can be installed using pip. By default, Deep Lake does not install dependencies for video, google-cloud, and other features. .
Let's load the , a rich dataset with many object detections per image. hosted by Activeloop are identified by the host organization id followed by the dataset name: activeloop/visdrone-det-train
.
Data is not immediately read into memory because Deep Lake operates . You can fetch data by calling the .numpy()
or .data()
methods:
Other metadata such as the mapping between numerical labels and their text counterparts can be accessed using:
Deep Lake enables users to visualize and interpret large datasets. The tensor layout for a dataset can be inspected using:
You can access all of the features above and more with your own datasets! If your source data conforms to one of the formats below, you can ingest them directly with 1 line of code. The ingestion functions support source data from the cloud, as well as creation of Deep Lake datasets in the cloud.
Classifications
For example, a COCO format dataset can be ingested using:
Set the environmental variable ACTIVELOOP_TOKEN
to your API token. In python, this can be done using:
os.environ['ACTIVELOOP_TOKEN'] = <your_token>
Login in the CLI using two options:
activeloop login -u <username> -p <password>
activeloop login -t <your_token>
You can pass your API token to individual methods that require authentication such as:
ds = deeplake.load('hub://org_name/dataset_name', token = <your_token>)
The dataset can be , or using an iframe in a Jupyter notebook:
Visualizing datasets in will unlock more features and faster performance compared to visualization in Jupyter notebooks.
For creating datasets that do not conform to one of the formats above,
In order to use Deep Lake features that require authentication (Activeloop storage, connecting your cloud dataset to the Deep Lake UI, etc.) you should and authenticate on the client using the following methods:
Check out our for a comprehensive walk-through of Deep Lake. Also check out tutorials on , , and , as well as about powerful use-cases that are enabled by Deep Lake.
Congratulations, you've got Deep Lake working on your local machine