Last updated
Was this helpful?
Last updated
Was this helpful?
This tutorial assumes the reader has experience training models using MMDET and has installed it successfully.
Deep Lake offers an integration with , a popular open-source object detection toolbox based on PyTorch. The integration enables users to train models while streaming Deep Lake dataset using the transformation, training, and evaluation tools built by MMDet.
Training using MMDET is typically executed using wrapper scripts like the one provided . In the example below, we write a similar simplified wrapper script for training using a Deep Lake dataset.
The integrations with MMDET occurs in the deeplake.integrations.mmdet
module. At a high-level, Deep Lake is responsible for the pytorch dataloader that streams data to the training framework, while MMDET is used for the training, transformation, and evaluation logic.
In the example script below, the user should apply the build_detector
and train_detector
provided by Deep Lake. The build_detector
is mostly boilerplate. and the Deep Lake-related features primarily exist in train_detector
.
Inputs to the Deep Lake train_detector
are a modified MMDET config file, optional dataset objects (see below), and flags for specifying whether to perform distributed training and validation.
The Deep Lake train_detector takes in a standard MMDET config file, but it also expect the inputs highlighted in the ----Deep Lake Inputs----
section in the config file below:
train_detector
(Optional)The Deep Lake dataset object or dataset view can be passed to the train_detector
directly, thus overwriting any dataset information in the config file. Below are the respective modifications that should be made to the training script above:
Congrats! You're now able to train models using MMDET while streaming Deep Lake Datasets! 🎉
How to Train Deep Learning models using Deep Lake's integration with MMDetection