File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,15 @@ if [ ! -e $TEST_IMG ]; then
23
23
wget -P $RESULT_PATH http://sceneparsing.csail.mit.edu/data/ADEChallengeData2016/images/validation/$TEST_IMG
24
24
fi
25
25
26
+ if [ -z " $DOWNLOAD_ONLY " ]
27
+ then
28
+
26
29
# Inference
27
30
python3 -u test.py \
28
31
--imgs $TEST_IMG \
29
32
--cfg config/ade20k-resnet50dilated-ppm_deepsup.yaml \
30
33
DIR $MODEL_PATH \
31
34
TEST.result ./ \
32
35
TEST.checkpoint epoch_20.pth
36
+
37
+ fi
Original file line number Diff line number Diff line change 8
8
"source" : [
9
9
" %%bash\n " ,
10
10
" !(stat -t /usr/local/lib/*/dist-packages/google/colab > /dev/null 2>&1) && exit \n " ,
11
- " git clone https://github.com/davidbau/semantic-segmentation-pytorch.git seg_code 2>> install.log\n " ,
12
- " /content/seg_code/demo_test.sh"
11
+ " git clone -b tutorial https://github.com/davidbau/semantic-segmentation-pytorch.git seg_code 2>> install.log\n " ,
12
+ " DOWNLOAD_ONLY=1 /content/seg_code/demo_test.sh"
13
13
]
14
14
},
15
15
{
144
144
}
145
145
],
146
146
"metadata" : {
147
+ "accelerator" : " GPU" ,
147
148
"kernelspec" : {
148
149
"display_name" : " Python 3" ,
149
150
"language" : " python" ,
You can’t perform that action at this time.
0 commit comments