Skip to content

Commit

Permalink
Update batch_hed.py
Browse files Browse the repository at this point in the history
  • Loading branch information
salisbury-espinosa authored Apr 1, 2020
1 parent 3b8170b commit c9f5826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/edges/batch_hed.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def parse_args():
net.forward()
fuse = net.blobs['sigmoid-fuse'].data[0][0, :, :]
# get rid of the border
fuse = fuse[border:-border, border:-border]
fuse = fuse[(border+35):(-border+35), (border+35):(-border+35)]
# save hed file to the disk
name, ext = os.path.splitext(imgList[i])
sio.savemat(os.path.join(args.hed_mat_dir, name + '.mat'), {'edge_predict': fuse})

0 comments on commit c9f5826

Please sign in to comment.