提交 35d9ab1b 编写于 作者: G gangliao 提交者: GitHub

Merge pull request #334 from livc/fix_03_typo

Fix 03.image_classification typo
...@@ -496,7 +496,7 @@ def load_image(file): ...@@ -496,7 +496,7 @@ def load_image(file):
test_data = [] test_data = []
cur_dir = os.path.dirname(os.path.realpath(__file__)) cur_dir = os.path.dirname(os.path.realpath(__file__))
test_data.append((load_image(cur_dir + '/image/dog.png'),) test_data.append((load_image(cur_dir + '/image/dog.png'),))
# with gzip.open('params_pass_50.tar.gz', 'r') as f: # with gzip.open('params_pass_50.tar.gz', 'r') as f:
# parameters = paddle.parameters.Parameters.from_tar(f) # parameters = paddle.parameters.Parameters.from_tar(f)
......
...@@ -505,7 +505,7 @@ def load_image(file): ...@@ -505,7 +505,7 @@ def load_image(file):
return im return im
test_data = [] test_data = []
cur_dir = os.path.dirname(os.path.realpath(__file__)) cur_dir = os.path.dirname(os.path.realpath(__file__))
test_data.append((load_image(cur_dir + '/image/dog.png'),) test_data.append((load_image(cur_dir + '/image/dog.png'),))
# users can remove the comments and change the model name # users can remove the comments and change the model name
# with gzip.open('params_pass_50.tar.gz', 'r') as f: # with gzip.open('params_pass_50.tar.gz', 'r') as f:
......
...@@ -538,7 +538,7 @@ def load_image(file): ...@@ -538,7 +538,7 @@ def load_image(file):
test_data = [] test_data = []
cur_dir = os.path.dirname(os.path.realpath(__file__)) cur_dir = os.path.dirname(os.path.realpath(__file__))
test_data.append((load_image(cur_dir + '/image/dog.png'),) test_data.append((load_image(cur_dir + '/image/dog.png'),))
# with gzip.open('params_pass_50.tar.gz', 'r') as f: # with gzip.open('params_pass_50.tar.gz', 'r') as f:
# parameters = paddle.parameters.Parameters.from_tar(f) # parameters = paddle.parameters.Parameters.from_tar(f)
......
...@@ -547,7 +547,7 @@ def load_image(file): ...@@ -547,7 +547,7 @@ def load_image(file):
return im return im
test_data = [] test_data = []
cur_dir = os.path.dirname(os.path.realpath(__file__)) cur_dir = os.path.dirname(os.path.realpath(__file__))
test_data.append((load_image(cur_dir + '/image/dog.png'),) test_data.append((load_image(cur_dir + '/image/dog.png'),))
# users can remove the comments and change the model name # users can remove the comments and change the model name
# with gzip.open('params_pass_50.tar.gz', 'r') as f: # with gzip.open('params_pass_50.tar.gz', 'r') as f:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册