add Actor7 support

This commit is contained in:
sen.liang committed 2022-05-28 00:01:31 +08:00
1 parent a4c53e3265
commit 7aed8b140a
16 files changed
+403 -316

No files matched your search

+66
View File
@@ -0,0 +1,66 @@
# The data processing pipline
### Folder Tree
```
cwd:
├── data
│ ├── Actor7Data
│ │ ├── pipline.md
│ │ ├── run-00-prepare-data.py
│ │ ├── run-01-detect-lm68.py
│ │ ├── run-01-mean-bbox.py
│ │ ├── run-02-crop-transform-2.py
│ │ ├── run-02-crop-transform.py
│ │ ├── run-09-remove-files.py
│ │ ├── run-10-generate-mask.py
│ │ ├── run-20-deca-reconstruction.py
│ │ ├── run-21-features-3dmm.py
│ │ ├── run-22-concat-3dmm.py
│ │ ├── run-23-mean-coeff.py
│ │ ├── run-41-train-annodb-audio2mesh.py
│ │ └── run-42-train-annodb-ganrender.py
data_path:
/mfs/lsen/DATA/Actor7/processing/4R3A0200/
├── audio
├── frames # STEP-0结果,保存视频帧(1080p)
├── landmarks_FAN # STEP-1结果,保存1080p图像对应的landmark
└── video
```
### STEP-0: 保存视频帧
- 需要旋转video(如果是横着拍摄的话)
- FPS需要保证是50,(否则会进行FPS转码)
- cut前后15s的调焦/准备拍摄片段
- 跳过小于1分钟的视频
- 保存到`{data_path}/frames`文件夹中
```
python run-01-prepare-data.py
```
### STEP-1: 检测关键点
- 使用`face_alignment`库中的`sfd`检测算法
- 若检测到多个face landmarks,智能选择最接近 prev-landmarks的那个
- 保存到`{data_path}/landmarks_FAN`文件夹中
``` python
python run-01-detect-lm68.py
```
### STEP-2: 获取全局bbox
- 用于后期crop image
- 遍历所有的frame,选择一个最大的bbox,以覆盖所以的人脸运动区域
- 数据保存在`./data/{actor}/max_bbox_{sub_folder}.npy`中
```
python run-01-mean-bbox.py
```