diff --git a/02.recognize_digits/README.cn.md b/02.recognize_digits/README.cn.md index 50d257e35d273a799e5881cbf106f039f699af95..928f2a9dc7f753d267d2ffb284707226e7162709 100644 --- a/02.recognize_digits/README.cn.md +++ b/02.recognize_digits/README.cn.md @@ -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( diff --git a/02.recognize_digits/README.md b/02.recognize_digits/README.md index 43cc9a087b9b0c40035b09869219b981ed393856..da4801ef23b4420059b12c800e19f83950ec6c8d 100644 --- a/02.recognize_digits/README.md +++ b/02.recognize_digits/README.md @@ -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( diff --git a/02.recognize_digits/index.cn.html b/02.recognize_digits/index.cn.html index 05e2c05c71b9d6896ca877f4e8c892516632fce5..1d070d2029844d8eb18a1474ec582e0e0c9cc42a 100644 --- a/02.recognize_digits/index.cn.html +++ b/02.recognize_digits/index.cn.html @@ -367,7 +367,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( diff --git a/02.recognize_digits/index.html b/02.recognize_digits/index.html index fdd902d5a1e4bc82800d79503b214ce4ae8424d1..a8709a9e3c1de7466f6029da4a3f98adfa1eff75 100644 --- a/02.recognize_digits/index.html +++ b/02.recognize_digits/index.html @@ -371,7 +371,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( diff --git a/03.image_classification/README.cn.md b/03.image_classification/README.cn.md index 1b54562c3c48e76079ef8277fe946dce22ee7911..3e057b8951bbf613c5d7368f86ae51b5001ea5d4 100644 --- a/03.image_classification/README.cn.md +++ b/03.image_classification/README.cn.md @@ -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: diff --git a/03.image_classification/README.md b/03.image_classification/README.md index 8cd316686e1cb529d85f5120fcbc49a7e69414bb..9c1554975f27716e61749b3d145cdd3e37318bdc 100644 --- a/03.image_classification/README.md +++ b/03.image_classification/README.md @@ -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 diff --git a/03.image_classification/index.cn.html b/03.image_classification/index.cn.html index d536bb9178933295b5b9491bc7b67b329a0d324f..eff3e3446b65ce0120e106b9b18173f773d29e67 100644 --- a/03.image_classification/index.cn.html +++ b/03.image_classification/index.cn.html @@ -536,7 +536,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: diff --git a/03.image_classification/index.html b/03.image_classification/index.html index 73798ea1e0f07df9d3465b800395cd1d0ce6b44a..afc72f64cd8d08586802ee9534a65a18547d20ce 100644 --- a/03.image_classification/index.html +++ b/03.image_classification/index.html @@ -545,7 +545,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