wrapping `yolov5/train.py`
We're building towards generating a model with a single call.
Trainer
is a fairly bare-bones wrapper built around train.py
.
AutoWeights
is a more robust wrapper and allows for custom naming/placement of the results folder.
aw = AutoWeights(name="<AutoWeight>", out_dir="ipynb_tests/02_train_datadump", MAX_SIZE=10)
aw.initialize_images_from_zip("ipynb_tests/01_split_datadump/Final Roboflow Export (841)<01_split_all> 21-03-24 17-23-14.zip")
aw.resource_paths
aw.traverse_resources()
%%time
from ModelAssistedLabel.config import Defaults
current = aw.generate_weights(1, Defaults().trainer_template, rm_local_files=True)
current
!ls "{current}"