train&test

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

for i in {1...10}
do
    sleep 2h
    cd Outputs/e2e_mask_rcnn_R-50-C4
    filename=`ls -t |head -n1|awk '{print $0}'`
    echo $filename

    cd $filename/ckpt
    ckpt=`ls -t |head -n1|awk '{print $0}'`
    echo $ckpt

    cd ../../../../
    CUDA_VISIBLE_DEVICES=7 python tools/test_net.py \
    --dataset gansu1 \
    --cfg configs/e2e_mask_rcnn_R-50-C4.yml \
    --load_ckpt Outputs/e2e_mask_rcnn_R-50-C4/$filename/ckpt/$ckpt

done

评论

作者: Rowl1ng