未验证 提交 f3812ce5 编写于 作者: G Guanghua Yu 提交者: GitHub

fix misspelled word and image exif_transpose (#1755)

上级 137a013f
...@@ -341,7 +341,7 @@ class Config(): ...@@ -341,7 +341,7 @@ class Config():
def print_config(self): def print_config(self):
print('----------- Model Configuration -----------') print('----------- Model Configuration -----------')
print('%s: %s' % ('Model Arch', self.arch)) print('%s: %s' % ('Model Arch', self.arch))
print('%s: %s' % ('Use Padddle Executor', self.use_python_inference)) print('%s: %s' % ('Use Paddle Executor', self.use_python_inference))
print('%s: ' % ('Transform Order')) print('%s: ' % ('Transform Order'))
for op_info in self.preprocess_infos: for op_info in self.preprocess_infos:
print('--%s: %s' % ('transform op', op_info['type'])) print('--%s: %s' % ('transform op', op_info['type']))
......
...@@ -25,7 +25,7 @@ if parent_path not in sys.path: ...@@ -25,7 +25,7 @@ if parent_path not in sys.path:
import glob import glob
import numpy as np import numpy as np
import six import six
from PIL import Image from PIL import Image, ImageOps
import paddle import paddle
from paddle import fluid from paddle import fluid
...@@ -205,6 +205,7 @@ def main(): ...@@ -205,6 +205,7 @@ def main():
for im_id in im_ids: for im_id in im_ids:
image_path = imid2path[int(im_id)] image_path = imid2path[int(im_id)]
image = Image.open(image_path).convert('RGB') image = Image.open(image_path).convert('RGB')
image = ImageOps.exif_transpose(image)
# use VisualDL to log original image # use VisualDL to log original image
if FLAGS.use_vdl: if FLAGS.use_vdl:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册