Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
yolov5_paddle
Commits
ca37e0fa
Commit
ca37e0fa
authored
Dec 26, 2023
by
dengjf
Browse files
update code
parent
96409202
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
README.md
README.md
+5
-7
docker/Dockerfile
docker/Dockerfile
+0
-1
No files found.
README.md
View file @
ca37e0fa
...
...
@@ -90,15 +90,14 @@ COCO2017(在网络良好的情况下,如果没有下载数据集,程序会
```
## 训练
-
训练数据集路径在 config/dataset/coco_detection.yml中修改dataset_dit路径
-
{config}参数使用时应改为配置文件地址: configs/yolov5/yolov5_s_300e_coco.yml [该参数可替换为其他的参数文件地址]
### 单机单卡
```
export HIP_VISIBLE_DEVICES=0
export USE_MIOPEN_BATCHNORM=1
python -m paddle.distributed.launch --log_dir=${log_dir} --gpus 0 tools/train.py -c ${config} --eval --amp
python -m paddle.distributed.launch tools/train.py -c {config} --amp --eval
```
### 单机多卡
...
...
@@ -108,8 +107,7 @@ python -m paddle.distributed.launch --log_dir=${log_dir} --gpus 0 tools/train.py
export HIP_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
export HSA_FORCE_FINE_GRAIN_PCIE=1
export USE_MIOPEN_BATCHNORM=1
python -m paddle.distributed.launch --gpus 0,1,2,3,4,5,6,7 tools/train.py -c configs/yolov5/yolov5_s_300e_coco.yml --amp --eval
python -m paddle.distributed.launch tools/train.py -c {} --amp --eval
```
## 推理
...
...
@@ -122,7 +120,7 @@ HIP_VISIBLE_DEVICES=0 python tools/infer.py -c configs/yolov5/yolov5_s_300e_coco
## result
此处以yolov5s模型进行推理测试

## 精度
##
#
精度
| 模型 | 数据类型 | map0.5:0.95 | map0.5 |
|:-------:|:----:|:-----------:|:------:|
...
...
docker/Dockerfile
View file @
ca37e0fa
FROM
image.sourcefind.cn:5000/dcu/admin/base/paddlepaddle:2.4.2-centos7.6-dtk-23.04-py38-latest
RUN
source
/opt/dtk/env.sh
COPY
requirements.txt requirements.txt
COPY
requirements/ requirements/
RUN
pip3
install
-i
http://mirrors.aliyun.com/pypi/simple/
--trusted-host
mirrors.aliyun.com
-r
requirements.txt
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment