提交 526d4382 编写于 作者: C ChengduoZhao

fix a line of code in notebook 02.recognize_digits

上级 82fade32
......@@ -367,8 +367,8 @@ def load_image(file):
im = im / 255.0
return im
test_data = []
cur_dir = os.path.dirname(os.path.realpath(__file__))
test_data = []
cur_dir = os.getcwd()
test_data.append((load_image(cur_dir + '/image/infer_3.png'),))
probs = paddle.infer(
......
......@@ -372,7 +372,7 @@ def load_image(file):
return im
test_data = []
cur_dir = os.path.dirname(os.path.realpath(__file__))
cur_dir = os.getcwd()
test_data.append((load_image(cur_dir + '/image/infer_3.png'),))
probs = paddle.infer(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册