-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheval_transfer.sh
executable file
·46 lines (33 loc) · 987 Bytes
/
eval_transfer.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
39
40
41
42
43
44
45
46
#!/bin/bash
#$ -o /scratch_net/hoss/dmenini/nst-for-us-imaging/output/gpu_result/
#$ -S /bin/bash
#$ -j y
#$ -cwd
#$ -l h_vmem=50G
#$ -q gpu.24h.q
#$ -l gpu=1
#$ -r y
name=dmenini
machine=hoss
project=nst-for-us-imaging
env=pytcu10
script=transfer.py
time=$(date +"%d-%m-%y_%T")
home_net=/scratch_net/${machine}/${name}
home_gpu=/scratch/${name}
task_dir=${home_net}/${project}/perc_loss
save_dir=${home_net}/${project}/output/gpu_result/${time}
model_dir=${home_net}/${project}/models/perceptual
sub_dir=${home_gpu}/submission/${time}
source ${home_net}/.bashrc
source ${home_net}/anaconda3/etc/profile.d/conda.sh
conda activate ${env}
mkdir -p ${sub_dir}
mkdir -p ${save_dir}
cp -r ${task_dir}/* ${sub_dir}/
cp -r ${model_dir}/* ${sub_dir}/
content_dir=${home_net}/${project}/img/lq_test
model=us_lq2hq_average_v2
mkdir -p ${save_dir}/$model
python -u ${sub_dir}/${script} --save-dir ${save_dir} --model-name ${model} --content ${content_dir} --gpu 1 "$@"
rm -r ${sub_dir}