564 B
564 B
- Install deps to run clip and stylegan2-ada-pytorch in a python virtual env.
- Install deps from stylegan2-ada-pytorch repo. Major ones are pytorch >= 1.7 and CUDA >= 11.0
- Download ffhq-pretrained stylegan2 model from the above repo.
- Use the virtual environment from above and Run through generation_demo.ipynb - this code samples images from a styleGAN2 network and scores them using CLIP
- ganalyze_with_clip.py is the main code that runs the steering pipeline with a generative model and CLIP. Change output paths and model paths from within the code.