Skip to contents

yolo_dataset_scramble_undo() removes all scrambled background images and matching empty label files (matching ^scramble_ or a custom prefix) generated by yolo_dataset_scramble(), reverting the dataset back to its previous state.

It also automatically invalidates stale YOLO cache files (train.cache, val.cache, test.cache).

Usage

yolo_dataset_scramble_undo(data, prefix = "scramble_", verbose = TRUE)

Arguments

data

A yolo_dataset object, directory path, or YAML file path.

prefix

Character. Filename prefix of the scrambled files to remove (default: "scramble_").

verbose

Logical. Whether to print informative messages (default: TRUE).

Value

An invisible yolo_dataset object pointing to the cleaned dataset.

Examples

if (FALSE) { # interactive()
library(pliman)
yolo_dataset_scramble_undo("my_dataset")
}