-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcellpose_train_pred_loop.sh
34 lines (28 loc) · 1.11 KB
/
cellpose_train_pred_loop.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
#!/bin/bash
# run this script under images/
# rm nohup0.out; nohup bash ../../cellpose_train_pred_loop.sh 0 > nohup0.out &
# rm nohup1.out; nohup bash ../../cellpose_train_pred_loop.sh 1 > nohup1.out &
# rm nohup2.out; nohup bash ../../cellpose_train_pred_loop.sh 2 > nohup2.out &
# note that csi.txt and bias.txt thus generated do not have header
seed=$1
# None and i=0 will generate error, that is okay, it is as it should be
for pretrained in cyto cyto2 tissuenet livecell None; do
echo $pretrained
for i in {7..7}; do
echo "Working on training$i"
cd ../training$i
bash ../../cellpose_train_pred.sh $seed $pretrained
sleep 5
# sleep so that not all processes will try to write to csi.txt at the same time
done
done
# Do the following after all seeds returned
#for pretrained in cyto cyto2 tissuenet livecell None; do
#for i in {0..7}; do
# mv training$i/csi_$pretrained.txt ../APresults/csi_cp_$pretrained\_$i.txt
# mv training$i/bias_$pretrained.txt ../APresults/bias_cp_$pretrained\_$i.txt
#
## rm training$i/csi_$pretrained.txt
## rm training$i/bias_$pretrained.txt
#done
#done