From 552c2c249fe09ddadb905f16a0412cefe7300280 Mon Sep 17 00:00:00 2001 From: Macrobull Date: Tue, 9 Apr 2019 11:03:36 +0800 Subject: [PATCH] fix doc --- README.md | 2 +- onnx2fluid/README.md | 4 ++-- onnx2fluid/README_en.md | 4 ++-- onnx2fluid/examples/gen_some_samples.py | 4 ++-- onnx2fluid/examples/gen_unet.py | 3 --- onnx2fluid/examples/gen_yolov2.py | 3 --- 6 files changed, 7 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 31271bf..f99e79d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ X2Paddle支持将Caffe和TensorFlow模型转至PaddlePaddle模型 ## [onnx2fluid](onnx2fluid) 1. 支持将ONNX模型转至PaddlePaddle fluid可加载预测模型 -2. Pytorch支持导出为ONNX模型,因此也可通过onnx2fluid支持PyTorch模型的转换 +2. PyTorch支持导出为ONNX模型,因此也可通过onnx2fluid支持PyTorch模型的转换 # 贡献代码 clone代码至本地后,先运行`X2Paddle/commit-prepare.sh`配置代码提交环境 diff --git a/onnx2fluid/README.md b/onnx2fluid/README.md index eebe5c2..19397e5 100644 --- a/onnx2fluid/README.md +++ b/onnx2fluid/README.md @@ -2,13 +2,13 @@ [![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](LICENSE) -onnx2fluid支持将onnx模型转换为PaddlePaddle模型,并用于预测,用户也可以通过将Pytorch模型导出为ONNX格式模型,再使用onnx2fluid将模型转为PaddlePaddle模型。 +onnx2fluid支持将onnx模型转换为PaddlePaddle模型,并用于预测,用户也可以通过将PyTorch模型导出为ONNX格式模型,再使用onnx2fluid将模型转为PaddlePaddle模型。 ## 环境安装 工具开发过程中,我们在如下环境配置中测试模型转换: -* python3.5+ +* python 3.5+ * onnx == 1.4.0 * paddlepaddle == 1.3.0 diff --git a/onnx2fluid/README_en.md b/onnx2fluid/README_en.md index 188c0ca..1adf73e 100644 --- a/onnx2fluid/README_en.md +++ b/onnx2fluid/README_en.md @@ -2,11 +2,11 @@ [![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](LICENSE) -onnx2fluid supports converting ONNX model to PaddlePaddle Model for prediction. +onnx2fluid supports converting ONNX model to PaddlePaddle Model for prediction. ## Running Environment -* python3.5+ (python2 working in progress) +* python 3.5+ (python 2 working in progress) * onnx == 1.4.0 * paddlepaddle == 1.3.0 diff --git a/onnx2fluid/examples/gen_some_samples.py b/onnx2fluid/examples/gen_some_samples.py index 11f17b9..1b1cd84 100644 --- a/onnx2fluid/examples/gen_some_samples.py +++ b/onnx2fluid/examples/gen_some_samples.py @@ -5,8 +5,8 @@ Created on Fri Mar 22 11:19:45 2019 @author: Macrobull -Not all ops in this file are supported by both Pytorch and ONNX -This only demostrates the conversion/validation workflow from Pytorch to ONNX to Paddle fluid +Not all ops in this file are supported by both PyTorch and ONNX +This only demostrates the conversion/validation workflow from PyTorch to ONNX to Paddle fluid """ diff --git a/onnx2fluid/examples/gen_unet.py b/onnx2fluid/examples/gen_unet.py index 8f031b0..851dcec 100644 --- a/onnx2fluid/examples/gen_unet.py +++ b/onnx2fluid/examples/gen_unet.py @@ -5,9 +5,6 @@ Created on Fri Mar 22 11:19:45 2019 @author: Macrobull -Not all ops in this file are supported by both Pytorch and ONNX -This only demostrates the conversion/validation workflow from Pytorch to ONNX to Paddle fluid - """ from __future__ import print_function diff --git a/onnx2fluid/examples/gen_yolov2.py b/onnx2fluid/examples/gen_yolov2.py index d14d072..3676149 100644 --- a/onnx2fluid/examples/gen_yolov2.py +++ b/onnx2fluid/examples/gen_yolov2.py @@ -5,9 +5,6 @@ Created on Fri Mar 22 11:19:45 2019 @author: Macrobull -Not all ops in this file are supported by both Pytorch and ONNX -This only demostrates the conversion/validation workflow from Pytorch to ONNX to Paddle fluid - """ from __future__ import print_function -- GitLab