18 Star 75 Fork 49

DeepSpark / DeepSparkHub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
la 提交于 2023-02-23 14:31 . add results

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

安装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 --eval

# GPU单卡训练
export CUDA_VISIBLE_DEVICES=0

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)

finetune Results on BI-V100

GPUs learning rate FPS Train Epochs Box AP
1x8 0.00001 14.64 1 42.0
Python
1
https://gitee.com/deep-spark/deepsparkhub.git
git@gitee.com:deep-spark/deepsparkhub.git
deep-spark
deepsparkhub
DeepSparkHub
master

搜索帮助