-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (22 loc) · 742 Bytes
/
Copy pathmain.py
File metadata and controls
29 lines (22 loc) · 742 Bytes
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
import sys
import os
import data
import recognition
import GAN
import tensorflow as tf
#main function
if __name__ =='__main__':
"""
TODO:
Add a pipeline so that the data generated will be automatically pushed into the
classifier's training data and it can be retrained in real time. Print results
while on the vm.
"""
print('Usage: python3 main.py homogeneous_data_to_be_replicated baseline_data file_save')
print('Tensorflow Version: ', tf.__version__)
imgs_to_generated = sys.argv[1:][0]
base_line_imgs = sys.argv[1:][1]
file = sys.argv[1:][2]
gen_data = data.Data(imgs_to_generated, base_line_imgs).data_array
gan_instance = GAN.GAN()
gan_instance.train(gen_data, 300, file)