Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
FuxiCV authored Jul 20, 2020
1 parent b822cd7 commit a12d8ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ The shapes and coarse textures are from https://github.com/microsoft/Deep3DFaceR
Please refer to their project pages for the necessary files.

#### 2. Prepare dataset
As we mentioned in the paper, we use a face segmentation network to segment out the non-face areas. Here, we treat the segmentation result as alpha channel and store it in a `.png` file along with the face image.
For efficiency, we write all `.png` images into a binary file in advance. Please change the data folder in `create_bin.py` to yours.
As we mentioned in the paper, we use a face segmentation network to segment out the non-face areas. Here, we treat the segmentation result as alpha channel and store it in a `.png` file along with the face image. More specifically, we acquire the face segmentation result by a face segmentation network, then store the image and segmentation results as a `.png` file, where the RGB channels store the image, and alpha channel stores the segmentation results. In the alpha channel, 0 means `non-skin region` and 255 represents `skin region`.
For efficiency, we then write all `.png` images into a binary file in advance. Please change the data folder in `create_bin.py` to yours.
> python create_bin.py

#### 3. Training
It is worth mentioning that, our network involves the mesh sampling algorithm. We save the sampling-related parameters into `.npz` files in advance and load them before training to avoid meaningless repeat calculation.
More details could be found in utils.py#L266 init_sampling().
Expand All @@ -45,4 +44,4 @@ However, at present, you can try out our current automatic character creation me
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={5891--5900},
year={2020}
}
}

0 comments on commit a12d8ba

Please sign in to comment.