Skip to content
Snippets Groups Projects
Commit 88f85458 authored by 何向东's avatar 何向东
Browse files

修正val的加载方式

parent eb65e47f
No related branches found
No related tags found
No related merge requests found
......@@ -159,8 +159,9 @@ def net_eval():
batch_msk_lst.append(msk_)
bi += 1
if bi == 4:
batch_res = eval_batch_scales(eval_net, batch_img_lst, scales=[1.0],
base_crop_size=513, flip=True)
#batch_res = eval_batch_scales(eval_net, batch_img_lst, scales=[1.0],
# base_crop_size=513, flip=True)
batch_res = batch_img_lst
for mi in range(4):
hist += cal_hist(batch_msk_lst[mi].flatten(), batch_res[mi].flatten(), 6)
......@@ -170,8 +171,9 @@ def net_eval():
print('processed {} images'.format(i + 1))
image_num = i
if bi > 0:
batch_res = eval_batch_scales(eval_net, batch_img_lst, scales=[1.0],
base_crop_size=513, flip=True)
# batch_res = eval_batch_scales(eval_net, batch_img_lst, scales=[1.0],
# base_crop_size=513, flip=True)
batch_res = batch_img_lst
for mi in range(bi):
hist += cal_hist(batch_msk_lst[mi].flatten(), batch_res[mi].flatten(), 6)
print('processed {} images'.format(image_num + 1))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment