forked from LynnChan706/object_detection_auto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
creat_data_1.py
33 lines (25 loc) · 990 Bytes
/
creat_data_1.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 python3.5
# coding=utf-8
'''
@date = '17/12/1'
@author = 'lynnchan'
@email = '[email protected]'
'''
import os
from gconfig import *
from xml2csv import creat_csv
from gen_tfrecord import crate_tfrecord
from creat_pbtxt import write_config_pbtxt
from config_net import creat_train_config_file
train_param_str=' --train_dir='+os.path.abspath(output_train_dir).replace('\\','/')+'/'
config_param_str=' --pipeline_config_path='+os.path.abspath(output_train_dir).replace('\\','/')+'/'+output_train_dir+'.config'
if __name__ == '__main__':
creat_csv()
crate_tfrecord()
write_config_pbtxt()
creat_train_config_file()
print('all prepare is alread!')
print('please use command to train net:\n')
print('python train.py --logtostderr'+train_param_str+config_param_str)
print('please use command to look tensorboard:\n')
print('tensorboard --logdir='+os.path.abspath(output_train_dir).replace('\\','/')+'/')