forked from ouc-ocean-group/Gaussian-Dynamic-Convolution
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgo.sh
More file actions
31 lines (21 loc) · 657 Bytes
/
go.sh
File metadata and controls
31 lines (21 loc) · 657 Bytes
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
#!/usr/bin/env bash
# Training scripts for Highway Net.
# Prepare for data.
mkdir -p data/cityscapes
hdfs dfs -get $PAI_DATA_DIR
ls
echo "Preparing for Dataset ..."
tar -xf cityscapes_formated.tar -C ./data/cityscapes/
cd data/cityscapes
ls
echo "Preparing task is finished!"
cd ../../
echo "GO"
python3 train.py
echo "Save All ..."
tar -I pigz -cvf ./log.tar ./log
tar -I pigz -cvf ./output.tar ./output
hdfs dfs -mkdir -p $PAI_DEFAULT_FS_URI/data/models/$PAI_USER_NAME/gd/
hdfs dfs -put -f ./log.tar $PAI_DEFAULT_FS_URI/data/models/$PAI_USER_NAME/gd/
hdfs dfs -put -f ./outputs.tar $PAI_DEFAULT_FS_URI/data/models/$PAI_USER_NAME/gd/
echo "Done"