https://github.com/bes-dev/random_face
A simple python library for fast image generation of people who do not exist.
https://github.com/bes-dev/random_face
Last synced: 11 months ago
JSON representation
A simple python library for fast image generation of people who do not exist.
- Host: GitHub
- URL: https://github.com/bes-dev/random_face
- Owner: bes-dev
- License: apache-2.0
- Created: 2021-04-09T13:13:58.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2024-12-17T14:23:24.000Z (over 1 year ago)
- Last Synced: 2025-05-23T13:22:54.668Z (about 1 year ago)
- Language: Python
- Homepage: https://pypi.org/project/random-face/
- Size: 1.56 MB
- Stars: 182
- Watchers: 4
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Random Face
A simple python library for fast image generation of people who do not exist.
[](https://pepy.tech/project/random-face)
[](https://pepy.tech/project/random-face)
[](https://pepy.tech/project/random-face)
For more details, please refer to the [paper](https://arxiv.org/abs/2104.04767).
## Requirements
* Linux, Windows, MacOS
* Python 3.8.+
* CPU compatible with OpenVINO.
## Install package
```bash
pip install random_face
```
## Install the latest version
```bash
git clone https://github.com/bes-dev/random_face.git
cd random_face
pip install -r requirements.txt
python download_model.py
pip install .
```
## Demo
```bash
python -m random_face.demo
```
## Example
```python
import cv2
import random_face
engine = random_face.get_engine()
face = engine.get_random_face()
cv2.imshow("face", face)
cv2.waitKey()
```
[](https://colab.research.google.com/github/ZackPashkin/random_face/blob/master/Generate_faces.ipynb)
[](https://gradio.app/hub/AK391/MobileStyleGAN.pytorch)
## Citation
```
@misc{belousov2021mobilestylegan,
title={MobileStyleGAN: A Lightweight Convolutional Neural Network for High-Fidelity Image Synthesis},
author={Sergei Belousov},
year={2021},
eprint={2104.04767},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
```