Understanding Representations of Humans in Generative Image Modeling Through Discrete Counterfactual Prompt Optimization