Skip to content

A demonstration of using a live Tensorflow session to create an interactive face-GAN explorer.

License

Notifications You must be signed in to change notification settings

brandaobrandisborges/demo-face-gan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streamlit Demo: The Controllable GAN Face Generator

This project highlights Streamlit's new hash_func feature with an app that calls on TensorFlow to generate photorealistic faces, using Nvidia's Progressive Growing of GANs and Shaobo Guan's Transparent Latent-space GAN method for tuning the output face's characteristics. For more information, check out the tutorial on Towards Data Science.

The Streamlit app is implemented in only 150 lines of Python and demonstrates the wide new range of objects that can be used safely and efficiently in Streamlit apps with hash_func.

In-use Animation

How to run this demo

The demo requires a CUDA-compatible GPU and Python 3.6 (TensorFlow is not yet compatible with later versions). We suggest creating a new virtual Python 3.6 environment, then running:

git clone https://github.com/streamlit/demo-face-gan.git
cd demo-face-gan
pip install -r requirements.txt
streamlit run app.py

Questions? Comments?

Please ask in the Streamlit community.

About

A demonstration of using a live Tensorflow session to create an interactive face-GAN explorer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%