Skip to content

Commit

Permalink
Remove unused demo function.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamvitJ committed Jun 10, 2019
1 parent bc4089d commit d1d7bb1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions dff_deeplab/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
from utils.tictoc import tic, toc
from nms.nms import py_nms_wrapper, cpu_nms_wrapper, gpu_nms_wrapper

ref_img_prefix = 'frankfurt_000000_000294'
ref_pred_prefix = 'seg_frankfurt_000000_012000'

def parse_args():
parser = argparse.ArgumentParser(description='Show Deep Feature Flow demo')
parser.add_argument('-v', '--version', type=int, default=18)
Expand All @@ -58,15 +55,6 @@ def fast_hist(pred, label, n):
def per_class_iu(hist):
return np.true_divide(np.diag(hist), (hist.sum(1) + hist.sum(0) - np.diag(hist)))

def get_label_if_available(label_files, im_filename):
for lb_file in label_files:
_, lb_filename = os.path.split(lb_file)
lb_filename = lb_filename[:len(ref_img_prefix)]
if im_filename.startswith(lb_filename):
print 'label {}'.format(lb_filename)
return lb_file
return None

def getpallete(num_cls):
"""
this function is to get the colormap for visualizing the segmentation mask
Expand Down

0 comments on commit d1d7bb1

Please sign in to comment.