未验证 提交 fa35dc03 编写于 作者: C chenxujun 提交者: GitHub

Update image.py (#50644)

上级 604016f4
...@@ -41,7 +41,7 @@ import numpy as np ...@@ -41,7 +41,7 @@ import numpy as np
interpreter = sys.executable interpreter = sys.executable
# Note(zhouwei): if use Python/C 'PyRun_SimpleString', 'sys.executable' # Note(zhouwei): if use Python/C 'PyRun_SimpleString', 'sys.executable'
# will be the C++ execubable on Windows # will be the C++ executable on Windows
if sys.platform == 'win32' and 'python.exe' not in interpreter: if sys.platform == 'win32' and 'python.exe' not in interpreter:
interpreter = sys.exec_prefix + os.sep + 'python.exe' interpreter = sys.exec_prefix + os.sep + 'python.exe'
import_cv2_proc = subprocess.Popen( import_cv2_proc = subprocess.Popen(
...@@ -332,7 +332,7 @@ def simple_transform( ...@@ -332,7 +332,7 @@ def simple_transform(
): ):
""" """
Simply data argumentation for training. These operations include Simply data argumentation for training. These operations include
resizing, croping and flipping. resizing, cropping and flipping.
Example usage: Example usage:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册