-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.py
27 lines (22 loc) · 965 Bytes
/
startup.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
f=open("/root/status.txt","w+")
from datetime import datetime
import os
f.write("import os: "+str(datetime.now()))
f.flush()
os.fsync(f.fileno())
os.environ['DLClight'] = "True"
f.write("os.environ['DLClight'] = True: "+str(datetime.now()))
f.flush()
os.fsync(f.fileno())
config_path = '/root/dog_training_NN/DogTrain2-rckoepke-2019-12-10/config.yaml'
f.write("config_path = '/root/dog_training_NN/DogTrain2-rckoepke-2019-12-10/config.yaml': "+str(datetime.now()))
f.flush()
os.fsync(f.fileno())
import deeplabcut
f.write("import deeplabcut: "+str(datetime.now()))
f.flush()
os.fsync(f.fileno())
deeplabcut.analyze_videos(config_path,['/root/dog_training_NN/DogTrain2-rckoepke-2019-12-10/DogTrain1-Fixed.mp4'], videotype='.mp4', save_as_csv=True)
f.write("deeplabcut.analyze_videos(config_path,['/root/dog_training_NN/DogTrain2-rckoepke-2019-12-10/DogTrain1-Fixed.mp4'], videotype='.mp4', save_as_csv=True)"+str(datetime.now()))
f.flush()
os.fsync(f.fileno())