diff --git a/docs/en/faq_en.md b/docs/en/faq_en.md index 6f34117fd46ac4db24c4c369e41a3e11ce835a9a..1aa60bdf1b259a91811be21b8c729e576b67fc99 100644 --- a/docs/en/faq_en.md +++ b/docs/en/faq_en.md @@ -43,19 +43,6 @@ VALID: - ToCHWImage: ``` ->> -* Q: What should I do if I want to transform the weights' format from `pdparams` to an earlier version(before Paddle1.7.0), which consists of the scattered files? -* A: You can use `fluid.load` to load the `pdparams` weights and use `fluid.io.save_vars` to save the weights as scattered files. The demo is as follows. Finally all the scattered files will be saved in the path `path_to_save_var`. -``` -fluid.load( - program=infer_prog, model_path=args.pretrained_model, executor=exe) -state = fluid.io.load_program_state(args.pretrained_model) -def exists(var): - return var.name in state -fluid.io.save_vars(exe, "./path_to_save_var", infer_prog, predicate=exists) -``` - - >> * Q: The error occured when using visualdl under python2, shows that: `TypeError: __init__() missing 1 required positional argument: 'sync_cycle'`. * A: `Visualdl` is only supported on python3 as now, whose version needs also be higher than `2.0`. If your visualdl version is lower than 2.0, you can also install visualdl 2.0 by `pip3 install visualdl==2.0.0b8 -i https://mirror.baidu.com/pypi/simple`. diff --git a/docs/en/tutorials/install_en.md b/docs/en/tutorials/install_en.md index 8f646a45ae23a7187d6b6842025ea39a7f74737f..157b0143987cf4861f564a7fe6468a4cdee58afa 100644 --- a/docs/en/tutorials/install_en.md +++ b/docs/en/tutorials/install_en.md @@ -8,7 +8,7 @@ This document introduces how to install PaddleClas and its requirements. ## Install PaddlePaddle -Python 3.5, CUDA 9.0, CUDNN7.0 nccl2.1.2 and later version are required at first, For now, PaddleClas only support training on the GPU device. Please follow the instructions in the [Installation](http://www.paddlepaddle.org.cn/install/quick) if the PaddlePaddle on the device is lower than v1.7 +Python 3.6, CUDA 9.0, CUDNN7.0 nccl2.1.2 and later version are required at first, For now, PaddleClas only support training on the GPU device. Please follow the instructions in the [Installation](http://www.paddlepaddle.org.cn/install/quick) if the PaddlePaddle on the device is lower than v1.7 Install PaddlePaddle @@ -21,8 +21,8 @@ or compile from source code, please refer to [Installation](http://www.paddlepad Verify Installation ```python -import paddle.fluid as fluid -fluid.install_check.run_check() +import paddle +paddle.utils.run_check() ``` Check PaddlePaddle version: @@ -32,7 +32,7 @@ python -c "import paddle; print(paddle.__version__)" ``` Note: -- Make sure the compiled version is later than v1.7 +- Make sure the compiled version is later than PaddlePaddle2.0rc. - Indicate **WITH_DISTRIBUTE=ON** when compiling, Please refer to [Instruction](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/install/Tables.html#id3) for more details. diff --git a/docs/zh_CN/faq.md b/docs/zh_CN/faq.md index 921a68911067a120305a139c245cd7b41f48d5a1..68330f36bf236f7ddf59909376ee0d6e9bfed2b1 100644 --- a/docs/zh_CN/faq.md +++ b/docs/zh_CN/faq.md @@ -210,18 +210,6 @@ VALID: - ToCHWImage: ``` ->> -* Q: 如果想将保存的`pdparams`模型参数文件转换为早期版本(Paddle1.7.0之前)的零碎文件(每个文件均为一个单独的模型参数),该怎么实现呢? -* A: 可以首先导入`pdparams`模型,之后使用`fluid.io.save_vars`函数将模型保存为零散的碎文件。示例代码如下,最终所有零散文件会被保存在`path_to_save_var`目录下。 -``` -fluid.load( - program=infer_prog, model_path=args.pretrained_model, executor=exe) -state = fluid.io.load_program_state(args.pretrained_model) -def exists(var): - return var.name in state -fluid.io.save_vars(exe, "./path_to_save_var", infer_prog, predicate=exists) -``` - >> * Q: python2下,使用visualdl的时候,报出以下错误,`TypeError: __init__() missing 1 required positional argument: 'sync_cycle'`,这是为什么呢? * A: 目前visualdl仅支持在python3下运行,visualdl需要是2.0以上的版本,如果visualdl版本不对的话,可以通过以下方式进行安装:`pip3 install visualdl==2.0.0b8 -i https://mirror.baidu.com/pypi/simple` diff --git a/docs/zh_CN/tutorials/install.md b/docs/zh_CN/tutorials/install.md index 87505ecbdbf7a787fde8ab8b82e52582601f149f..a971b032652f5f236194f3094153785bdd6de6d8 100644 --- a/docs/zh_CN/tutorials/install.md +++ b/docs/zh_CN/tutorials/install.md @@ -9,7 +9,7 @@ ## 二、安装PaddlePaddle -运行PaddleClas需要`PaddlePaddle 2.0-beta`或更高版本。请参照[安装文档](http://www.paddlepaddle.org.cn/install/quick)中的说明进行操作。 +运行PaddleClas需要`PaddlePaddle 2.0rc`或更高版本。请参照[安装文档](http://www.paddlepaddle.org.cn/install/quick)中的说明进行操作。 如果已经安装好了cuda、cudnn、nccl或者安装好了docker、nvidia-docker运行环境,可以pip安装最新GPU版本PaddlePaddle @@ -22,8 +22,8 @@ pip install paddlepaddle-gpu --upgrade 使用以下命令可以验证PaddlePaddle是否安装成功。 ```python -import paddle.fluid as fluid -fluid.install_check.run_check() +import paddle +paddle.utils.run_check() ``` 查看PaddlePaddle版本的命令如下: @@ -33,7 +33,7 @@ python -c "import paddle; print(paddle.__version__)" ``` 注意: -- 从源码编译的PaddlePaddle版本号为0.0.0,请确保使用了Fluid v1.7之后的源码编译。 +- 从源码编译的PaddlePaddle版本号为0.0.0,请确保使用了PaddlePaddle 2.0rc及之后的源码编译。 - PaddleClas基于PaddlePaddle高性能的分布式训练能力,若您从源码编译,请确保打开编译选项,**WITH_DISTRIBUTE=ON**。具体编译选项参考[编译选项表](https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/install/Tables.html#id3) **运行环境需求:**