Fix Docs autosplit import (#21898)
Co-authored-by: Onuralp SEZER <thunderbirdtr@gmail.com>
This commit is contained in:
parent
56e6153157
commit
43a2ff021b
@ -273,7 +273,7 @@ fold_lbl_distrb.to_csv(save_path / "kfold_label_distribution.csv")
|
||||
3. You can also use [Ultralytics data.utils.autosplit](https://docs.ultralytics.com/reference/data/utils/) function for automatic dataset splitting:
|
||||
|
||||
```python
|
||||
from ultralytics.data.utils import autosplit
|
||||
from ultralytics.data.split import autosplit
|
||||
|
||||
# Automatically split dataset into train/val/test
|
||||
autosplit(path="path/to/images", weights=(0.8, 0.2, 0.0), annotated_only=True)
|
||||
|
||||
@ -197,7 +197,7 @@ for f in Path("path/to/dataset").rglob("*.jpg"):
|
||||
Automatically split a dataset into `train`/`val`/`test` splits and save the resulting splits into `autosplit_*.txt` files. This function uses random sampling, which is excluded when using the [`fraction` argument for training](../modes/train.md#train-settings).
|
||||
|
||||
```python
|
||||
from ultralytics.data.utils import autosplit
|
||||
from ultralytics.data.split import autosplit
|
||||
|
||||
autosplit(
|
||||
path="path/to/images",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user