Skip to content

Instantly share code, notes, and snippets.

@SushiPython
Created April 18, 2021 06:16
Show Gist options
  • Save SushiPython/b54a38c265d90c6b75f7792b974b42dd to your computer and use it in GitHub Desktop.
Save SushiPython/b54a38c265d90c6b75f7792b974b42dd to your computer and use it in GitHub Desktop.

VQGAN-CLIP Install Guide

Windows

Create a folder on your PC, cd into that folder, and type the follow commands

git clone https://github.com/openai/CLIP

git clone https://github.com/CompVis/taming-transformers

pip install ftfy regex tqdm omegaconf pytorch-lightning ipywidgets pillow IPython

Note, depending on your python installation, you may have to do pip3, py -m pip, py -m pip3, or others

Download the following files

Rename to vqgan_imagenet_f16_1024.yaml, URL: 'https://heibox.uni-heidelberg.de/d/8088892a516d4e3baf92/files/?p=%2Fconfigs%2Fmodel.yaml&dl=1'

Rename to vqgan_imagenet_f16_1024.ckpt, URL: 'https://heibox.uni-heidelberg.de/d/8088892a516d4e3baf92/files/?p=%2Fckpts%2Flast.ckpt&dl=1'

Rename to vqgan_imagenet_f16_16384.yaml, URL: 'https://heibox.uni-heidelberg.de/d/a7530b09fed84f80a887/files/?p=%2Fconfigs%2Fmodel.yaml&dl=1'

Rename to vqgan_imagenet_f16_16384.ckpt, URL: 'https://heibox.uni-heidelberg.de/d/a7530b09fed84f80a887/files/?p=%2Fckpts%2Flast.ckpt&dl=1'

Download the Code

curl https://cdn.sushipython.us/content/random/image-ai/gene.py Change lines 133-147 to your desired settings (134 is the prompt).

Run the Code

Simply run py gene.py (or python3 / python depending on your install)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment