-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_cryolo_training.sh
executable file
·39 lines (29 loc) · 1.08 KB
/
run_cryolo_training.sh
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
31
32
33
34
35
36
37
38
#! /usr/bin/env bash
# See documentation at <http://sphire.mpg.de/wiki/doku.php?id=pipeline:window:cryolo>
# Train a cryolo model on your own data
# Indicate a filename in which to save the model in config.json
# --early indicates how many epochs without improvement the training procedure
# will wait before early training termination
# --gpu designates which GPU to use
# --fine_tune is only useful when training from a pre-existing model, to speed
# up training by only optimizing weights of two layers (instead of all of them);
# add this option as necessary.
# This line depends on your environment setup.
# Comment it out or edit it as needed.
module purge
module load cuda/9.0 cryolo/v1.5.1
RUN="001"
# Warm-up
# This is not strictly required if starting from pre-trained weigths
#cryolo_train.py \
# --conf config.json \
# --warmup 3 \
# --gpu 0 \
# 2>cryolo_warmup_"$RUN".err | tee cryolo_warmup_"$RUN".log
# Training
cryolo_train.py \
--conf config.json \
--warmup 0 \
--gpu 0 \
--early 10 \
2>cryolo_training_"$RUN".err | tee cryolo_training_"$RUN".log