def metrics_zfilled(): metrics = Metrics(METRIC_FUNCS) pred_and_gt = [ reco_and_gt_zfilled_from_val_file(*val_gen_scaled[i]) for i in tqdm(range(len(val_gen_scaled)), desc='Val files for z-filled') ] for im_recos, images in tqdm(pred_and_gt, desc='Stats for z-filled'): metrics.push(images, im_recos) return metrics
def runtime_zfilled(): data = val_gen_mask[0] start = time.time() reco_and_gt_zfilled_from_val_file(*data, crop=False) end = time.time() return end - start
def runtime_zfilled(): data = val_gen_scaled[0] start = time.time() reco_and_gt_zfilled_from_val_file(*data) end = time.time() return end - start