-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtrain_test_local.sh
executable file
·35 lines (33 loc) · 1.25 KB
/
train_test_local.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
name="baseline"
root_dir="/data/datasets/crossview/DenseUAV/data_2022"
data_dir=$root_dir/train
test_dir=$root_dir/test
gpu_ids=0
num_worker=8
lr=0.01
batchsize=16
sample_num=1
block=1
num_bottleneck=512
backbone="ViTS-224" # resnet50 ViTS-224 senet
head="SingleBranch"
head_pool="avg" # global avg max avg+max
cls_loss="CELoss" # CELoss FocalLoss
feature_loss="WeightedSoftTripletLoss" # TripletLoss HardMiningTripletLoss WeightedSoftTripletLoss ContrastiveLoss
kl_loss="KLLoss" # KLLoss
h=224
w=224
load_from="no"
ra="satellite" # random affine
re="satellite" # random erasing
cj="no" # color jitter
rr="uav" # random rotate
python train.py --name $name --data_dir $data_dir --gpu_ids $gpu_ids --sample_num $sample_num \
--block $block --lr $lr --num_worker $num_worker --head $head --head_pool $head_pool \
--num_bottleneck $num_bottleneck --backbone $backbone --h $h --w $w --batchsize $batchsize --load_from $load_from \
--ra $ra --re $re --cj $cj --rr $rr --cls_loss $cls_loss --feature_loss $feature_loss --kl_loss $kl_loss
cd checkpoints/$name
python test.py --name $name --test_dir $test_dir --gpu_ids $gpu_ids --num_worker $num_worker
python evaluate_gpu.py
python evaluateDistance.py --root_dir $root_dir
cd ../../