Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix 02.recognize_digits notebook error #357

Merged
merged 3 commits into from
Sep 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 02.recognize_digits/README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,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(
Expand Down
2 changes: 1 addition & 1 deletion 02.recognize_digits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,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(
Expand Down
2 changes: 1 addition & 1 deletion 02.recognize_digits/index.cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
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(
Expand Down
2 changes: 1 addition & 1 deletion 02.recognize_digits/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
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(
Expand Down
2 changes: 1 addition & 1 deletion 03.image_classification/README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,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/dog.png'),))

# with open('params_pass_50.tar', 'r') as f:
Expand Down
2 changes: 1 addition & 1 deletion 03.image_classification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def load_image(file):
im = im / 255.0
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/dog.png'),))

# users can remove the comments and change the model name
Expand Down
2 changes: 1 addition & 1 deletion 03.image_classification/index.cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@
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/dog.png'),))

# with open('params_pass_50.tar', 'r') as f:
Expand Down
2 changes: 1 addition & 1 deletion 03.image_classification/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@
im = im / 255.0
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/dog.png'),))

# users can remove the comments and change the model name
Expand Down