mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 22:25:01 +00:00
dlr: slurm, load checkpoint
This commit is contained in:
parent
93e663e45d
commit
a69c809008
2 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,7 @@ show_help() {
|
|||
echo -e " DIR_RAINFALLWATER The path to the directory the .tfrecord files containing the rainfall radar / water depth data." >&2;
|
||||
echo -e " PATH_HEIGHTMAP The path to the heightmap jsonl file to read in." >&2;
|
||||
echo -e " PATH_COLOURMAP The path to the colourmap for predictive purposes." >&2;
|
||||
echo -e " PATH_CHECKPOINT The path to a checkcpoint to load. If specified, a model will be loaded instead of being trained." >&2;
|
||||
echo -e " STEPS_PER_EPOCH The number of steps to consider an epoch. Defaults to None, which means use the entire dataset." >&2;
|
||||
echo -e " POSTFIX Postfix to append to the output dir (auto calculated)." >&2;
|
||||
echo -e " ARGS Optional. Any additional arguments to pass to the python program." >&2;
|
||||
|
|
|
@ -132,7 +132,8 @@ if PATH_CHECKPOINT is None:
|
|||
|
||||
model = DeeplabV3Plus(image_size=IMAGE_SIZE, num_classes=NUM_CLASSES, num_channels=8)
|
||||
summarywriter(model, os.path.join(DIR_OUTPUT, "summary.txt"))
|
||||
|
||||
else:
|
||||
model = tf.keras.models.load_model(PATH_CHECKPOINT)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue