Skip to content

Commit

Permalink
add some comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LaoYang1994 committed Mar 28, 2019
1 parent 66f88fa commit 7bccdb4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cal_panoptic.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def parse():

# these values can be changed via experiments.
sem_threshold = 0. # if the max stuff probability is lower than this threshold, the directly set it to void.
stuff_area_limit = 0 # filter the stuff tha the area is lower than the threshold.
stuff_area_limit = 0 # filter the stuff tha the area is lower than the threshold. According to the official panopticapi, the value
# is set to 64 * 64

# if semantic result judges one pixel to be background, but the max stuff probability
# is larger than the threshold, then the pixel will be judged to be the stuff category.
Expand Down Expand Up @@ -261,6 +262,9 @@ def save_png(c1, c2, img_name):
png_PIL.save(os.path.join(cfg.two_channel_pngs, img_name + '.png'))


# -----------------------------------------------------------------------
# evaluation
# -----------------------------------------------------------------------
def evaluate():
# generate panoptic pictures
print("Convert to panoptic format!!!")
Expand Down

0 comments on commit 7bccdb4

Please sign in to comment.