Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
harvitronix committed Feb 15, 2018
1 parent 9df6de5 commit 372a269
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions demo.py
Expand Up @@ -8,12 +8,8 @@
Note also that this is a rushed demo script to help a few people who have
requested it and so is quite "rough". :)
"""
from keras.callbacks import TensorBoard, ModelCheckpoint, EarlyStopping, CSVLogger
from keras.models import load_model
from models import ResearchModels
from data import DataSet
import time
import os.path
import numpy as np

def predict(data_type, seq_length, saved_model, image_shape, video_name, class_limit):
Expand All @@ -32,7 +28,7 @@ def predict(data_type, seq_length, saved_model, image_shape, video_name, class_l
# Predict!
prediction = model.predict(np.expand_dims(sample, axis=0))
print(prediction)
print(data.print_class_from_prediction(np.squeeze(prediction, axis=0)))
data.print_class_from_prediction(np.squeeze(prediction, axis=0))

def main():
# model can be one of lstm, lrcn, mlp, conv_3d, c3d.
Expand Down

0 comments on commit 372a269

Please sign in to comment.