Skip to main content

Random Face

Project description

Random Face

A simple python library for fast image generation of people who do not exist.

Downloads Downloads Downloads

For more details, please refer to the paper.

Requirements

  • Linux, Windows, MacOS
  • Python 3.8.+
  • CPU compatible with OpenVINO.

Install package

pip install random_face

Install the latest version

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

python -m random_face.demo

Example

import cv2
import random_face

engine = random_face.get_engine()
face = engine.get_random_face()
cv2.imshow("face", face)
cv2.waitKey()

Open In Colab Open In Gradio

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}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

random_face-2021.7.21.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

random_face-2021.7.21.1-py3-none-any.whl (37.6 MB view details)

Uploaded Python 3

File details

Details for the file random_face-2021.7.21.1.tar.gz.

File metadata

  • Download URL: random_face-2021.7.21.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for random_face-2021.7.21.1.tar.gz
Algorithm Hash digest
SHA256 2b02afbb5c93895eb94753826b968a57e133d1fae9f4e7f231ad320dd8c67780
MD5 d5baf71b51cace5b2170d0cc51c91a31
BLAKE2b-256 839884aa8a0ac69e013d832ae1d94629cd0de5798d78e441a5b235f338c02c53

See more details on using hashes here.

File details

Details for the file random_face-2021.7.21.1-py3-none-any.whl.

File metadata

  • Download URL: random_face-2021.7.21.1-py3-none-any.whl
  • Upload date:
  • Size: 37.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

File hashes

Hashes for random_face-2021.7.21.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5d10e2be7df63f06123855ec591ca35dcb1d059eba47ddcb175d7d26b4019b5
MD5 8753d428d30794a132040332d0d34d29
BLAKE2b-256 2a302bdff17a2e89708dd9688b0d1763a21e319c4a69818d3241ee997f07bd40

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page