Skip to content
Snippets Groups Projects
Commit 60748f9f authored by hexiangdong2019's avatar hexiangdong2019
Browse files

修改net_eval函数

parent 81beeb0e
No related branches found
No related tags found
No related merge requests found
......@@ -147,8 +147,8 @@ def net_eval():
bi = 0
image_num = 0
for i, line in enumerate(img_lst):
img_path = './datasets/JPEGImages/' + line + '.bmp'
msk_path = './datasets/SegmentationClass/' + line + '.png'
img_path = './datasets/JPEGImages/' + line.replace('\n', '') + '.bmp'
msk_path = './datasets/SegmentationClass/' + line.replace('\n', '') + '.png'
img_ = cv2.imread(img_path)
msk_ = cv2.imread(msk_path, cv2.IMREAD_GRAYSCALE)
print(img_path)
......
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