diff --git a/examples/USTC/homework.md b/examples/USTC/homework.md deleted file mode 100644 index d72520ddf..000000000 --- a/examples/USTC/homework.md +++ /dev/null @@ -1,40 +0,0 @@ -【作业】 -1. 使用CIFAR10数据集,基于EffNet网络实现图像分类。 -2. 使用CIFAR10数据集,基于DarkNet网络实现图像分类。 -3. 在眼疾识别数据集上训练SENet网络。 -4. 在眼疾识别数据集上训练SqueezeNet网络。 -5. 在眼疾识别数据集上训练DPN网络。 -6. 使用THUCNews标题数据集,基于textcnn网络实现文本分类。 -7. 基于LSTM网络训练一个语言模型,并尝试用于下一个词预测任务进行效果验证。 -8. 使用LCQMC数据集,基于LSTM网络训练一个文本匹配模型。 -9. 使用ChnSentiCorp数据集,基于GRU网络完成情感分析模型。 -10. 手动实现LSTM模型,并尝试利用IMDB数据集进行情感分析。 - -参考链接:https://aistudio.baidu.com/aistudio/education/group/info/1297 -https://github.com/PaddlePaddle/PaddleClas - - -要求: -实训作业分为理论讲解和代码实现两部分,模型理论要求对实训作业中使用的模型进行详细的解释,图文并茂为佳。 -代码实现部分书写流程如下: -1. 实验设计逻辑:解释任务,说明实验设计逻辑 -2. 数据处理:解释数据集,处理数据为模型输入格式 -3. 模型设计:根据任务设计模型,需要给出模型设计图 -4. 训练配置:定义模型训练的超参数,模型实例化,指定训练的cpu或gpu资 源,定义优化器等等 -5. 模型训练与评估:训练模型,在训练过程中,根据开发集适时打印结果 -6. 模型推理:设计一个接口函数,通过这个接口函数能够方便地对任意一个样本进行实时预测 - -特殊任务如强化学习可以省略数据处理和模型推理部分。书写流程可参考:https://aistudio.baidu.com/aistudio/projectdetail/2023570 - -作业命名及pr commit要以作业内容进行命名,需用英文命名,不可以使用学号/姓名或xxx homework等形式。命名方式举例:image classification with VGG model on CIFAR-10 dataset. - -提交格式: -使用 aistudio 实训平台进行作业实现,在 github repo 中以提pr的形式提交 aistudio 链接(注意:作业需要公开才能看到),注意保留训练结果和日志;提交 python 版本可以获得额外 加分,python 版本需要将代码按模块拆分,并提交详细的 readme(包括模型简介、数据 准备、模型训练、模型测试及测试结果、模型推理和参考论文),可参考: https://github.com/PaddlePaddle/PaddleVideo/blob/develop/docs/zh-CN/model_zoo/recognition/tsm.md - -作业提交地址: -https://github.com/PaddlePaddle/awesome-DeepLearning/tree/develop/examples - -提交pr流程: -https://github.com/PaddlePaddle/awesome-DeepLearning/blob/develop/examples/awesome-DeepLearning_pr_procedure.md - - diff --git a/examples/awesome-DeepLearning_pr_procedure.md b/examples/awesome-DeepLearning_pr_procedure.md deleted file mode 100644 index 939d1cd83..000000000 --- a/examples/awesome-DeepLearning_pr_procedure.md +++ /dev/null @@ -1,121 +0,0 @@ -# awesome-DeepLearning pull request 教程 - -1. 打开【终端】,进入想要存放repo文件的目录下 - - 比如这里想存放在 Desktop/examples/目录下 - - terminal - - - -2. 配置git - - 配置用户名:git config --global user.name username - - 配置邮箱:git config --global user.email user@email - - **username 和 user@email 需要替换成自己github账号的用户名和邮箱** - - ![git config](../docs/images/pr_procedure/git_config.png) - - - -3. 将awesome-DeepLearning fork到自己的github仓库中 - - ![fork](../docs/images/pr_procedure/fork1.png) - - ![fork](../docs/images/pr_procedure/fork2.png) - - 大家fork出来得到的目录应该是username/awesome-DeepLearning,这里显示/tutorials是一个名称更换问题,不用在意。 - - - -4. 在本地克隆 fork 项目 - - > git clone https://github.com/ZhangHandi/tutorials.git - - **后面这个地址需要用自己github仓库下awesome-DeepLearning的地址进行替换** - - ![repo address](../docs/images/pr_procedure/repo_address.png) - - - -5. cd 到克隆的项目 - - > cd awesome-DeepLearning/ - - - -6. 添加上游地址 - - > git remote add upstream https://github.com/PaddlePaddle/awesome-DeepLearning.git - - **这个地址不用更换** - - - -7. 获取上游代码 - - > git fetch upstream - - - -8. 切换到上游的 upstream/master 分支 - - > git checkout upstream/master - - - -9. 在上游分支 upstream/master 的基础上新建 my_branch 分支 - - > git checkout -b my_branch - - **my_branch这个分支命名可以替换** - - - -10. 修改要修改的部分,比如将文件放到awesome-DeepLearning中的examples文件夹下,进行作业提交 - - - -11. 添加修改的文件,对修改的文件进行代码规范,pre-commit 会自动调整代码格式,执行一次即可,后续commit不用再执行 - - > git add . - > - > pip install pre-commit - > - > pre-commit install - - - -12. 提交修改 - - > git commit -m ' ' - - **' ' 中可以添加针对修改的评论,突出实现的功能要点。pre-commit 对代码进行修改后,需要再次执行git add . 和 git commit 步骤** - - - -13. push 到远程分支 - - > git push origin my_branch - - - -14. 最后在自己的github上的pull request模块提交pr - - push 后打开自己github仓库下的awesome-DeepLearning,会看到 **compare & pull request** 的按钮,点击,跳转到下面的页面,点击 **create pull request** 提交pr。 - - ![pr1](../docs/images/pr_procedure/pr1.png) - - ![pr2](../docs/images/pr_procedure/pr2.png) - - - -15. 提交pr后,点击签署CLA协议,未签署协议会显示“Some checks haven't completed yet”,确认“all checks have passed”,及为成功提交pr。 - - ![CLA](../docs/images/pr_procedure/CLA.png) - - ![pr_check1](../docs/images/pr_procedure/pr_check1.png) - - ![pr_check2](../docs/images/pr_procedure/pr_check2.png) diff --git a/examples/homework.md b/examples/homework.md deleted file mode 100644 index 8a791cb2c..000000000 --- a/examples/homework.md +++ /dev/null @@ -1,40 +0,0 @@ -【作业】 -1. 使用CIFAR10数据集,基于EffNet网络实现图像分类。 -2. 使用CIFAR10数据集,基于DarkNet网络实现图像分类。 -3. 在眼疾识别数据集上训练SENet网络。 -4. 在眼疾识别数据集上训练SqueezeNet网络。 -5. 在眼疾识别数据集上训练DPN网络。 -6. 使用THUCNews标题数据集,基于textcnn网络实现文本分类。 -7. 基于LSTM网络训练一个语言模型,并尝试用于下一个词预测任务进行效果验证。 -8. 使用LCQMC数据集,基于LSTM网络训练一个文本匹配模型。 -9. 使用ChnSentiCorp数据集,基于GRU网络完成情感分析模型。 -10. 手动实现LSTM模型,并尝试利用IMDB数据集进行情感分析。 - -参考链接:https://aistudio.baidu.com/aistudio/education/group/info/1297 -https://github.com/PaddlePaddle/PaddleClas - - -要求: -实训作业分为理论讲解和代码实现两部分,模型理论要求对实训作业中使用的模型进行详细的解释,图文并茂为佳。 -代码实现部分书写流程如下: -1. 实验设计逻辑:解释任务,说明实验设计逻辑 -2. 数据处理:解释数据集,处理数据为模型输入格式 -3. 模型设计:根据任务设计模型,需要给出模型设计图 -4. 训练配置:定义模型训练的超参数,模型实例化,指定训练的cpu或gpu资 源,定义优化器等等 -5. 模型训练与评估:训练模型,在训练过程中,根据开发集适时打印结果 -6. 模型推理:设计一个接口函数,通过这个接口函数能够方便地对任意一个样本进行实时预测 - -特殊任务如强化学习可以省略数据处理和模型推理部分。书写流程可参考:https://aistudio.baidu.com/aistudio/projectdetail/2023570 - -作业命名及pr commit要以作业内容进行命名,需用英文命名,不可以使用学号/姓名或xxx homework等形式。命名方式举例:image classification with VGG model on CIFAR-10 dataset. - -提交格式: -使用 aistudio 实训平台进行作业实现,在 github repo 中以提pr的形式提交 aistudio 链接(注意:作业需要公开才能看到),注意保留训练结果和日志;提交 python 版本可以获得额外 加分,python 版本需要将代码按模块拆分,并提交详细的 readme(包括模型简介、数据 准备、模型训练、模型测试及测试结果、模型推理和参考论文),可参考: https://github.com/PaddlePaddle/PaddleVideo/blob/develop/docs/zh-CN/model_zoo/recognition/tsm.md - -作业提交地址: -https://github.com/PaddlePaddle/awesome-DeepLearning/tree/master/examples - -提交pr流程: -https://github.com/PaddlePaddle/awesome-DeepLearning/blob/master/examples/awesome-DeepLearning_pr_procedure.md - - diff --git a/examples/template/README.md b/examples/template/README.md deleted file mode 100644 index 312cbf882..000000000 --- a/examples/template/README.md +++ /dev/null @@ -1,74 +0,0 @@ -# examples - - - -## 作业简介 - -作业包括深度学习基础知识和代码实践,比如下面的形式: - -### 1. 深度学习基础知识 - -+ CNN-DSSM知识点补充:补充DSSM变体模型的知识点,主要包括:概念,模型,作用,场景,优缺点等。 (10分) -+ LSTM-DSSM知识点补充:补充DSSM变体模型的知识点,主要包括:概念,模型,作用,场景,优缺点等。 -+ MMoE多任务学习知识点补充:补充主流的推荐模型MMoE模型的知识点,主要包括:概念,模型,作用,场景,优缺点等。 -+ ShareBottom多任务学习知识点补充:补充经典的多任务学习ShareBottom模型的知识点,主要包括:概念,模型,作用,场景,优缺点等。 -+ YouTube深度学习视频推荐系统知识点:补充视频推荐的经典架构知识点,主要包括:概念,流程,原理,作用,优缺点等。 - -### 2. 代码实践 - -写一个广告推荐领域的“点击率预估模型”案例: - -+ 可选网络结构:DNN,DeepFM、wide&deep; - -+ 广告点击数据集Criteo网址: https://www.kaggle.com/c/criteo-display-ad-challenge/ - -+ 具体形式为理论+代码。 - -## 依赖模块 - -书写程序运行所需要的python及相应的库的版本,比如: - -+ Python 3.x -+ paddlepaddle==2.1.1 -...... - - -## 项目结构说明 - -需要解释每一个python文件的作用和功能,必须包含的文件train.py, predict.py, 知识点的md文件,训练日志training.log, 比如下面的结构: - -``` -|-data_process.py: 数据预处理 -|-dataloader.py: 包含构建dataloader工具函数 -|-model.py: 模型的定义 -|-train.py: 训练文件,训练会输出日志等等 -|-predict.py: 启动模型预测的脚本,并且储存预测结果于txt文件 -|- example.md : example知识点的md文件 -|-example.ipynb : 模型的notebook文件 -|-training.log :训练过程的日志文件 -``` - - - -## 代码实践运行 - -需要把每一步的执行命令写清楚,并且有特殊的配置也需要相信说明,下面给出示例: - -### 数据预处理 - -``` -python data_process.py -``` - -### 模型训练与评估 -``` -python train.py -``` - -### 模型预测 -``` -python predict.py -``` - - - diff --git a/examples/template/data_process.py b/examples/template/data_process.py deleted file mode 100644 index 61d5aa213..000000000 --- a/examples/template/data_process.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. \ No newline at end of file diff --git a/examples/template/evaluation.py b/examples/template/evaluation.py deleted file mode 100644 index 61d5aa213..000000000 --- a/examples/template/evaluation.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. \ No newline at end of file diff --git a/examples/template/example.ipynb b/examples/template/example.ipynb deleted file mode 100644 index 0cb1a5f15..000000000 --- a/examples/template/example.ipynb +++ /dev/null @@ -1,36 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "source": [ - "# notebooks\n", - "\n", - "图文并茂,文字和代码结合,不能是大段的代码或者文字。" - ], - "metadata": { - "collapsed": false - } - } - ], - "metadata": { - "kernelspec": { - "display_name": "PaddlePaddle 2.0.0b0 (Python 3.5)", - "language": "python", - "name": "py35-paddle1.2.0" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.7.4" - } - }, - "nbformat": 4, - "nbformat_minor": 1 -} \ No newline at end of file diff --git a/examples/template/example.md b/examples/template/example.md deleted file mode 100644 index db704be87..000000000 --- a/examples/template/example.md +++ /dev/null @@ -1,6 +0,0 @@ -# 知识点 - -## 二级标题 - -![](./images/demo.png) - diff --git a/examples/template/images/demo.png b/examples/template/images/demo.png deleted file mode 100644 index 429020bfe..000000000 Binary files a/examples/template/images/demo.png and /dev/null differ diff --git a/examples/template/predict.py b/examples/template/predict.py deleted file mode 100644 index 61d5aa213..000000000 --- a/examples/template/predict.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. \ No newline at end of file diff --git a/examples/template/train.py b/examples/template/train.py deleted file mode 100644 index 61d5aa213..000000000 --- a/examples/template/train.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. \ No newline at end of file diff --git "a/examples/\344\275\234\344\270\232\346\217\220\344\272\244\350\257\246\346\203\205.md" "b/examples/\344\275\234\344\270\232\346\217\220\344\272\244\350\257\246\346\203\205.md" index 54a0e0613..f4c1341f5 100644 --- "a/examples/\344\275\234\344\270\232\346\217\220\344\272\244\350\257\246\346\203\205.md" +++ "b/examples/\344\275\234\344\270\232\346\217\220\344\272\244\350\257\246\346\203\205.md" @@ -1,26 +1 @@ -# 作业内容 - -* 知识点原理编写题*5(共计50分) - -例: https://github.com/PaddlePaddle/awesome-DeepLearning/blob/master/docs/tutorials/computer_vision/classification/DarkNet.md - -* 案例代码实现题*1(共计50分) - -例:https://github.com/PaddlePaddle/awesome-DeepLearning/tree/master/junior_class/chapter-2-step_to_deep_learning/notebook - -# 作业形式 - -* 向awesome-DeepLearning repo提交pr - -* 在助教作业收集表格中,填写自己提交pr的链接 - -# 评审方式 - -1.助教一审pr规范性,筛选top60(每组筛选15个,视提交情况而定)合格pr; - -2.百度工程师二审合格pr,对top60 pr打分; - -3.对pr进行打分排序,前20名将顺利毕业,获得飞桨官方授权结业证书; - -4.对于优秀的pr,飞桨官方repo会merge,开绿色招聘通道。 - +https://aistudio.baidu.com/aistudio/projectdetail/2261416 \ No newline at end of file