-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathrequire.py
33 lines (25 loc) · 2.01 KB
/
require.py
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
root = os.getcwd()
if os.path.isdir(os.path.join(root, 'data')) == False:
os.mkdir(os.path.join(root, 'data'))
if os.path.isdir(os.path.join(root, 'checkpoint')) == False:
os.mkdir(os.path.join(root, 'checkpoint'))
if os.path.isdir(os.path.join(root, 'misc/data')) == False:
os.symlink(os.path.join(root, 'data'), os.path.join(root, 'misc/data'))
cmd='wget --no-check-certificate "https://drive.google.com/uc?export=download&id={ID}" -O {LOCAL_FILE_NAME}'
show='https://drive.google.com/uc?export=download&id={ID} and place it at {LOCAL_FILE_NAME}'
print "Please Download these files:"
print show.format(**{'ID': '0B9wE6h4m--wjNWdFbnVYbG9kNm8', 'LOCAL_FILE_NAME': 'checkpoint/Deep360Pilot-model.zip'})
#os.system(cmd.format(**{'ID': '0B9wE6h4m--wjNWdFbnVYbG9kNm8', 'LOCAL_FILE_NAME': 'checkpoint/Deep360Pilot-model.zip'}))
print show.format(**{'ID': '0B9wE6h4m--wjaTNPYUk4NkM0UDA', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-test.zip'})
#os.system(cmd.format(**{'ID': '0B9wE6h4m--wjaTNPYUk4NkM0UDA', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-test.zip'}))
print show.format(**{'ID': '0B9wE6h4m--wjWnF3LV9WUXdZMzA', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-feature.zip'})
#os.system(cmd.format(**{'ID': '0B9wE6h4m--wjWnF3LV9WUXdZMzA', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-feature.zip'}))
print show.format(**{'ID': '0B9wE6h4m--wjZzJkZnNLZW1BNE0', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-batch-feature.zip'})
#os.system(cmd.format(**{'ID': '0B9wE6h4m--wjZzJkZnNLZW1BNE0', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-batch-feature.zip'}))
print show.format(**{'ID': '0B9wE6h4m--wjUXZNQ3cwM245enM', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-batch-label.zip'})
#os.system(cmd.format(**{'ID': '0B9wE6h4m--wjUXZNQ3cwM245enM', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-batch-label.zip'}))
print show.format(**{'ID': '0B9wE6h4m--wjSXVYblBWNktacFk', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-label.zip'})
#os.system(cmd.format(**{'ID': '0B9wE6h4m--wjSXVYblBWNktacFk', 'LOCAL_FILE_NAME': 'data/Deep360Pilot-label.zip'}))