File size: 243 Bytes
2cd5935
 
 
 
 
 
 
1
2
3
4
5
6
7
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
)