-
Notifications
You must be signed in to change notification settings - Fork 1
/
mupentest.py
33 lines (29 loc) · 1.41 KB
/
mupentest.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
"""
DummyScript.com - 2017
Working Test for Mupen64 Model Training
@#@LICENSE@#@
"""
import os
os.chdir("/home/eric/git/tf_utilities")
import lib.build_network as net # Plug all the data into Tensorflow... very carefully...
import lib.mupen64 as data # Start a custom dataset based on the given dataset + special sauce
import lib.process_network as proc
import lib.options as opts
INPUTDATA_IMG = "/home/eric/.local/share/mupen64plus/datasets/mariokart64/_mariokart64_dataset_12_image.npy"
INPUTDATA_LABEL = "/home/eric/.local/share/mupen64plus/datasets/mariokart64/_mariokart64_dataset_12_label.npy"
CONFIG = opts.options(verbose=False)
DATASET = data.mupenDataset(INPUTDATA_IMG, INPUTDATA_LABEL, CONFIG)
NETWORK = net.Build_Adv_Network(DATASET) # THis is where process distribution becomes a reality...Not yet but soon.
WORKER = proc.Process_Network(NETWORK)
print("##########################################################\n")
print("Size of:")
print("- Training-set:\t\t{}".format(len(DATASET.train_labels)))
print("- Test-set:\t\t{}".format(len(DATASET.test_labels)))
print("##########################################################\n")
WORKER.run(epochs=10)
print("##########################################################")
WORKER.end()
print("Thanks! - DummyScript.com")
# check to see if ram is starting to clog up on you...
#os.system("nvidia-smi")