// Check if training dir exists
assert os.path.isdir(train_images_dir)
if eval_dir is not None:
eval_images_dir, eval_labels_dir = os.path.join(eval_dir, "images"), os.path.join(eval_dir, "labels")
assert os.path.isdir(eval_images_dir)
for i in trange(0, training_params.n_epochs, training_params.evaluate_every_epoch, desc="Evaluated epochs"):
// Train for one epoch