• Stars
    star
    294
  • Rank 136,686 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Open in Streamlit

Streamlit Demo: The Controllable GAN Face Generator

This project highlights Streamlit's new st.experimental_memo() and st.experimental_singleton() features 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.

In-use Animation

How to run this demo

The demo requires Python 3.6 or 3.7 (The version of TensorFlow we use is not supported in Python 3.8+). We suggest creating a new virtual environment, then running:

git clone https://github.com/streamlit/demo-face-gan.git
cd demo-face-gan
poetry install
poetry run streamlit run streamlit_app.py

Model Bias

Playing with the sliders, you will find biases that exist in this model. For example, moving the Smiling slider can turn a face from masculine to feminine or from lighter skin to darker. Apps like these that allow you to visually inspect model inputs help you find these biases so you can address them in your model before it's put into production.

Questions? Comments?

Please ask in the Streamlit community or check out our article.

More Repositories

1

streamlit

Streamlit — A faster way to build and share data apps.
Python
31,852
star
2

demo-self-driving

Streamlit app demonstrating an image browser for the Udacity self-driving-car dataset with realtime object detection using YOLO.
Python
1,141
star
3

component-template

Templates and example code for creating Streamlit Components
Python
389
star
4

llm-examples

Streamlit LLM app examples for getting started
Python
388
star
5

demo-uber-nyc-pickups

A Streamlit demo to interactively visualize Uber pickups in New York City
Python
296
star
6

streamlit-example

Example Streamlit app that you can fork to test out share.streamlit.io
Python
266
star
7

app-starter-kit

Streamlit App Starter Kit helps kick start your Streamlit app creation.
Python
135
star
8

release-demos

Python
94
star
9

docs

Source code for the Streamlit Python library documentation
JavaScript
93
star
10

30days

#30DaysOfStreamlit is a 30-day social challenge for you to build and deploy Streamlit apps.
Python
73
star
11

gsheets-connection

Python
67
star
12

example-app-bert-keyword-extractor

Python
63
star
13

example-app-pdf-report

🎓 Diploma PDF Generator
Python
55
star
14

StreamlitLangChain

Python
52
star
15

snowflake-usage-app

A Streamlit app that provides insights on your Snowflake account usage.
Python
52
star
16

roadmap

A public roadmap for Streamlit
Python
50
star
17

example-app-time-series-annotation

Python
45
star
18

example-app-editable-dataframe

This is a demo of a dataframe with editable cells, powered by `streamlit-aggrid` from Pablo Fonseca. You can edit the cells by clicking on them and then export your selection to a csv file! 🎈
Python
44
star
19

example-app-commenting

A Streamlit app to show how you can easily empower viewers to comment and collaborate on your app using a commenting component. The comments are hosted on a Google Sheets.
Python
44
star
20

snowflake-arctic-st-demo

Example repository for running Snowflake Arctic on Streamlit
Python
43
star
21

figma-to-streamlit

Prototype plugin to turn Figma components into st code snippets
TypeScript
41
star
22

30days-i18n

Python
37
star
23

hello

Python
36
star
24

example-app-csv-wrangler

Python
36
star
25

example-app-bug-report

Python
31
star
26

example-app-ab-testing

Python
26
star
27

example-app-twitter-analyzer

Python
23
star
28

demo-deepdream

A Streamlit demo demonstrating the Deep Dream technique. Adapted from the TensorFlow Deep Dream tutorial.
Python
21
star
29

files-connection

Python
17
star
30

example-app-image-comparison

Python
16
star
31

example-app-invoice-generator

HTML
15
star
32

mintaka

TypeScript
15
star
33

data_sources_app

An app that makes it easy to connect to a user's data warehouse and make a dashboard out of it.
Python
14
star
34

example-app-zero-shot-text-classifier

Python
14
star
35

example-app-crypto-dashboard

Python
13
star
36

example-app-interactive-table

Python
13
star
37

links

Python
13
star
38

example-app-streamlit-codex

Python
12
star
39

theming-showcase-blue

Showcase app for Theming (Custom Theme, Blue)
Python
11
star
40

theming-showcase

Showcase app for Theming (Light Theme)
Python
11
star
41

example-app-langchain-rag

Streamlit app demonstrating using LangChain and retrieval augmented generation with a vectorstore and hybrid search
Python
10
star
42

example-app-material-UI-button-creator

Design your Material-UI buttons, add clickable hyperlinks, integrate them in your Streamlit apps! 🎈
Python
9
star
43

emoji-shortcodes

App showing all the emoji shortcodes supported by Streamlit
Python
9
star
44

example-app-download

Python
8
star
45

streamlit-hello

The App you get when you run `streamlit hello` extracted as its own app.
Python
8
star
46

example-app-cv-model

Computer Vision app
Python
7
star
47

example-app-speech-to-text-transcription

Python
7
star
48

demo-streamlit-shap

Python
7
star
49

example-app-dbt

Python
7
star
50

streamlit-app-action

Simple GitHub Action workflows for validating a Streamlit app
Python
7
star
51

blog-image-generator

Streamlit app that generates SVGs for use in our blog
Python
6
star
52

core-previews

App used to preview Streamlit Core PRs inside S4T
Python
6
star
53

example-app-cohort-analysis

Python
5
star
54

static-file-serving-demo

Python
4
star
55

example-app-QA-generator

Python
4
star
56

mol-demo

Python
4
star
57

demo-pydeck-maps

A Streamlit app demonstrating usage of the pydeck library to display geospacial data
Python
4
star
58

snowflake-double-blind-demo

An example Streamlit app that demonstrates using Snowflake to join two datasets that use obfuscated IDs for data security
Python
4
star
59

example-data

Data files used in "streamlit hello"
3
star
60

theming-showcase-green

Showcase app for Theming (Custom Theme, Green)
Python
3
star
61

st-issues

Central repo to reproduce bugs
Python
3
star
62

theming-showcase-dark

Showcase app for Theming (Dark Theme)
Python
3
star
63

30days-spanish

#30DaysOfStreamlit es una competencia de 30 días para construir y desplegar aplicaciones hechas con Streamlit.
Python
2
star
64

example-app-reddit

Python
2
star
65

example-app-document-anonymizer

Python
2
star
66

arrow-js

A fork of `[email protected]` that fixes `BigInt64Array` issue in Safari.
JavaScript
2
star
67

demo-culture-map

Python
2
star
68

cloud-example-apps

Python
2
star
69

basic-template

Python
2
star
70

example-app-file-converter

Python
1
star
71

30days-polish

Python
1
star
72

demo-tab-container

Demo app to showcase the new st.tabs component
Python
1
star
73

hpe-meetup-demo

Python
1
star
74

streamlit-ketcher

Chemical molecule custom component for Streamlit apps
TypeScript
1
star
75

Interactive-Data-Explorer

Python
1
star
76

GDP-Dashboard

Python
1
star
77

Inventory-Tracker

Python
1
star