Technical requirements
In this chapter, you will need to install the following packages:
pip install ultralytics lightly docker encord
You will also need the following imports:
import os from IPython.display import display, Markdown from ultralytics import YOLO from pathlib import Path import json import contextlib from typing import Iterator import docker from docker.models.containers import Container from lightly.api import ApiWorkflowClient from lightly.openapi_generated.swagger_client import DatasetType from lightly.openapi_generated.swagger_client import DatasourcePurpose from encord.orm.cloud_integration import CloudIntegration from encord.orm.dataset import AddPrivateDataResponse from encord.user_client import EncordUserClient from encord.orm.dataset import CreateDatasetResponse, StorageLocation
Next, you need to create a Lightly account and set up your API token, as follows:
lightly_token = "your_lightly_token"
Then, you must set up the Lightly client...