Created
February 4, 2025 08:57
-
-
Save ikondrat/be0fc88ac1d34f722a09ebe8618df33d to your computer and use it in GitHub Desktop.
yolo8 example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from lightly_purple import DatasetLoader | |
# Create a DatasetLoader instance | |
loader = DatasetLoader() | |
# Define the path to the dataset (folder containing data.yaml) | |
dataset_path = os.getenv("DATASET_PATH") | |
# Load YOLO dataset using data.yaml path | |
yolo_loader, dataset_id = loader.from_yolo( | |
f"{dataset_path}/dataset.yaml", | |
input_split="train", | |
) | |
loader.launch() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment