From 264d8a014c8b694399e5b727d5614d73d6d97960 Mon Sep 17 00:00:00 2001 From: "wenfeng.zhang" Date: Wed, 31 Jan 2024 11:51:52 +0800 Subject: [PATCH 1/5] add yolov5 model use paddlepaddle framework --- cv/detection/yolov5/paddlepaddle/README.md | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 cv/detection/yolov5/paddlepaddle/README.md diff --git a/cv/detection/yolov5/paddlepaddle/README.md b/cv/detection/yolov5/paddlepaddle/README.md new file mode 100644 index 000000000..bcec178ad --- /dev/null +++ b/cv/detection/yolov5/paddlepaddle/README.md @@ -0,0 +1,35 @@ +# YOLOv5 + +## Model description + +WOLOv5 🚀 is the world's most loved vision AI, representing Ultralytics open-source research into future vision AI methods, incorporating lessons learned and best practices evolved over thousands of hours of research and development. + +We hope that the resources here will help you get the most out of YOLOv5. Please browse the YOLOv5 Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions! + +To request an Enterprise License please complete the form at [Ultralytics Licensing](https://ultralytics.com/license). + +## Step 1: Installing + +```bash +git clone --recursive -b release/2.6 https://github.com/PaddlePaddle/PaddleYOLO.git +cd PaddleYOLO +pip3 install -r requirements.txt # install +``` + +## Step 2: Download data + +```bash +python3 dataset/coco/download_coco.py +``` + +## Step 3: Run YOLOv5 + +```bash +# Make sure your dataset path is the same as above +cd PaddleDetection +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/yolov5/yolov5_s_300e_coco.yml --eval +``` + +## Reference +- [PaddleYOLO](https://github.com/PaddlePaddle/PaddleYOLO) \ No newline at end of file -- Gitee From a1595202fc11a6bcb887ea9b4fdad5d9b11f820f Mon Sep 17 00:00:00 2001 From: majorli Date: Wed, 21 Feb 2024 10:06:52 +0800 Subject: [PATCH 2/5] format PaddleYOLO README.md Signed-off-by: majorli --- cv/detection/yolov5/paddlepaddle/README.md | 32 ++++++++++++---------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/cv/detection/yolov5/paddlepaddle/README.md b/cv/detection/yolov5/paddlepaddle/README.md index bcec178ad..c1dbb1220 100644 --- a/cv/detection/yolov5/paddlepaddle/README.md +++ b/cv/detection/yolov5/paddlepaddle/README.md @@ -2,34 +2,38 @@ ## Model description -WOLOv5 🚀 is the world's most loved vision AI, representing Ultralytics open-source research into future vision AI methods, incorporating lessons learned and best practices evolved over thousands of hours of research and development. +YOLOv5 is the world's most loved vision AI, representing Ultralytics open-source research into future vision AI methods, incorporating lessons learned and best practices evolved over thousands of hours of research and development. -We hope that the resources here will help you get the most out of YOLOv5. Please browse the YOLOv5 Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions! - -To request an Enterprise License please complete the form at [Ultralytics Licensing](https://ultralytics.com/license). - -## Step 1: Installing +## Step 1: Installation ```bash -git clone --recursive -b release/2.6 https://github.com/PaddlePaddle/PaddleYOLO.git -cd PaddleYOLO -pip3 install -r requirements.txt # install +cd deepsparkhub/cv/detection/yolov5/paddlepaddle/ +git clone -b release/2.5 https://github.com/PaddlePaddle/PaddleYOLO.git +cd PaddleYOLO/ +pip3 install -r requirements.txt +python3 setup.py develop ``` -## Step 2: Download data +## Step 2: Preparing datasets ```bash python3 dataset/coco/download_coco.py ``` -## Step 3: Run YOLOv5 +## Step 3: Training ```bash # Make sure your dataset path is the same as above -cd PaddleDetection 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/yolov5/yolov5_s_300e_coco.yml --eval +# Select $config_yaml from "configs/yolov5" as you wish +config_yaml=configs/yolov5/yolov5_s_300e_coco.yml +python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c ${config_yaml} --amp --eval ``` +## Results +GPUs|Model|FPS|ACC +----|---|--- +BI-V100 x8|YOLOv5-s| | + ## Reference -- [PaddleYOLO](https://github.com/PaddlePaddle/PaddleYOLO) \ No newline at end of file +- [PaddleYOLO](https://github.com/PaddlePaddle/PaddleYOLO) -- Gitee From 94cb65a68567750be96f35909db92d401ab15969 Mon Sep 17 00:00:00 2001 From: majorli Date: Mon, 26 Feb 2024 11:44:02 +0800 Subject: [PATCH 3/5] update paddle yolov5 results Signed-off-by: majorli --- cv/detection/yolov5/paddlepaddle/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv/detection/yolov5/paddlepaddle/README.md b/cv/detection/yolov5/paddlepaddle/README.md index c1dbb1220..660a32cef 100644 --- a/cv/detection/yolov5/paddlepaddle/README.md +++ b/cv/detection/yolov5/paddlepaddle/README.md @@ -33,7 +33,7 @@ python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c ${ ## Results GPUs|Model|FPS|ACC ----|---|--- -BI-V100 x8|YOLOv5-s| | +BI-V100 x8|YOLOv5-n| 10.9788 images/s | bbox ap: 0.259 ## Reference - [PaddleYOLO](https://github.com/PaddlePaddle/PaddleYOLO) -- Gitee From a7a709970526e538aefa59223f260d3bf2a280fa Mon Sep 17 00:00:00 2001 From: majorli Date: Mon, 26 Feb 2024 11:50:40 +0800 Subject: [PATCH 4/5] fix typos Signed-off-by: majorli --- cv/detection/yolov5/paddlepaddle/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv/detection/yolov5/paddlepaddle/README.md b/cv/detection/yolov5/paddlepaddle/README.md index 660a32cef..ad81dc9d7 100644 --- a/cv/detection/yolov5/paddlepaddle/README.md +++ b/cv/detection/yolov5/paddlepaddle/README.md @@ -32,7 +32,7 @@ python3 -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c ${ ## Results GPUs|Model|FPS|ACC -----|---|--- +----|---|---|--- BI-V100 x8|YOLOv5-n| 10.9788 images/s | bbox ap: 0.259 ## Reference -- Gitee From 1382fcff0d4c98239fb58017356661af91dde15b Mon Sep 17 00:00:00 2001 From: majorli Date: Mon, 26 Feb 2024 11:52:26 +0800 Subject: [PATCH 5/5] add yolov5 paddle to model list Signed-off-by: majorli --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b3214028b..e32016cd4 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,7 @@ DeepSparkHub甄选上百个应用算法和模型,覆盖AI和通用计算各领 [YOLOv3](cv/detection/yolov3/pytorch/README.md) | PyTorch | COCO [YOLOv3](cv/detection/yolov3/paddlepaddle/README.md) | PaddlePaddle | COCO [YOLOv3](cv/detection/yolov3/tensorflow/README.md) | TensorFlow | VOC +[YOLOv5](cv/detection/yolov5/paddlepaddle/README.md) | PaddlePaddle | COCO [YOLOv5](cv/detection/yolov5/pytorch/README.md) | PyTorch | COCO [YOLOv6](cv/detection/yolov6/pytorch/README.md)  | PyTorch | COCO [YOLOv7](cv/detection/yolov7/pytorch/README.md) | PyTorch | COCO -- Gitee