Skip to content

Commit

Permalink
dump_percent implemented under ImageDumper.create_composite_image
Browse files Browse the repository at this point in the history
Approved for merge
  • Loading branch information
dhodcz2 authored and Mary-h86 committed Nov 29, 2023
1 parent b0dcda8 commit f68fd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tile2net/tileseg/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ def save_prob_and_err_mask(self, dump_dict, img_name, idx, prediction):
return True, err_pil
return False, err_pil

dump_percent = 100 # first one always dumps if args.dump_percent != 0
def create_composite_image(self, input_image, prediction_pil, img_name):
if not self.args.dump_percent:
return
Expand Down Expand Up @@ -333,7 +334,6 @@ def get_dump_assets(self, dump_dict, img_name, idx, colorize_mask_fn, to_tensorb
mask_pil.save(mask_fn)
to_tensorboard.append(self.visualize(mask_pil))

dump_percent = 100 # first one always dumps

def dump(self, dump_dict, val_idx, testing=None, grid=None):

Expand Down

0 comments on commit f68fd90

Please sign in to comment.