This is the repository of my three-week project: "Draw as you can tell: controlled image synthesis and edit using TL-GAN"

A high quaility video of the above GIF on YouTube
I host the demo as a Kaggle notebook instead of a more convenient web app due to cost considerations.
Kaggle generously provides kernels with GPUs for Free! Alternatively, a web app with a backend running on an AWS GPU instance costs ~$600 per month. Thanks to Kaggle that makes it possible for everyone to play with the model without downloading code/data to your local machine!
Open this link from your web browser: https://www.kaggle.com/summitkwan/tl-gan-demo
Tested on Nvidia K80 GPU with CUDA 9.0, with Anaconda Python 3.6
cd to the root directory of the project (the folder containing the README.md)pip install -r requirements.txt in terminal. You can use virtual environment in order not to modify your current python environment.Decompress the downloaded files and put it in project directory as the following format
text
root(d):
asset_model(d):
karras2018iclr-celebahq-1024x1024.pkl # pretrained GAN from Nvidia
cnn_face_attr_celeba(d):
model_20180927_032934.h5 # trained feature extractor network
asset_results(d):
pg_gan_celeba_feature_direction_40(d):
feature_direction_20181002_044444.pkl # feature axes
Run the interactive demo by first enter interactive python shell from terminal (make sure you are at the project root directory), and then run the commands in python
python
exec(open('./src/tl_gan/script_generation_interactive.py').read())
Alternatively, you can run the interactive demo from the Jupyter Notebook at ./src/notebooks/tl_gan_ipywidgets_gui.ipynb
A interactive GUI interface will pop up and play with the model
python ./src/ingestion/process_celeba.py celebA$ claude mcp add transparent_latent_gan \
-- python -m otcore.mcp_server <graph>