-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject_driver.bash
executable file
·31 lines (26 loc) · 1.57 KB
/
project_driver.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# (Fixme: should add a check here to ensure MLFLOW_TRACKING_URI is set)
# After development is frozen/slowed, we can also run trainings directly off
# the repo without cloning it locally; ie for just trying different parameters.
# Only this driver script is needed in that case, as the rest gets pulled from
# repo. According to mlflow documentation a git commit or branch name at that
# repo uri can be specified to use like `-v abcde123` or `-v feature/mybranch`.
# I've not tried this yet though. (Without -v and get the default branch.)
# mlflow run https://github.com/aganse/py_tf2_gpu_dock_mlflow -v abcde123 ...
# For more details see https://mlflow.org/docs/1.30.0/projects.html#running-projects
mlflow run . \
-A gpus=all \
-b local \
--experiment-name='Malaria Detection' \
-P run_name='malaria' \
-P randomize_images=True \
-P convolutions=0 \
-P epochs=10 \
-P batch_size=128 \
-P training_samples=13779 \
-P validation_samples=13779
# --build-image # seems broken in mlflow 2.4.1 so \
# # added pre-build line in makefile for now
# -P batch_size=10 \
# -P training_samples=100 \
# -P validation_samples=100