From 5d149242ddc8c95ac7bd1005657944a69cb29dfb Mon Sep 17 00:00:00 2001 From: "yue.chang" Date: Fri, 10 Feb 2023 15:51:16 +0800 Subject: [PATCH 1/6] add PaddleDetection link #l6B4D4 Signed-off-by: yue.chang --- PaddlePaddle/README.md | 69 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 PaddlePaddle/README.md diff --git a/PaddlePaddle/README.md b/PaddlePaddle/README.md new file mode 100644 index 000000000..891a0c4df --- /dev/null +++ b/PaddlePaddle/README.md @@ -0,0 +1,69 @@ +# 克隆代码 + +``` +git clone https://github.com/PaddlePaddle/PaddleDetection.git +``` + +# 安装PaddlePaddle + +``` +# CUDA10.2 +python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple +``` + +# 安装PaddleDetection + +``` +cd PaddleDetection +pip install -r requirements.txt +python3 setup.py install +``` + +# 下载COCO数据集 + +``` +python3 dataset/coco/download_coco.py +``` + +# 运行代码 + +``` +# GPU多卡训练示例 +export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 + +# RetinaNet +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml + +# FCOS +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml + +# DETR +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/detr/detr_r50_1x_coco.yml + +# CenterNet +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml + +# SOLOv2 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml + + +# GPU单卡训练 +export CUDA_VISIBLE_DEVICES=0 + +# RetinaNet +python3 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml + +# FCOS +python3 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml + +# DETR +python3 tools/train.py -c configs/detr/detr_r50_1x_coco.yml + +# CenterNet +python3 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml + +# SOLOv2 +python3 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml + +# 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) +``` \ No newline at end of file -- Gitee From 3a248d21f2a02d863f0793b4265c063988e583c1 Mon Sep 17 00:00:00 2001 From: "yue.chang" Date: Fri, 10 Feb 2023 16:55:33 +0800 Subject: [PATCH 2/6] add PaddleDetection --- cv/detection/centernet/paddlepaddle/README.md | 51 +++++++++++++++++++ cv/detection/detr/paddlepaddle/README.md | 51 +++++++++++++++++++ cv/detection/fcos/paddlepaddle/README.md | 51 +++++++++++++++++++ .../retinanet/paddlepaddle}/README.md | 32 +++--------- cv/detection/solov2/paddlepaddle/README.md | 51 +++++++++++++++++++ 5 files changed, 211 insertions(+), 25 deletions(-) create mode 100644 cv/detection/centernet/paddlepaddle/README.md create mode 100644 cv/detection/detr/paddlepaddle/README.md create mode 100644 cv/detection/fcos/paddlepaddle/README.md rename {PaddlePaddle => cv/detection/retinanet/paddlepaddle}/README.md (55%) create mode 100644 cv/detection/solov2/paddlepaddle/README.md diff --git a/cv/detection/centernet/paddlepaddle/README.md b/cv/detection/centernet/paddlepaddle/README.md new file mode 100644 index 000000000..cbb1575fe --- /dev/null +++ b/cv/detection/centernet/paddlepaddle/README.md @@ -0,0 +1,51 @@ +# 克隆代码 + +``` +git clone https://github.com/PaddlePaddle/PaddleDetection.git +``` + +# 安装PaddlePaddle + +``` +# CUDA10.2 +python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple +``` + +# 安装PaddleDetection + +``` +cd PaddleDetection +pip install -r requirements.txt +python3 setup.py install +``` + +# 下载COCO数据集 + +``` +python3 dataset/coco/download_coco.py +``` + +# 运行代码 + +``` +# GPU多卡训练示例 +export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 + +训练 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml + +边训练边评估 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml --eval + +# GPU单卡训练 +export CUDA_VISIBLE_DEVICES=0 + +训练 +python3 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml + +边训练边评估 +python3 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml --eval + +# 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) + +``` \ No newline at end of file diff --git a/cv/detection/detr/paddlepaddle/README.md b/cv/detection/detr/paddlepaddle/README.md new file mode 100644 index 000000000..e39282718 --- /dev/null +++ b/cv/detection/detr/paddlepaddle/README.md @@ -0,0 +1,51 @@ +# 克隆代码 + +``` +git clone https://github.com/PaddlePaddle/PaddleDetection.git +``` + +# 安装PaddlePaddle + +``` +# CUDA10.2 +python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple +``` + +# 安装PaddleDetection + +``` +cd PaddleDetection +pip install -r requirements.txt +python3 setup.py install +``` + +# 下载COCO数据集 + +``` +python3 dataset/coco/download_coco.py +``` + +# 运行代码 + +``` +# GPU多卡训练示例 +export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 + +训练 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/detr/detr_r50_1x_coco.yml + +边训练边评估 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/detr/detr_r50_1x_coco.yml --eval + +# GPU单卡训练 +export CUDA_VISIBLE_DEVICES=0 + +训练 +python3 tools/train.py -c configs/detr/detr_r50_1x_coco.yml + +边训练边评估 +python3 tools/train.py -c configs/detr/detr_r50_1x_coco.yml --eval + +# 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) + +``` \ No newline at end of file diff --git a/cv/detection/fcos/paddlepaddle/README.md b/cv/detection/fcos/paddlepaddle/README.md new file mode 100644 index 000000000..df6d0dcf1 --- /dev/null +++ b/cv/detection/fcos/paddlepaddle/README.md @@ -0,0 +1,51 @@ +# 克隆代码 + +``` +git clone https://github.com/PaddlePaddle/PaddleDetection.git +``` + +# 安装PaddlePaddle + +``` +# CUDA10.2 +python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple +``` + +# 安装PaddleDetection + +``` +cd PaddleDetection +pip install -r requirements.txt +python3 setup.py install +``` + +# 下载COCO数据集 + +``` +python3 dataset/coco/download_coco.py +``` + +# 运行代码 + +``` +# GPU多卡训练示例 +export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 + +训练 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml + +边训练边评估 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml --eval + +# GPU单卡训练 +export CUDA_VISIBLE_DEVICES=0 + +训练 +python3 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml + +边训练边评估 +python3 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml --eval + +# 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) + +``` \ No newline at end of file diff --git a/PaddlePaddle/README.md b/cv/detection/retinanet/paddlepaddle/README.md similarity index 55% rename from PaddlePaddle/README.md rename to cv/detection/retinanet/paddlepaddle/README.md index 891a0c4df..06897823a 100644 --- a/PaddlePaddle/README.md +++ b/cv/detection/retinanet/paddlepaddle/README.md @@ -31,39 +31,21 @@ python3 dataset/coco/download_coco.py # GPU多卡训练示例 export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 -# RetinaNet +训练 python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml -# FCOS -python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml - -# DETR -python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/detr/detr_r50_1x_coco.yml - -# CenterNet -python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml - -# SOLOv2 -python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml - +边训练边评估 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml --eval # GPU单卡训练 export CUDA_VISIBLE_DEVICES=0 -# RetinaNet +训练 python3 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml -# FCOS -python3 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml - -# DETR -python3 tools/train.py -c configs/detr/detr_r50_1x_coco.yml - -# CenterNet -python3 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml - -# SOLOv2 -python3 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml +边训练边评估 +python3 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml --eval # 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) + ``` \ No newline at end of file diff --git a/cv/detection/solov2/paddlepaddle/README.md b/cv/detection/solov2/paddlepaddle/README.md new file mode 100644 index 000000000..f837ef980 --- /dev/null +++ b/cv/detection/solov2/paddlepaddle/README.md @@ -0,0 +1,51 @@ +# 克隆代码 + +``` +git clone https://github.com/PaddlePaddle/PaddleDetection.git +``` + +# 安装PaddlePaddle + +``` +# CUDA10.2 +python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple +``` + +# 安装PaddleDetection + +``` +cd PaddleDetection +pip install -r requirements.txt +python3 setup.py install +``` + +# 下载COCO数据集 + +``` +python3 dataset/coco/download_coco.py +``` + +# 运行代码 + +``` +# GPU多卡训练示例 +export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 + +训练 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml + +边训练边评估 +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml --eval + +# GPU单卡训练 +export CUDA_VISIBLE_DEVICES=0 + +训练 +python3 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml + +边训练边评估 +python3 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml --eval + +# 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) + +``` \ No newline at end of file -- Gitee From 40f2c143e3b147696893e88ee88479f721d0713b Mon Sep 17 00:00:00 2001 From: "yue.chang" Date: Mon, 20 Feb 2023 13:38:42 +0800 Subject: [PATCH 3/6] add model_description --- cv/detection/centernet/paddlepaddle/README.md | 15 ++++++++++----- cv/detection/detr/paddlepaddle/README.md | 15 ++++++++++----- cv/detection/fcos/paddlepaddle/README.md | 15 ++++++++++----- cv/detection/retinanet/paddlepaddle/README.md | 15 ++++++++++----- cv/detection/solov2/paddlepaddle/README.md | 15 ++++++++++----- 5 files changed, 50 insertions(+), 25 deletions(-) diff --git a/cv/detection/centernet/paddlepaddle/README.md b/cv/detection/centernet/paddlepaddle/README.md index cbb1575fe..a1981be17 100644 --- a/cv/detection/centernet/paddlepaddle/README.md +++ b/cv/detection/centernet/paddlepaddle/README.md @@ -1,17 +1,22 @@ -# 克隆代码 +# CenterNet + +## Model description +Detection identifies objects as axis-aligned boxes in an image. Most successful object detectors enumerate a nearly exhaustive list of potential object locations and classify each. This is wasteful, inefficient, and requires additional post-processing. In this paper, we take a different approach. We model an object as a single point --- the center point of its bounding box. Our detector uses keypoint estimation to find center points and regresses to all other object properties, such as size, 3D location, orientation, and even pose. Our center point based approach, CenterNet, is end-to-end differentiable, simpler, faster, and more accurate than corresponding bounding box based detectors. CenterNet achieves the best speed-accuracy trade-off on the MS COCO dataset, with 28.1% AP at 142 FPS, 37.4% AP at 52 FPS, and 45.1% AP with multi-scale testing at 1.4 FPS. We use the same approach to estimate 3D bounding box in the KITTI benchmark and human pose on the COCO keypoint dataset. Our method performs competitively with sophisticated multi-stage methods and runs in real-time. + +## 克隆代码 ``` git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -# 安装PaddlePaddle +## 安装PaddlePaddle ``` # CUDA10.2 python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple ``` -# 安装PaddleDetection +## 安装PaddleDetection ``` cd PaddleDetection @@ -19,13 +24,13 @@ pip install -r requirements.txt python3 setup.py install ``` -# 下载COCO数据集 +## 下载COCO数据集 ``` python3 dataset/coco/download_coco.py ``` -# 运行代码 +## 运行代码 ``` # GPU多卡训练示例 diff --git a/cv/detection/detr/paddlepaddle/README.md b/cv/detection/detr/paddlepaddle/README.md index e39282718..d48c376f7 100644 --- a/cv/detection/detr/paddlepaddle/README.md +++ b/cv/detection/detr/paddlepaddle/README.md @@ -1,17 +1,22 @@ -# 克隆代码 +# DETR + +## Model description +DETR is an object detection model based on transformer. We reproduced the model of the paper. + +## 克隆代码 ``` git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -# 安装PaddlePaddle +## 安装PaddlePaddle ``` # CUDA10.2 python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple ``` -# 安装PaddleDetection +## 安装PaddleDetection ``` cd PaddleDetection @@ -19,13 +24,13 @@ pip install -r requirements.txt python3 setup.py install ``` -# 下载COCO数据集 +## 下载COCO数据集 ``` python3 dataset/coco/download_coco.py ``` -# 运行代码 +## 运行代码 ``` # GPU多卡训练示例 diff --git a/cv/detection/fcos/paddlepaddle/README.md b/cv/detection/fcos/paddlepaddle/README.md index df6d0dcf1..f5d6c6e90 100644 --- a/cv/detection/fcos/paddlepaddle/README.md +++ b/cv/detection/fcos/paddlepaddle/README.md @@ -1,17 +1,22 @@ -# 克隆代码 +# Fcos + +## Model description +FCOS (Fully Convolutional One-Stage Object Detection) is a fast anchor-free object detection framework with strong performance. + +## 克隆代码 ``` git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -# 安装PaddlePaddle +## 安装PaddlePaddle ``` # CUDA10.2 python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple ``` -# 安装PaddleDetection +## 安装PaddleDetection ``` cd PaddleDetection @@ -19,13 +24,13 @@ pip install -r requirements.txt python3 setup.py install ``` -# 下载COCO数据集 +## 下载COCO数据集 ``` python3 dataset/coco/download_coco.py ``` -# 运行代码 +## 运行代码 ``` # GPU多卡训练示例 diff --git a/cv/detection/retinanet/paddlepaddle/README.md b/cv/detection/retinanet/paddlepaddle/README.md index 06897823a..700e3dc13 100644 --- a/cv/detection/retinanet/paddlepaddle/README.md +++ b/cv/detection/retinanet/paddlepaddle/README.md @@ -1,17 +1,22 @@ -# 克隆代码 +# RetinaNet + +## Model description +The paper proposes a method to convert a deep learning object detector into an equivalent spiking neural network. The aim is to provide a conversion framework that is not constrained to shallow network structures and classification problems as in state-of-the-art conversion libraries. The results show that models of higher complexity, such as the RetinaNet object detector, can be converted with limited loss in performance. + +## 克隆代码 ``` git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -# 安装PaddlePaddle +## 安装PaddlePaddle ``` # CUDA10.2 python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple ``` -# 安装PaddleDetection +## 安装PaddleDetection ``` cd PaddleDetection @@ -19,13 +24,13 @@ pip install -r requirements.txt python3 setup.py install ``` -# 下载COCO数据集 +## 下载COCO数据集 ``` python3 dataset/coco/download_coco.py ``` -# 运行代码 +## 运行代码 ``` # GPU多卡训练示例 diff --git a/cv/detection/solov2/paddlepaddle/README.md b/cv/detection/solov2/paddlepaddle/README.md index f837ef980..60276f858 100644 --- a/cv/detection/solov2/paddlepaddle/README.md +++ b/cv/detection/solov2/paddlepaddle/README.md @@ -1,17 +1,22 @@ -# 克隆代码 +# SOLOv2 + +## Model description +SOLOv2 (Segmenting Objects by Locations) is a fast instance segmentation framework with strong performance. + +## 克隆代码 ``` git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -# 安装PaddlePaddle +## 安装PaddlePaddle ``` # CUDA10.2 python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple ``` -# 安装PaddleDetection +## 安装PaddleDetection ``` cd PaddleDetection @@ -19,13 +24,13 @@ pip install -r requirements.txt python3 setup.py install ``` -# 下载COCO数据集 +## 下载COCO数据集 ``` python3 dataset/coco/download_coco.py ``` -# 运行代码 +## 运行代码 ``` # GPU多卡训练示例 -- Gitee From 18205bb1c60e8d190699c89b8b8b28f7aaf96c9f Mon Sep 17 00:00:00 2001 From: "yue.chang" Date: Wed, 22 Feb 2023 10:43:55 +0800 Subject: [PATCH 4/6] modify environment --- cv/detection/centernet/paddlepaddle/README.md | 7 ------- cv/detection/detr/paddlepaddle/README.md | 7 ------- cv/detection/fcos/paddlepaddle/README.md | 7 ------- cv/detection/retinanet/paddlepaddle/README.md | 7 ------- cv/detection/solov2/paddlepaddle/README.md | 7 ------- 5 files changed, 35 deletions(-) diff --git a/cv/detection/centernet/paddlepaddle/README.md b/cv/detection/centernet/paddlepaddle/README.md index a1981be17..11c886eb2 100644 --- a/cv/detection/centernet/paddlepaddle/README.md +++ b/cv/detection/centernet/paddlepaddle/README.md @@ -9,13 +9,6 @@ Detection identifies objects as axis-aligned boxes in an image. Most successful git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -## 安装PaddlePaddle - -``` -# CUDA10.2 -python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple -``` - ## 安装PaddleDetection ``` diff --git a/cv/detection/detr/paddlepaddle/README.md b/cv/detection/detr/paddlepaddle/README.md index d48c376f7..249fcf9ac 100644 --- a/cv/detection/detr/paddlepaddle/README.md +++ b/cv/detection/detr/paddlepaddle/README.md @@ -9,13 +9,6 @@ DETR is an object detection model based on transformer. We reproduced the model git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -## 安装PaddlePaddle - -``` -# CUDA10.2 -python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple -``` - ## 安装PaddleDetection ``` diff --git a/cv/detection/fcos/paddlepaddle/README.md b/cv/detection/fcos/paddlepaddle/README.md index f5d6c6e90..149b5891b 100644 --- a/cv/detection/fcos/paddlepaddle/README.md +++ b/cv/detection/fcos/paddlepaddle/README.md @@ -9,13 +9,6 @@ FCOS (Fully Convolutional One-Stage Object Detection) is a fast anchor-free obje git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -## 安装PaddlePaddle - -``` -# CUDA10.2 -python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple -``` - ## 安装PaddleDetection ``` diff --git a/cv/detection/retinanet/paddlepaddle/README.md b/cv/detection/retinanet/paddlepaddle/README.md index 700e3dc13..cb36dcf96 100644 --- a/cv/detection/retinanet/paddlepaddle/README.md +++ b/cv/detection/retinanet/paddlepaddle/README.md @@ -9,13 +9,6 @@ The paper proposes a method to convert a deep learning object detector into an e git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -## 安装PaddlePaddle - -``` -# CUDA10.2 -python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple -``` - ## 安装PaddleDetection ``` diff --git a/cv/detection/solov2/paddlepaddle/README.md b/cv/detection/solov2/paddlepaddle/README.md index 60276f858..e11b8d526 100644 --- a/cv/detection/solov2/paddlepaddle/README.md +++ b/cv/detection/solov2/paddlepaddle/README.md @@ -9,13 +9,6 @@ SOLOv2 (Segmenting Objects by Locations) is a fast instance segmentation framewo git clone https://github.com/PaddlePaddle/PaddleDetection.git ``` -## 安装PaddlePaddle - -``` -# CUDA10.2 -python3 -m pip install paddlepaddle-gpu==2.2.2 -i https://mirror.baidu.com/pypi/simple -``` - ## 安装PaddleDetection ``` -- Gitee From cc14e738a76b3280d501b643412b1caeb1f9fea6 Mon Sep 17 00:00:00 2001 From: "yue.chang" Date: Thu, 23 Feb 2023 14:31:14 +0800 Subject: [PATCH 5/6] add results --- cv/detection/centernet/paddlepaddle/README.md | 23 +++++++++++-------- cv/detection/detr/paddlepaddle/README.md | 23 +++++++++++-------- cv/detection/fcos/paddlepaddle/README.md | 18 +++++++-------- cv/detection/retinanet/paddlepaddle/README.md | 18 +++++++-------- cv/detection/solov2/paddlepaddle/README.md | 18 +++++++-------- 5 files changed, 50 insertions(+), 50 deletions(-) diff --git a/cv/detection/centernet/paddlepaddle/README.md b/cv/detection/centernet/paddlepaddle/README.md index 11c886eb2..485c006e9 100644 --- a/cv/detection/centernet/paddlepaddle/README.md +++ b/cv/detection/centernet/paddlepaddle/README.md @@ -26,24 +26,27 @@ python3 dataset/coco/download_coco.py ## 运行代码 ``` -# GPU多卡训练示例 +# GPU多卡训练 export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 -训练 -python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml - -边训练边评估 python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml --eval # GPU单卡训练 export CUDA_VISIBLE_DEVICES=0 -训练 -python3 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml - -边训练边评估 python3 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml --eval +# finetune +export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 + +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/centernet/centernet_r50_140e_coco.yml -o pretrain_weights=https://bj.bcebos.com/v1/paddledet/models/centernet_r50_140e_coco.pdparams --eval + # 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) -``` \ No newline at end of file +``` + +## finetune Results on BI-V100 + +| GPUs | learning rate | FPS | Train Epochs | mAP | +|------|------------|-----|--------------|------| +| 1x8 | 0.00005 | 10.85 | 3 | 38.5 | \ No newline at end of file diff --git a/cv/detection/detr/paddlepaddle/README.md b/cv/detection/detr/paddlepaddle/README.md index 249fcf9ac..d09ff584d 100644 --- a/cv/detection/detr/paddlepaddle/README.md +++ b/cv/detection/detr/paddlepaddle/README.md @@ -26,24 +26,27 @@ python3 dataset/coco/download_coco.py ## 运行代码 ``` -# GPU多卡训练示例 +# GPU多卡训练 export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 -训练 -python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/detr/detr_r50_1x_coco.yml - -边训练边评估 python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/detr/detr_r50_1x_coco.yml --eval # GPU单卡训练 export CUDA_VISIBLE_DEVICES=0 -训练 -python3 tools/train.py -c configs/detr/detr_r50_1x_coco.yml - -边训练边评估 python3 tools/train.py -c configs/detr/detr_r50_1x_coco.yml --eval +# finetune +export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 + +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/detr/detr_r50_1x_coco.yml -o pretrain_weights=https://paddledet.bj.bcebos.com/models/detr_r50_1x_coco.pdparams --eval + # 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) -``` \ No newline at end of file +``` + +## finetune Results on BI-V100 + +| GPUs | learning rate | FPS | Train Epochs | Box AP | +|------|------------|-----|--------------|------| +| 1x8 | 0.00001 | 14.64 | 1 | 42.0 | \ No newline at end of file diff --git a/cv/detection/fcos/paddlepaddle/README.md b/cv/detection/fcos/paddlepaddle/README.md index 149b5891b..f9a57b0eb 100644 --- a/cv/detection/fcos/paddlepaddle/README.md +++ b/cv/detection/fcos/paddlepaddle/README.md @@ -26,24 +26,22 @@ python3 dataset/coco/download_coco.py ## 运行代码 ``` -# GPU多卡训练示例 +# GPU多卡训练 export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 -训练 -python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml - -边训练边评估 python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml --eval # GPU单卡训练 export CUDA_VISIBLE_DEVICES=0 -训练 -python3 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml - -边训练边评估 python3 tools/train.py -c configs/fcos/fcos_r50_fpn_1x_coco.yml --eval # 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) -``` \ No newline at end of file +``` + +## Results on BI-V100 + +| GPUs | FPS | Train Epochs | Box AP | +|------|-----|--------------|------| +| 1x8 | 8.24 | 12 | 39.7 | \ No newline at end of file diff --git a/cv/detection/retinanet/paddlepaddle/README.md b/cv/detection/retinanet/paddlepaddle/README.md index cb36dcf96..5a990b8d0 100644 --- a/cv/detection/retinanet/paddlepaddle/README.md +++ b/cv/detection/retinanet/paddlepaddle/README.md @@ -26,24 +26,22 @@ python3 dataset/coco/download_coco.py ## 运行代码 ``` -# GPU多卡训练示例 +# GPU多卡训练 export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 -训练 -python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml - -边训练边评估 python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml --eval # GPU单卡训练 export CUDA_VISIBLE_DEVICES=0 -训练 -python3 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml - -边训练边评估 python3 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml --eval # 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) -``` \ No newline at end of file +``` + +## Results on BI-V100 + +| GPUs | FPS | Train Epochs | Box AP | +|------|-----|--------------|------| +| 1x8 | | 12 | | \ No newline at end of file diff --git a/cv/detection/solov2/paddlepaddle/README.md b/cv/detection/solov2/paddlepaddle/README.md index e11b8d526..b9c0e6b7e 100644 --- a/cv/detection/solov2/paddlepaddle/README.md +++ b/cv/detection/solov2/paddlepaddle/README.md @@ -26,24 +26,22 @@ python3 dataset/coco/download_coco.py ## 运行代码 ``` -# GPU多卡训练示例 +# GPU多卡训练 export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 -训练 -python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml - -边训练边评估 python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml --eval # GPU单卡训练 export CUDA_VISIBLE_DEVICES=0 -训练 -python3 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml - -边训练边评估 python3 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml --eval # 注:默认学习率是适配多GPU训练(8x GPU),若使用单GPU训练,须对应调整config中的学习率(例如,除以8) -``` \ No newline at end of file +``` + +## Results on BI-V100 + +| GPUs | FPS | Train Epochs | mAP | +|------|-----|--------------|------| +| 1x8 | | 12 | | \ No newline at end of file -- Gitee From 1d0891171ec69e62674bae03d694aa62aee00d2f Mon Sep 17 00:00:00 2001 From: "yue.chang" Date: Mon, 27 Feb 2023 09:33:30 +0800 Subject: [PATCH 6/6] add sovov2 results --- cv/detection/retinanet/paddlepaddle/README.md | 2 +- cv/detection/solov2/paddlepaddle/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cv/detection/retinanet/paddlepaddle/README.md b/cv/detection/retinanet/paddlepaddle/README.md index 5a990b8d0..6cf0fe36f 100644 --- a/cv/detection/retinanet/paddlepaddle/README.md +++ b/cv/detection/retinanet/paddlepaddle/README.md @@ -44,4 +44,4 @@ python3 tools/train.py -c configs/retinanet/retinanet_r50_fpn_1x_coco.yml --eval | GPUs | FPS | Train Epochs | Box AP | |------|-----|--------------|------| -| 1x8 | | 12 | | \ No newline at end of file +| 1x8 | 6.58 | 12 | 37.3 | \ No newline at end of file diff --git a/cv/detection/solov2/paddlepaddle/README.md b/cv/detection/solov2/paddlepaddle/README.md index b9c0e6b7e..1c3241de0 100644 --- a/cv/detection/solov2/paddlepaddle/README.md +++ b/cv/detection/solov2/paddlepaddle/README.md @@ -44,4 +44,4 @@ python3 tools/train.py -c configs/solov2/solov2_r50_fpn_1x_coco.yml --eval | GPUs | FPS | Train Epochs | mAP | |------|-----|--------------|------| -| 1x8 | | 12 | | \ No newline at end of file +| 1x8 | 6.39 | 12 | 35.4 | \ No newline at end of file -- Gitee