bug fix: img_path->path

pull/249/head
kaiyangzhou 2019-09-13 23:23:13 +01:00
parent 0f658d045d
commit 7a73dca4ac
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ def read_image(path):
img = Image.open(path).convert('RGB')
got_img = True
except IOError:
print('IOError incurred when reading "{}". Will redo. Don\'t worry. Just chill.'.format(img_path))
print('IOError incurred when reading "{}". Will redo. Don\'t worry. Just chill.'.format(path))
pass
return img