summaryrefslogtreecommitdiff
path: root/Code
diff options
context:
space:
mode:
authorMatt Cooper <matthew_cooper@brown.edu>2016-08-21 16:00:36 -0400
committerMatt Cooper <matthew_cooper@brown.edu>2016-08-21 16:00:36 -0400
commit8d1fd6e74879bb03f2471eaff6f8e2fe8ccb8a63 (patch)
tree1f7ffc1f57e4a0284a1c92f4c4a69d3cf4d00f91 /Code
parentada00b56577635d59d4357a17affc479685e1b6b (diff)
updated test
Diffstat (limited to 'Code')
-rw-r--r--Code/test.py26
1 files changed, 14 insertions, 12 deletions
diff --git a/Code/test.py b/Code/test.py
index 3b2cd86..bc040ac 100644
--- a/Code/test.py
+++ b/Code/test.py
@@ -39,6 +39,8 @@ def get_full_clips(data_dir, num_clips, num_rec_out=1):
ep_frame_paths = glob(os.path.join(ep_dir, '*'))
start_index = np.random.choice(len(ep_frame_paths) - (c.HIST_LEN + num_rec_out - 1))
clip_frame_paths = ep_frame_paths[start_index:start_index + (c.HIST_LEN + num_rec_out)]
+ print clip_num
+ print clip_frame_paths
# read in frames
for frame_num, frame_path in enumerate(clip_frame_paths):
@@ -52,16 +54,16 @@ def get_full_clips(data_dir, num_clips, num_rec_out=1):
return clips
-# get_full_clips('../Data/Ms_Pacman/Test/', 8, num_rec_out=64)
+get_full_clips('../Data/Ms_Pacman/Test/', 8, num_rec_out=64)
-def test():
- """
- Runs one test step on the generator network.
- """
- batch = get_test_batch(c.BATCH_SIZE, num_rec_out=2)
- save_batch(batch, 2)
-
- # self.g_model.test_batch(
- # batch, self.global_step, num_rec_out=2)
-
-test() \ No newline at end of file
+# def test():
+# """
+# Runs one test step on the generator network.
+# """
+# batch = get_test_batch(c.BATCH_SIZE, num_rec_out=2)
+# save_batch(batch, 2)
+#
+# # self.g_model.test_batch(
+# # batch, self.global_step, num_rec_out=2)
+#
+# test()