-
Notifications
You must be signed in to change notification settings - Fork 46
/
setup_cityscapes.sh
executable file
·45 lines (38 loc) · 1.17 KB
/
setup_cityscapes.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
# Set up cityscapes experiments.
# Author: Mengye Ren ([email protected])
#########################################################
# Set up folder paths.
# Change lines below.
# Path to cityscapes dataset.
CTY_DATA=/ais/gobi4//mren/data/cityscapes
# Path to model storage.
SAVE_FOLDER=/ais/gobi5/mren/results/rec-attend
# Path to log storage.
DASHBOARD_LOGS=/u/mren/public_html/results
# Path to pretrained model outputs.
PRETRAINED_LRR_PATH=/ais/gobi4/mren/models
#########################################################
mkdir -p data
if [ ! \( -e "${data/cityscapes}" \) ]
then
ln -s $CTY_DATA data/cityscapes
fi
FF='results'
if [ ! \( -e "${FF}" \) ]
then
mkdir -p $SAVE_FOLDER
ln -s $SAVE_FOLDER results
fi
FF='logs'
if [ ! \( -e "${FF}" \) ]
then
ln -s $DASHBOARD_LOGS logs
fi
./setup_cityscapes.py
# Download semantic segmentation outputs from G. Ghiasi and C. C. Fowlkes.
# Laplacian pyramid reconstruction and refinement for semantic segmentation.
# In ECCV, 2016:
wget http://www.cs.toronto.edu/~mren/recattend/LRR.zip $PRETRAINED_LRR_PATH/LRR.zip
unzip $PRETRAINED_LRR_PATH/LRR.zip $PRETRAINED_LRR_PATH
mkdir -p pretrained
ln -s $PRETRAINED_LRR_PATH/LRR pretrained/LRR