Spaces:
Sleeping
Sleeping
from ultralytics.data.utils import autosplit | |
autosplit( | |
path="./dataset/images", | |
weights=(0.8, 0.1, 0.1), # (train, validation, test) fractional splits | |
annotated_only=False, # split only images with annotation file when True | |
) |