Commit ca37e0fa authored by dengjf's avatar dengjf
Browse files

update code

parent 96409202
......@@ -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模型进行推理测试
![result_000000014439_640x640.jpg](asserts%2Fresult_000000014439_640x640.jpg)
## 精度
### 精度
| 模型 | 数据类型 | map0.5:0.95 | map0.5 |
|:-------:|:----:|:-----------:|:------:|
......
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment