Skip to content

Commit

Permalink
Evaluate GRFP(LRR-4x, ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Nilsson committed Jun 13, 2018
1 parent 647e33a commit af98368
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ def evaluate(args):
elif args.flow == 'flownet2':
saver_fn.restore(sess, './checkpoints/flownet2')

#saver_fn.save(sess, './checkpoints/flownet1', write_meta_graph=False)
#saver.save(sess, './checkpoints/lrr_grfp', write_meta_graph=False)

L = glob.glob(os.path.join(cfg.cityscapes_dir, 'gtFine', data_split, "*", "*labelIds.png"))
for (progress_counter, im_path) in enumerate(L):
parts = im_path.split('/')[-1].split('_')
Expand Down Expand Up @@ -94,7 +91,6 @@ def evaluate(args):
flow = cv2.calcOpticalFlowFarneback(im_gray, last_im_gray, None, 0.5, 3, 15, 3, 5, 1.2, 0)
flow = flow[...,(1, 0)]
flow = flow[np.newaxis,...]
print("Flow!")

# Static segmentation
x = sess.run(static_output, feed_dict={static_input: im})
Expand Down

0 comments on commit af98368

Please sign in to comment.