Created
February 4, 2025 09:21
-
-
Save ikondrat/18bd5765567278c999ea33c2857fd0a7 to your computer and use it in GitHub Desktop.
Example to run lightly-purple on YOLO8 dataset
This file contains hidden or 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