Spaces:
Configuration error
Configuration error
| # face-makeup.PyTorch | |
| Lip and hair color editor using face parsing maps. | |
| <table> | |
| <tr> | |
| <th> </th> | |
| <th>Hair</th> | |
| <th>Lip</th> | |
| </tr> | |
| <!-- Line 1: Original Input --> | |
| <tr> | |
| <td><em>Original Input</em></td> | |
| <td><img src="makeup/116_ori.png" height="256" width="256" alt="Original Input"></td> | |
| <td><img src="makeup/116_lip_ori.png" height="256" width="256" alt="Original Input"></td> | |
| </tr> | |
| <!-- Line 2: Color --> | |
| <tr> | |
| <td >Color</td> | |
| <td><img src="makeup/116_0.png" height="256" width="256" alt="Color"></td> | |
| <td><img src="makeup/116_6.png" height="256" width="256" alt="Color"></td> | |
| </tr> | |
| <!-- Line 3: Color --> | |
| <tr> | |
| <td>Color</td> | |
| <td><img src="makeup/116_1.png" height="256" width="256" alt="Color"></td> | |
| <td><img src="makeup/116_3.png" height="256" width="256" alt="Color"></td> | |
| </tr> | |
| <!-- Line 4: Color --> | |
| <tr> | |
| <td>Color</td> | |
| <td><img src="makeup/116_2.png" height="256" width="256" alt="Color"></td> | |
| <td><img src="makeup/116_4.png" height="256" width="256" alt="Color"></td> | |
| </tr> | |
| </table> | |
| ### Using PyTorch 1.0 and python 3.x | |
| ## Demo | |
| Change hair and lip color: | |
| ```Shell | |
| python makeup.py --img-path imgs/116.jpg | |
| ``` | |
| ### Try to use other colors: | |
| Change the color list in **makeup.py**(line 83) | |
| ``` | |
| colors = [[230, 50, 20], [20, 70, 180], [20, 70, 180]] | |
| ``` | |
| ### Train face parsing model (optional) | |
| Follow this repo [zllrunning/face-parsing.PyTorch](https://github.com/zllrunning/face-parsing.PyTorch) |