Skip to content

Commit

Permalink
added retraining function
Browse files Browse the repository at this point in the history
  • Loading branch information
luickk committed Sep 21, 2017
1 parent 6163010 commit 8744d1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
EPOCHS = 20000

MODEL_NAME = 'Pete'
MODEL_TRAIN = 'model_data/Pete'

#training data path
path = 'D:/data_ai/'
Expand All @@ -24,6 +25,9 @@ def main():
model = cnn_model.googlenet(WIDTH, HEIGHT, 3, LR, output=8, model_name=MODEL_NAME)


if MODEL_TRAIN:
model.load(MODEL_TRAIN)

files = sorted(glob.glob('{}/*.npy*'.format(path)), key=data_prog.numericalSort)
for e in tqdm(range(EPOCHS)):
for f in files:
Expand Down

0 comments on commit 8744d1a

Please # to comment.