Skip to content

Commit

Permalink
feat(train): update epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Mar 27, 2024
1 parent 188c5a7 commit ee070f7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions train/train/command.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import argparse
from pathlib import Path

import mlflow
from PIL import Image

from train import run_test_harness

parser = argparse.ArgumentParser("train")
Expand All @@ -15,15 +18,16 @@


batch_size = 64
epochs = 3
epochs = 20
params = {
"batch_size": batch_size,
"epochs": epochs,
}
mlflow.log_params(params)

mlflow.tensorflow.autolog()
run_test_harness(Path(split_images_input), Path(model_output), batch_size, epochs)
# mlflow.log_figure()
# mlflow.log_metric("number_files_input", result.number_files_input)
# mlflow.log_metric("number_images_output", result.number_images_output)
result = run_test_harness(Path(split_images_input), Path(model_output), batch_size, epochs)

mlflow.log_image(Image.open(result.summary_image_path) , "figure.png")
mlflow.log_metric("number_files_input", result.number_files_input)
mlflow.log_metric("number_images_output", result.number_images_output)

0 comments on commit ee070f7

Please sign in to comment.