diff --git a/PaddleCV/gan/README.md b/PaddleCV/gan/README.md index cb5453984bef0b7bb46b320ff24172413e52c124..60e43c85e6dc34180ee31dd7c2dcc2ed1ca401ce 100644 --- a/PaddleCV/gan/README.md +++ b/PaddleCV/gan/README.md @@ -68,7 +68,7 @@ ### 安装说明 **安装[PaddlePaddle](https://github.com/PaddlePaddle/Paddle):** -在当前目录下运行样例代码需要PadddlePaddle Fluid的v.1.6或以上的版本。如果你的运行环境中的PaddlePaddle低于此版本,请根据[安装文档](https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/beginners_guide/install/index_cn.html)中的说明来更新PaddlePaddle。 +在当前目录下运行样例代码需要PadddlePaddle Fluid的v.1.7.1或以上的版本。如果你的运行环境中的PaddlePaddle低于此版本,请根据[安装文档](https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/beginners_guide/install/index_cn.html)中的说明来更新PaddlePaddle。 其他依赖包: 1. `pip install imageio` 或者 `pip install -r requirements.txt` 安装imageio包(保存图片代码中所依赖的包) diff --git a/PaddleCV/gan/util/utility.py b/PaddleCV/gan/util/utility.py index 92c138ab68c35d5a4a8cb4b3c3f7b758951efba6..ed939f529fdf571bf00f3e866ef890f06e17271d 100644 --- a/PaddleCV/gan/util/utility.py +++ b/PaddleCV/gan/util/utility.py @@ -355,12 +355,12 @@ def check_version(): Log error and exit when the installed version of paddlepaddle is not satisfied. """ - err = "PaddlePaddle version 1.6 or higher is required, " \ + err = "PaddlePaddle version 1.7.1 or higher is required, " \ "or a suitable develop version is satisfied as well. \n" \ "Please make sure the version is good with your code." \ try: - fluid.require_version('1.6.0') + fluid.require_version('1.7.1') except Exception as e: print(err) sys.exit(1)