Skip to content

Commit

Permalink
docs(readme): update <Data>
Browse files Browse the repository at this point in the history
  • Loading branch information
zjykzj committed Jun 29, 2024
1 parent 8ce77b5 commit a437553
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
- [Background](#background)
- [Installation](#installation)
- [Usage](#usage)
- [Data](#data)
- [Train](#train)
- [Eval](#eval)
- [Predict](#predict)
Expand Down Expand Up @@ -100,6 +101,15 @@ docker run -it --runtime nvidia --gpus=all --shm-size=16g -v /etc/localtime:/etc

## Usage

### Data

Download the WIDERFACE dataset from http://shuoyang1213.me/WIDERFACE/, Then convert WIDERFACE dataset format.

```shell
python3 widerface2yolo.py ../datasets/widerface/WIDER_train/images ../datasets/widerface/wider_face_split/wider_face_train_bbx_gt.txt ../datasets/widerface/
python3 widerface2yolo.py ../datasets/widerface/WIDER_val/images ../datasets/widerface/wider_face_split/wider_face_val_bbx_gt.txt ../datasets/widerface/
```

### Train

```shell
Expand Down
10 changes: 10 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
- [背景](#背景)
- [安装](#安装)
- [用法](#用法)
- [数据](#数据)
- [训练](#训练)
- [评估](#评估)
- [预测](#预测)
Expand Down Expand Up @@ -100,6 +101,15 @@ docker run -it --runtime nvidia --gpus=all --shm-size=16g -v /etc/localtime:/etc

## 用法

### 数据

[官网](http://shuoyang1213.me/WIDERFACE/)下载WIDERFACE数据集,然后转换数据集格式。

```shell
python3 widerface2yolo.py ../datasets/widerface/WIDER_train/images ../datasets/widerface/wider_face_split/wider_face_train_bbx_gt.txt ../datasets/widerface/
python3 widerface2yolo.py ../datasets/widerface/WIDER_val/images ../datasets/widerface/wider_face_split/wider_face_val_bbx_gt.txt ../datasets/widerface/
```

### 训练

```shell
Expand Down

0 comments on commit a437553

Please sign in to comment.