This repo contains code for Concept Algebra for (Score-Based) Text-Controlled Generative Models.
- For binary concepts, we make a demo in
concept_algebra_demo.ipynb. More experiments can be run usingbinary_concept_pj.py. - For categorical concepts, we use style as an example, and implement concept algebra in
style_concept_pj.py.