Elamur Research

StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery

Paper · 2021 · Or Patashnik, Zongze Wu, Eli Shechtman et al.

Summary

A portrait generator may be able to draw a convincing Mohawk without giving anyone an obvious way to add one to a particular portrait. Its inputs are numerical codes, and discovering which changes to those codes produce a particular hairstyle can take considerable work. StyleCLIP asks whether a written description can guide that discovery. The authors pair StyleGAN, which renders images from internal codes, with CLIP, which represents pictures and text in a common space. The relationship between those representations gives the editor a measure of semantic similarity. An edit can then be guided by the description without collecting a new set of pictures labeled for the requested property.

The paper presents three ways to turn that guidance into an edit. Direct optimization searches for a suitable code for each source image and description. It is the most flexible of the three methods and takes several minutes per edit. A mapper learns to predict a change for a particular description. Preparing it takes a few hours, after which it can edit different inputs in a single pass and tailor the adjustment to each image. The global method first measures what individual StyleGAN controls tend to do. It then uses a contrast between a desired description and a neutral one to combine those controls into a direction that can be reused across images. A user can adjust both the amount of movement and the threshold that determines which controls contribute.

The demonstrations cover faces, cars, animals, and churches. In portraits, the mapper can coordinate changes such as hair length and texture, and it comes closer to a named person’s appearance in the illustrated identity-related comparison. Global directions work well for many familiar attributes. For example, they remove wrinkles with fewer accompanying changes in a case where the mapper struggles. Varying the channel threshold also changes what an edit encompasses. An adjustment concentrated on greying the hair can extend to wrinkles and face shape when more channels participate.

The comparisons with TediGAN and established StyleGAN editing methods rely chiefly on visible outcomes. They show where an approach can follow a request or preserve source details more successfully, while leaving its reliability across arbitrary pictures and prompts open. The pairing has two sources of dependence. StyleGAN must be able to render the desired appearance, and CLIP must associate the words with a useful visual change. The paper’s animal examples make the first dependence concrete. Moving from a tiger toward a lion is easier in the demonstrated setting than producing a wolf-like shape from the same kind of starting image.

Deep dive: StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery

StyleCLIP uses CLIP to edit StyleGAN images from text, with different methods for detailed changes, fast reuse, and control over side effects. · about 40 minutes to read

The problem and its context

An image can be easy to render and hard to revise

The paper starts with a property of StyleGAN that earlier work had already made visible. Its internal representations can serve as controls over the images it produces. Render an image from a code, change the code, and render again. With a well-chosen change, the sequence can show a person gaining an attribute, changing expression, or taking on a different appearance while remaining recognizably connected to the starting portrait. The useful object for editing is the relationship between nearby codes and their images. Finding one plausible result is only part of the task. The editor must also find a plausible result that still belongs with the source.

A direction in a latent space describes how to move the code. It may affect something that a person recognizes immediately, or it may change several features whose relationship is harder to name. Even a consistent direction costs effort to turn into a usable control. An investigator has to decide what it changes, how strongly it changes it, and which details tend to move along with it. When a user has a request that falls between the available directions, the existence of convincing generated images offers little help in choosing the next numerical step.

Earlier research approached that discovery problem in several ways. Some methods used annotations to find paths associated with known properties. Attribute classifiers offered a related source of evidence by scoring the presence of a property in an image. Other procedures looked for directions without labels and then relied on a person to interpret their effects. Unsupervised discovery could therefore reduce the work of proposing directions while still leaving the job of assigning useful meanings to them. A separate line of work learned to encode a source image directly into a representation of an edited one. The connection between that input and its desired output still had to be established for the intended task.

The paper also describes interfaces whose design reflects the particular features they aim to control. StyleRig makes use of a parametric representation of faces. StyleFlow learns a conditional flow to navigate appearances under attribute control. Work on virtual try-on or age transformation defines the desired kind of change more specifically from the outset. These approaches supply useful mechanisms for the edits they address. StyleCLIP takes up a different part of the problem by asking how a person can name another operation once the generator is already available.

This is where separation between visual attributes matters. An editor may want lipstick to change while the individual’s face and surroundings still look familiar. A direction that also changes the face can remain easy to recognize as a lipstick direction, yet be a poor answer to that request. The paper uses disentanglement to describe the extent to which controls can alter a chosen property independently of others. Earlier StyleSpace work had reported stronger separation in StyleGAN’s style channels than in the intermediate representations commonly used for editing. This establishes a reason to consider both the meaning of an edit and the particular internal coordinates through which it is carried out.

What the connection between words and images supplies

Research in vision and language had developed joint representations for retrieving pictures from descriptions, generating captions, and answering questions about images. The paper situates CLIP alongside work on shared representations such as UNITER. It also describes the use of transformers for learning relationships between the two kinds of input. For StyleCLIP, the important property is that a picture and a sentence can be represented as vectors in the same coordinate system. A numerical comparison can then guide a choice among images.

CLIP, short for Contrastive Language-Image Pre-training, learned from 400 million image–text pairs drawn from internet sources. The paper points to its use for zero-shot recognition, where a new set of category names can be supplied as text and compared with an image without training a new classifier for those categories. The editing question begins at the other end of that comparison. Given a description and a picture, can the numerical relationship between their representations tell an image generator how to move? Recognition compares a fixed picture with candidate descriptions. Editing has to change the picture, with the description providing guidance about which changes to prefer.

The paper places this question within a longer history of text-guided synthesis. Early conditional adversarial generators took a representation of the description as a condition for producing an image. StackGAN pursued higher image quality by generating at multiple scales. AttnGAN used attention to connect features of the text with features of the image. Other work sought improvements through additional supervision. These approaches established ways for language to participate in image construction, including ways to reflect more detailed descriptions.

The related work also includes systems built specifically to edit existing images. Some use a generator-based encoder and decoder to handle the input picture and its accompanying description. ManiGAN introduces a component that combines text and visual information for manipulation. The concurrent TediGAN approach shares StyleCLIP’s interest in using StyleGAN for text-guided tasks. In the version described by its paper, an encoder places a description in StyleGAN’s latent space. An image to be edited is also encoded, and styles from the two representations are mixed to obtain a result. TediGAN thus makes the text a source of latent content for combination with image content.

The authors acknowledge a contemporaneous demonstration by Victor Perez that joins CLIP and StyleGAN for generation from prompts, using a connection similar to their optimizer. They also discuss the earlier DALL·E in connection with GPT-3 and Language Models are Few-Shot Learners. Their contextual figures for DALL·E describe a 12-billion parameter system requiring over 24GB of GPU memory at 16-bit precision. They present operation on a commodity GPU as a practical advantage of their own approach. The paper’s editing objective, however, has a separate motivation from the question of what equipment can run a generator. For the authors’ intended creative workflow, the person may already have the picture and want to retain much of what is in it.

The source image is part of the request

A description can be very precise about the feature to introduce and silent about everything else. When a user requests curly hair, the source defines whose hair should change, what the rest of the face looks like, and which surroundings the result should still depict. The prompt ordinarily does little to specify these details. A generator could produce a picture with excellent curly hair and still miss most of the editing intention if it replaces the subject along the way.

Other requests give preservation a different meaning. Using a person’s name as a prompt can invite changes to several cues at once, including cues that make the original person recognizable. A small visual adjustment may leave too little resemblance to the intended person. An editor thus needs some way to express how strongly to protect the source, and the answer can differ with the kind of request.

The three StyleCLIP methods make this choice at different points. The optimizer balances agreement with the prompt against penalties for leaving the source. The mapper learns a comparable balance for a description it will encounter repeatedly. The global method can limit the set of channels that participates in the edit. The distinction matters for hair color and wrinkles, where a user may want a degree of control over each in spite of their tendency to occur together in the generated imagery.

The method, step by step

Locate the source inside StyleGAN

StyleGAN renders an image from a collection of numerical inputs. The experiments use StyleGAN2, with domain-specific pretrained generators and StyleGAN2-ada used in some demonstrations. To describe an edit, the paper distinguishes intermediate latent codes from the style values that control the generator’s layers. The extended latent space, 𝒲+, supplies separate parts of the code to different layers. The optimizer and mapper change those parts. StyleSpace, written 𝒮, provides coordinates for individual style channels. The global method uses those coordinates to specify directly which channels move.

A generated source comes with a code that can be used to render it again. A real photograph must first be inverted. In the paper, the e4e encoder takes a real image and supplies a code in 𝒲+. Rendering from that code gives the source as represented by StyleGAN, and the editing procedure starts from there. Later adjustments can be evaluated against that reconstruction. Any difference already introduced by encoding and rendering is part of the real-image workflow before the text takes effect.

All three methods follow the same broad sequence. The differences lie in the way the language is represented and the work needed to derive the next code. The optimizer computes an image–text score as it searches. The mapper uses that score during training. Global directions connect text to measurements gathered from the generator in advance.

How StyleCLIP produces an edited image

The steps in order.

How StyleCLIP produces an edited imageStep 1: Obtain a code for the source image1. Obtain a code for the source imageStep 2: Express the desired change in words2. Express the desired change in wordsStep 3: Get semantic guidance from CLIP3. Get semantic guidance from CLIPStep 4: Search, predict, or assemble a code adjustment4. Search, predict, or assemble a code adjustmentStep 5: Apply the adjustment to the source code5. Apply the adjustment to the source codeStep 6: Render the edited image with StyleGAN6. Render the edited image with StyleGAN

Direct optimization scores each candidate image

The first method treats the edit as a search for a code. Begin with the source code, render a candidate image, and ask CLIP how closely it fits the description. CLIP computes an embedding for each input, meaning a vector representing the input in its shared space. The cosine comparison evaluates the orientation of the image vector relative to the text vector. A smaller cosine distance gives the candidate a better score for the instruction.

Optimizing that score by itself would make any recognizable instance of the desired attribute attractive. The source matters independently of the prompt. The objective therefore also charges for movement in latent space and, when needed, for movement away from the original facial identity. The authors formulate the search as follows.

arg min {D꜀ₗᵢₚ(G(w), t) + λₗ₂ ‖w − wₛ‖₂ + λᵢᴅ ℒᵢᴅ(w) : w ∈ 𝒲+}

The arg min selects the code at which the quantity is minimized. The condition w ∈ 𝒲+ restricts the candidate code w to the extended latent space. The subscript s in wₛ identifies the source code. G is the pretrained generator and G(w) is the candidate image. t is the text prompt. D꜀ₗᵢₚ denotes the cosine distance between the CLIP representations of its two arguments. The plus signs combine contributions to the objective. The subtraction w − wₛ gives the displacement in code space, and the bars with subscript ₂ take its Euclidean length. The multiplier λₗ₂ gives that length its weight. ℒᵢᴅ(w) is the identity penalty at the candidate code, weighted by λᵢᴅ.

The latent penalty uses the length of the displacement itself. Its value expresses how far the code moved in the search coordinates. For a face edit, the identity term measures a different kind of distance. The paper uses ArcFace, a pretrained face-recognition network, to represent the faces rendered before and after the edit.

ℒᵢᴅ(w) = 1 − ⟨R(G(wₛ)), R(G(w))⟩

ℒᵢᴅ(w) is the cost of changing the facial identity at candidate w. R is ArcFace. With G as the generator, R(G(wₛ)) describes the face in the original rendering and R(G(w)) describes the candidate. The angle brackets denote cosine similarity between those descriptions. Subtracting the similarity from 1 makes greater recognition similarity correspond to a smaller loss.

The authors minimize the objective by gradient descent. At a candidate code, they calculate how a small change would alter the loss and use that information to take another step. The calculation propagates through the image encoder in CLIP and through the StyleGAN renderer back to the code. The weights of the pretrained components stay fixed. All the movement during this procedure is in the code of the image being edited.

This setup makes it straightforward to ask a new question of an individual portrait. Feeding in a new text description changes the loss used to guide the search. Prompts can refer directly to visible details, such as a beard or blonde hair, or indirectly to an appearance associated with a name, such as Elsa. In the latter case the appearance comes from the visual associations CLIP brings to the name. The method can still place a different value on preserving the source in each search. The authors reduce the identity weight for transformations meant to approach a different identity. The paper’s optimizer illustrations use 200-300 iterations and begin with real images inverted by e4e.

This flexibility incurs work for each source image. Knowledge of the solution for one portrait contributes no learned adjustment to the next search under the same prompt. The penalties also have to suit the intended amount and kind of change. If the identity weight is strong, for instance, attempts to acquire another person’s facial appearance compete directly with the preservation signal. For repeated use of a description, the authors look for a way to learn that balance ahead of time.

A mapper learns the change for one prompt

The second method trains a network that receives an image’s latent code and returns an adjustment. A residual is the amount added to the existing code. Thus the learned output only needs to describe the change, and the source code supplies the rest. The description stays fixed for the duration of training. Once trained, the mapper takes a code for another source and predicts an adjustment in one forward pass through its networks. Different input codes can yield different displacements under the same description.

The design follows the grouping of StyleGAN layers by level of detail. The authors divide the extended latent code into coarse, medium, and fine parts and let a fully connected network operate on each part. Every branch follows the form of the StyleGAN mapping network with a depth of 4 layers. The reference network has 8 layers. The division gives the mapper separate places to learn changes at different levels. It also gives the authors a direct way to withhold changes at a level whose usual effects are undesirable for a particular request.

Mₜ(w) = (Mᶜₜ(w꜀), Mᵐₜ(wₘ), Mᶠₜ(wꜰ))

Mₜ denotes the full mapper prepared for prompt t. Its input w has the parts w꜀, wₘ, and wꜰ, for the coarse, medium, and fine layer groups. The superscripts c, m, and f identify the matching branch networks. Each branch receives its own part of the input and predicts a residual for the corresponding group. The parentheses on the right collect those residuals into the full displacement. The generator receives the source plus this displacement when rendering the edit.

During training, the mapper’s output is judged after it has been added to the source. A small residual is useful only if it leads to a picture that agrees with the description. The training signal therefore passes through the rendered result.

ℒ꜀ₗᵢₚ(w) = D꜀ₗᵢₚ(G(w + Mₜ(w)), t)

ℒ꜀ₗᵢₚ(w) is the prompt-related loss for source code w. Mₜ(w) is the residual predicted for prompt t, and the plus sign adds it to the source. G renders the resulting code. D꜀ₗᵢₚ measures the cosine distance between the CLIP embedding of that rendering and the embedding of t.

A training example supplies a starting point at which the network can attempt the desired change. The paper supervises the attempt with the description, the size of the residual, and, for relevant face edits, the recognition similarity. A desired hairstyle need not be provided as a paired target photograph for each source. Since the mapper is learned across inputs, the same prompt can lead to different hair shapes in response to individual features already present in the portraits.

ℒ(w) = ℒ꜀ₗᵢₚ(w) + λₗ₂ ‖Mₜ(w)‖₂ + λᵢᴅ ℒᵢᴅ(w)

ℒ(w) is the total training loss for source code w. ℒ꜀ₗᵢₚ(w) measures agreement with the prompt after editing. ‖Mₜ(w)‖₂ is the Euclidean length of the residual predicted by the mapper for t, and λₗ₂ weights that restraint. ℒᵢᴅ(w) in the mapper objective is the source-to-edit recognition penalty, evaluated on the renderings of the original and residual-adjusted codes. λᵢᴅ controls its contribution. The plus signs add the terms.

For its usual mapper examples, the paper sets the latent penalty weight to 0.8 and the identity penalty weight to 0.1. The Trump comparison uses a latent weight of 2 and an identity weight of 0. The zero weight omits the recognition penalty against leaving the source identity. The difference in the latent weights also means this example uses its own balance of constraints, even apart from the decision to allow identity change.

The architecture makes it possible to train the mapper for a narrower set of layer groups. In the appendix, the authors consider hairstyle changes for which they want to preserve the overall color scheme. They train the coarse and medium branches and assign a zero residual to the fine part.

Mₜ(w) = (Mᶜₜ(w꜀), Mᵐₜ(wₘ), 0)

Mₜ remains the mapper for description t, and w is the source code. Mᶜₜ and Mᵐₜ produce residuals from the coarse part w꜀ and medium part wₘ, respectively. The final 0 stands for an all-zero residual for the fine part. In this variant, the fine entries retain their source values when the residual is added. A penalty can make adjustment expensive. This architectural restriction removes those entries from the set of available adjustments.

The preparation cost belongs to the prompt. Training takes a few hours, during which the network learns what kind of residual to predict under that instruction. Afterwards, the work performed for a new image is a forward pass and rendering, with inversion also required for a real input. A user who wants a previously untrained description needs a different mapper. For frequently used requests the preparation can be shared among pictures, even though each resulting displacement remains specific to its input.

The global method starts from a contrast in language

The authors found that the mappers frequently produced displacements with similar orientations for different inputs under a fixed prompt. This observation suggested trying a single direction that could be applied across images. They also wanted finer separation between properties than they sometimes obtained by editing in 𝒲+. They therefore formulate the shared direction in 𝒮, where the coefficients of the edit correspond to individual style channels.

G(s + αΔs)

G renders a style code, and s is the starting code in StyleSpace. Δs is the shared editing direction. The delta symbol indicates a change, and α multiplies all coefficients of that direction to set the displacement. The plus sign applies the displacement to the initial style values. Positive and negative strengths move along opposite orientations of the same direction. Even with the same displacement, the resulting visible change can depend on the picture from which the generator starts.

To find a direction for an attribute, the authors supply a target and a neutral description. For cars, the example pairs a sports car with a generic car. Both descriptions concern the same broad class. The difference between their representations is intended to emphasize what turning toward the target would add. The method uses a textual reference category because the target phrase alone represents a whole description, with information about both the property and the kind of thing that has it.

Each side of the contrast is embedded through several formulations. The authors reuse CLIP’s ImageNet bank of 80 sentence templates. These introduce contexts such as a description of a photograph in monochrome or a description of a painting. The target fills the slots in one set of sentences and the neutral category fills the slots in the other. The embeddings are averaged within each set. The difference from the neutral average to the target average is then normalized. The paper motivates this use of templates by citing an additional 3.5% in zero-shot ImageNet classification accuracy for CLIP relative to a single prompt. That measurement belongs to the earlier classification application. The paper uses the template procedure here to construct a text direction for editing.

Δt = (μₜ − μₙ) / ‖μₜ − μₙ‖₂

Δt is the direction expressed by the textual contrast. In this notation, μₜ is the mean embedding across formulations of the target and μₙ is the mean embedding for the neutral category. The minus sign takes the change from neutral to target. The slash divides the difference by its Euclidean length, written with the bars and subscript ₂, to give a unit-length direction when the difference is non-zero.

The joint CLIP space contains the possible text embeddings and the possible image embeddings, which the paper treats as distinct sets. A single picture may carry enough detail to support many descriptions, and a single description can fit pictures with very different contents. The global method is based on a more limited correspondence. Where the embedding is well supported, it expects the direction of a contrast between descriptions to be close to the direction of the corresponding visual change. Because CLIP represents each input with a normalized embedding, the orientation of an embedding carries the information used for the comparison. The subsequent differences describe how that orientation changes when the input changes.

Δi = Cᵢ(G(s + αΔs)) − Cᵢ(G(s))

Δi denotes the visual displacement in the common embedding space. Cᵢ is notation for the CLIP image encoder. G(s) renders the source style code s, and G(s + αΔs) renders it after adding the displacement with strength α along Δs. The minus sign subtracts the source embedding from the edited embedding. The authors use the text direction Δt as the reference for the visual direction they want to induce.

This assumption leaves a practical problem. The CLIP space gives each image an address useful for comparison with text, but its coordinates are distinct from the controls of the generator. A direction defined by sports-car language can indicate where the embedding should move, while leaving entirely open which style controls would make a rendered car move that way. The next step builds a connection from the controls to observable changes.

Look up what individual style channels tend to do

The authors sample style codes and intervene on one channel at a time. For a chosen coordinate, they render versions with the channel moved up and down, with the other coordinates fixed within each pair. The distance in the channel is set relative to its standard deviation, which reflects the scale of its ordinary variation. Consequently, a channel whose numbers usually vary across a broad range receives a larger raw numerical perturbation than a channel whose values are more concentrated.

G(s ± αΔs꜀)

G is the image generator and s is a sampled style code. The subscript c in Δs꜀ identifies the channel under examination. The vector has zero values except at that channel, where its coefficient is the standard deviation of the channel. The plus–minus symbol specifies the two renderings, with a positive or negative perturbation of the same magnitude. For these measurements the scalar α is set to 5. This is the probe strength used to analyze channels, separate from the strength a person selects for an edit.

The difference between the two resulting CLIP embeddings gives a visual change associated with that channel for the sampled code. Conceptually, a glimpse of a single edited face can show that a channel has some effect, but the effect might depend on that face’s pose, hair, or expression. Sampling a collection of codes gives an estimate of the direction the channel tends to induce across starting points. For a target edit, the method asks how much of that measured response lies along the requested direction.

R꜀(Δi) = 𝔼ₛ∈𝒮[Δi꜀ · Δi]

R꜀(Δi) is the relevance of channel c to intended visual direction Δi. Here R꜀ denotes relevance, distinct from the face-recognition function R in the identity loss. 𝔼ₛ∈𝒮 takes an expectation over style codes s in StyleSpace 𝒮. Δi꜀ is the embedding displacement between the positive and negative channel perturbations at a source code. The centered dot is the dot product, which gives a signed measure of alignment with Δi. The authors estimate the expectation with 100 image pairs.

A channel that tends to move the visual embedding along the requested direction has positive relevance. One that tends to move it in the opposite direction has negative relevance and can still be useful, since the channel’s coefficient can carry a negative sign. Weak alignment in either orientation gives little reason to include the channel. The measurements of the visual responses are independent of the particular words that will be entered later. The same collection of responses can therefore be projected onto a new target direction without repeating the generator probes for each request.

Decide which channels contribute and how far to move

The method assembles an edit from the strongest signed responses. It uses a threshold on the magnitude of the projection. In the paper’s final rule, the coefficient is written directly in terms of the channel displacement and the target direction. The preceding relevance estimate explains how the channel’s behavior is averaged across inputs.

(Δs)꜀ = { Δi꜀ · Δi  if |Δi꜀ · Δi| ≥ β
          0          otherwise }

(Δs)꜀ is the coefficient assigned to channel c in the direction Δs. Δi꜀ · Δi is the signed projection of the channel’s visual response onto the target direction. The vertical bars take the absolute value of that projection, so ≥ β tests whether its magnitude reaches the threshold β. The coefficient keeps the original sign when the magnitude passes the test. A value of 0 excludes the channel from the adjustment.

The two settings now have different effects. Changing β can include or exclude a channel and thereby change the direction itself. Changing α scales the movement along the direction that has been selected. In the greying example, a high threshold concentrates the change on hair color, and a lower one admits channels associated with other visible changes such as wrinkles. Once a user has picked that scope, a different strength can make the chosen effect more or less pronounced.

A higher threshold can make the change look weaker as well as narrower because fewer components participate. A lower threshold can be useful when the desired concept is expressed by several visible cues together. The paper gives age as an example involving hair color, wrinkles, and skin color. These dependencies explain why a simple control for overall magnitude would leave part of the editing problem unresolved. A user may be satisfied with the amount of greying and still wish to exclude the other properties that start changing alongside it.

Experiments and results

What is being compared

The paper uses image galleries to show the range of available edits and side-by-side comparisons to examine particular tradeoffs. Some examples begin with an inverted real photograph, and some come from a generator in the corresponding domain. For a request comparison, the central questions are whether the feature appears and whether the rest of the picture changes in a way that fits the request. An internal measurement also examines how similar the mapper’s directions are across images. In comparisons against earlier editing methods, an attribute classifier supplies a shared reference for edit strength.

The data have distinct roles. FFHQ is the training source for the face generator used in the global-direction portrait gallery. The paper’s additional mapper portraits are from CelebA-HQ, and the CelebA-HQ test split is specifically identified for the comparison of mapper directions. CelebA serves as the pretraining data for the attribute classifiers in the earlier-method comparisons. The authors use e4e for real-image inversion throughout. The face gallery using global directions illustrates 18 attributes, covering kinds of change such as expression and hairstyle.

For the examples beyond faces, the authors edit real car images through StyleGAN2 pretrained on LSUN cars. The dog demonstrations edit generated images from StyleGAN2-ada pretrained on AFHQ dogs. The supplementary material extends global editing to AFHQ cats and LSUN Church. The animal transformation comparison uses AFHQ wild. In each case the domain-specific generator supplies the pictures that can be rendered from the resulting style codes. The examples demonstrate that the procedure can be applied across domains, with the channels analyzed in relation to the generator in use.

Mapper architecture, preparation, and repeated use

The experiments report architecture sizes and characterize the computational work of each method. The depth comparison concerns one fully connected mapper branch and the StyleGAN mapping network on which it is patterned. There is no dataset split associated with the count because it describes the networks themselves. Fewer layers indicate a shallower branch. The evidence about the effect of organizing the mapper into branches comes separately from the visual ablation.

Depth of a StyleCLIP mapper branch and the StyleGAN mapping network

The branch used to predict a group’s residual is shallower than its reference architecture.

Depth of a StyleCLIP mapper branch and the StyleGAN mapping networkStyleGAN mapping network: 8StyleGAN mapping network8StyleCLIP mapper branch (this paper): 4StyleCLIP mapper branch (this paper)4
The numbers
System or settinglayers per network
StyleGAN mapping network8
StyleCLIP mapper branch (this paper)4

Timing in the methods comparison refers to a single NVIDIA GTX 1080Ti GPU. Search takes several minutes for an individual edit, and the optimization gallery uses 200-300 iterations. Mapper preparation takes a few hours for each prompt and enables adjustment in one forward pass when the trained mapper is reused. The global method needs a one-time analysis of the style channels before new image and description combinations can be handled interactively. These measurements and descriptions identify different units of work. Saving effort at interaction time can involve training for a prompt or preparing measurements for a generator.

Direct optimization appears in its own set of examples, with real portraits and requests ranging from visible characteristics to named targets. The authors omit it from the TediGAN and mapper versus global-direction comparison because tuning its settings across images and prompts is time-consuming. The portraits establish that it can produce a range of changes. Since the side-by-side comparison excludes it, the relative visual performance of a well-tuned optimizer is open in those cases.

The authors make the implementation available as official StyleCLIP code and present interactive examples in a supplementary video. For the video they choose an initial threshold by deciding how many style channels, written k, should participate. The real-face setup starts at α = 3 with k = 20. The real-car setup uses α = 3 and k = 100. The generated-cat setup starts at α = 7 and k = 100. Those values characterize the initial state of the demonstrations. The user can then adjust the controls as the effect becomes visible.

Faces under a fixed description

The mapper examples make it possible to inspect what input dependence looks like on actual faces. The authors show curly-hair and bob-cut edits whose results differ with the individual. The edited hairstyle appears adapted to the portrait, and the authors judge that the displayed faces generally retain identity and most properties unrelated to the hair. In this setting, the use of a learned residual has a directly observable purpose. The same description can guide hair towards a shared kind of appearance without requiring each source to end up with the same visible arrangement.

The paper also varies hair length and texture together. It shows short and long hair combined with straight and curly appearances, with a distinct mapper for each of the four requests. The figures illustrate that the training signal can guide one residual toward both parts of a description. This is more demanding than assessing every example against a label for a single attribute because the intended result depends on the combination. It is also a bounded test of composition. The specific pairings are objectives for separately prepared mappers.

The directional analysis asks whether the numerical residuals are as different across portraits as the visible adjustments might suggest. The authors invert the CelebA-HQ test set with e4e, pass the codes through the trained mappers, and calculate cosine similarity between pairs of directions for each prompt. They summarize those similarities by their mean and standard deviation. Their reported finding is high similarity for directions from the same mapper. Thus the learned adjustments can share an orientation while retaining input dependence. Cosine similarity measures direction, so a change in size can coexist with a high similarity score. Similar displacements in the input space can also render differently depending on where the source code lies.

Requests that differ in specificity

The central comparison tests the mapper, the global method, and TediGAN on face edits with differing demands. The TediGAN implementation is the official version updated to use CLIP for manipulation. That detail identifies the comparator more accurately than the paper’s original description of TediGAN’s method alone. The examples ask for resemblance to Trump, a Mohawk, and removal of wrinkles. The cases progressively place less weight on getting a distinctive collection of traits to appear together.

The Trump example illustrates the distinction between suggestive attributes and a specific identity. Blonde hair, narrowed eyes, the mouth, and fullness in the face can contribute to the association, while a plausible combination of some of these cues can still leave someone looking unlike the intended person. In the paper’s comparison, the global direction captures several broad visual characteristics. The mapper is more successful at conveying the intended identity. Its ability to vary the displacement by input is compatible with that outcome, and the experiment compares complete methods that also operate in different editing spaces.

The Mohawk request narrows the area of interest to the hair, while still asking for a recognizable shape. Both StyleCLIP methods produce what the authors judge to be satisfactory edits. The global edit is less pronounced in the comparison. The authors connect that outcome to the averaging used to form its direction. Viewed with the celebrity example, the result illustrates when an averaged response can still be enough. The hairstyle has a useful shared description across individuals even when its visible expression varies.

Wrinkle removal asks for an isolated change. Here the global direction removes the wrinkles while leaving much of the appearance intact, and the mapper fails on the illustrated request. The authors attribute the difference to the weaker separation of attributes in 𝒲+. This example gives the global method a distinct advantage from speed. Selecting style channels can make it easier to reach a narrow appearance change without requiring a residual across several groups of extended latent coordinates.

In the paper’s main comparison, the authors judge the TediGAN outputs unsuccessful on the displayed requests. Further cases involving Obama-related appearance, anger, and a beard show a similar pattern between the mapper and global directions. Taken together, the images support a practical distinction according to the requested detail. A named identity can call for a coordinated, tailored change. A widely represented attribute can frequently be introduced with a common direction, and a change whose value depends on leaving related attributes alone can benefit from the channel-level controls.

Shared controls at matched classifier response

The paper compares global directions with GANSpace, InterFaceGAN, and StyleSpace for gender-related appearance, grey hair, and lipstick. Each of those controls is available to every method in the comparison. That design makes it possible to ask how cleanly the same property is changed. The wider range of requests enabled by the text interface is illustrated elsewhere, since a side-by-side test on a new request would require every method to have a corresponding control.

The authors follow StyleSpace’s comparison procedure to match the amount of editing. For each attribute they adjust the editing step until the corresponding classifiers, pretrained on CelebA, register the same change in logit value. A logit here is the score the classifier gives the attribute before conversion to a probability. The method gives the visual comparison a common reference. A result that preserves the rest of the face is more informative when its target attribute has also changed according to the shared measure.

In the displayed cases, the authors observe accompanying changes to skin color and lighting with GANSpace. InterFaceGAN’s lipstick edit can substantially affect the person’s apparent identity. The global StyleCLIP result resembles the StyleSpace result, with a more selective effect on the target. The classifier is used to align the comparison strengths. CLIP and the precomputed channel responses give StyleCLIP the direction it applies.

A supplementary comparison with StyleFlow gives examples of comparable visual quality. By using several attribute classifiers and regressors provided by Microsoft’s face API, StyleFlow can work with the attributes those models make available. StyleCLIP uses its existing language–image representation to generate controls for the requests, without adding that collection of attribute-specific supervision. The comparison thus illustrates a difference in how controls become available as well as what the displayed edits look like. Its judgments about quality remain judgments about the images shown.

What the ablations show

Separate branches help when an edit spans levels of detail

The appendix compares the mapper’s separate coarse, medium, and fine networks with a version using a single network. The motivating question is whether the division of inputs and residuals helps the mapper coordinate an edit that needs effects at several scales. The Donald Trump example is especially relevant because a satisfactory transformation needs a combination of changes to hair and face, including expression. The paper describes the branch architecture as compact and its contribution to inference time as negligible.

The authors find that the single-network edit changes expression and hairstyle too weakly in the shown example. It also alters the background color in one of the displayed cases, an effect outside the intended transformation. The version with grouped branches better combines the features relevant to the target appearance. This is visual evidence that the branch organization can matter for some compound requests. The comparison leaves open how much performance depends on other differences between the architectures, such as their parameter allocation, and how often the advantage appears across prompts.

The authors also test the usefulness of the branches in the other direction, by withholding the fine component for a hairstyle request. If the instructions concern the shape of the hair, freedom to change the color scheme can give the mapper opportunities to introduce distracting effects. Keeping the fine code fixed produced slightly better results in the illustrated comparison. The division into branches consequently serves both as a way to coordinate changes across levels and as a means of limiting where they can occur.

The main-paper architecture uses all the branches, and the appendix supplies the restricted case. In the supplementary hairstyle gallery the fine branch is omitted except in the example with purple hair. That exception helps connect the choice to the request. Where color is central to success, restricting a group associated with color can remove useful freedom. The benefit in the shape examples follows from which aspects of the source the authors want to protect.

A name in CLIP and a face in ArcFace guide different edits

For the Beyoncé example, the authors replace the mapper’s CLIP objective with an identity objective using a single target photograph. In the replacement experiment, the intended face is supplied through a recognition representation of that picture. The procedure can therefore encourage recognition similarity to the person whose name drives the CLIP condition. The comparison asks whether those forms of guidance lead to the same visible effect.

The example yields visibly different edits. The authors interpret this as evidence that the celebrity effect elicited by the name in CLIP has a distinctive character. A name can be associated with an appearance through multiple kinds of visual cues, while a face-recognition network organizes images according to the features it uses to recognize a face. A photograph of the target also supplies a particular instance of that person’s appearance. The comparison isolates a consequential change in the objective, with the conclusion tied to the demonstrated target and reference image.

Facial identity takes more than a short latent step

A separate experiment tests the role of ArcFace in preserving the identity of the source. The authors remove the identity loss while retaining the default latent weight of 0.8. The no-identity condition has an identity weight of 0. Under that setting, the mapper can make large changes, and the comparison shows loss of the source identity. They then try increasing the latent weight to 1.6 with the identity term still absent. The stronger penalty improves the incentive to stay close to the starting code, yet the source identity is still insufficiently preserved in the displayed results.

The comparison addresses a specific possible explanation for the identity loss’s benefit. If that term only helped by making the mapper take a smaller step, increasing the latent penalty might have produced the same visible continuity. The ablation shows a failure of that substitution at the tested weights. Code distance describes the size of an adjustment, and recognition similarity measures a property of the generated face. Some directions in code space can affect that property sharply enough that penalizing length alone gives inadequate protection. The result supports using the dedicated identity term when continuity of the person is a requirement of the edit.

Identity preservation has a different role in a request for resemblance to another person. The paper’s mapper settings allow the recognition term to be removed there. Read alongside the ablation, that setting makes explicit how much the success criterion depends on a user’s intention. An identity change can be an unintended loss for a hairstyle edit and a desired part of an appearance transformation.

Strength and the channel threshold govern different effects

The greying analysis varies the displacement and the threshold in the same figure. In one orientation the hair becomes greyer, and in the opposite orientation it darkens. With the direction selected, increasing the magnitude of the step gives a more conspicuous effect. Adjusting the threshold changes what that stronger effect contains. At a high threshold the visible change is concentrated on the hair. Admitting more style channels also brings in wrinkles and differences in facial shape.

The appendix illustrates the same distinction using a direction associated with a male-face description. Movement along the direction makes the pictured facial features more masculine in the authors’ description, and movement in the opposite orientation makes them more feminine. Broader channel inclusion brings other features, including hair length and facial hair, into the edit. The experiment is informative about the associations expressed in the generator and the CLIP comparison. It shows how the threshold can expose or restrain effects that accompany the most prominent ones.

The thresholds are useful because they can change which properties vary under repeated movement. A low-threshold edit gains more available channels with which to express the requested concept. It may also become harder to use for a narrow revision. The comparison with a high threshold shows which details in the examples are particularly sensitive to those additional channels. It gives the user a way to adjust the composition of a visible effect along with the overall intensity.

A harder animal transformation involves shape

The authors use the AFHQ wild generator to compare edits from tigers towards lions and toward wolves. The domain includes wolves, lions, tigers, and foxes, so the two desired categories occur within the same generator’s training setting. The lion transformation depends chiefly on changes in color and texture in the authors’ analysis. The wolf transformation also requires more substantial changes of shape.

The global method is more successful in the lion examples and fails to achieve a convincing wolf in some of the illustrated cases. The supplementary comparison presents different strengths of the transformation. Their outcomes make it possible to see the practical difference between turning up an available effect and finding a direction that expresses the right structural change. The paper treats this as evidence about the difficulty of drastic edits in a visually varied domain. It also provides a useful counterpoint to the finer threshold demonstrations. A broader or stronger channel adjustment can reveal correlated details when those details already contribute to an accessible direction, while a difficult change of shape may require a combination the average response fails to capture.

Limitations

Limits identified by the authors

The authors identify the pretrained generator as a boundary on every method. Each result must be rendered from a code the generator can use, and a successful edit requires access to a plausible appearance near enough to the source for the transformation to make sense. The domain of the training images is an initial guide to what is accessible. Coverage can also be thin for particular appearances within that domain. A category label for the generator says little about how readily every pose, structure, or combination of properties can be reached.

The language–image representation imposes another boundary. In regions of CLIP’s space where a description has weak visual support, minimizing distance to the text or projecting measured channel effects onto its direction may give a poor account of the intended appearance. The method’s numerical response can still supply an optimization target or an editing direction in such a case. Whether it gives the person what they asked for depends on the relationship between the linguistic description and the images learned in that part of the representation.

The authors explicitly call out the difficulty of drastic manipulations. Their comparison of tigers, lions, and wolves shows that a reachable class in the generator’s domain can remain hard to reach from a particular starting point using the shared editing direction. Their explanations of the optimizer and mapper also identify practical constraints. The optimization has substantial per-edit work and can be hard to tune. Mapper training is prompt-specific, and fine-grained selective changes can be hard to obtain with its extended latent representation. The global method can miss the specificity required for an individual identity, even where it recovers more general traits.

Limits of the measurements and comparisons

The evidence establishes successful capabilities under the illustrated conditions. Estimating reliability over arbitrary requests would require a distribution of prompts, a defined collection of source images, and a success criterion applied throughout. The paper presents varied examples, but its visual comparisons provide no population-level success rate. The same distinction applies to the reported range of portrait attributes. The gallery demonstrates breadth through distinct edits. A reader cannot infer from its size how frequently a randomly chosen request would be feasible.

The CelebA classifier protocol controls one measurement of target strength. An attribute classifier’s logit is a proxy for the effect a person perceives. Two images that cause equivalent changes in that score can still differ in how prominently they express the visual property. Likewise, the matched logit leaves questions about identity, background, and lighting to visual inspection. This matters when comparing selective adjustments, since a classifier could respond to correlations involving some of those accompanying features. The protocol is a way to structure the comparison with the same reference for each method. Its conclusions remain tied to that reference and the images.

The baseline comparison is deliberately centered on properties for which all participating methods have a control. This supports a focused comparison of edits at matched strength. The displays of newly accessible requests address another question, about the reach of a language interface when the established controls lack a matching entry. Their evidence consists of demonstrated outputs. The paper leaves open how frequently a new text request can produce a useful edit across starting images and kinds of descriptions. The TediGAN comparison also concerns the updated implementation the authors tested and the specific requests they show.

The directional analysis gives a reason to try common directions without establishing how much is lost by sharing one. A high cosine similarity allows differences in step length and small differences in direction. Either could matter in the rendered image, especially for a feature that depends on a relatively subtle adjustment. The method comparison also changes both the representation and the dependence on the source. Differences between a global effect in StyleSpace and a local effect in 𝒲+ cannot be assigned uniquely to either design choice through that comparison alone.

Limits arising from the editing setup

For a real image, preservation depends in part on how well e4e represents the photograph. The generator reconstructs the source from the inverted code, and an edit acts on that reconstructed representation. A detail that is absent or inaccurate in the reconstruction may stay absent or inaccurate even when the editing mechanism is selective. This is an outcome of the full workflow distinct from the question of whether an edit disrupted a correctly reconstructed detail.

The preservation objectives also express selected properties of the source. ArcFace measures similarity using features trained for face recognition. Its score gives useful guidance when protected identity is the concern in a portrait. Preserving an image can also involve clothes, pose, illumination, or surroundings. The identity term does not explicitly define continuity for those details, and the paper supplies no corresponding recognition term for cars, animals, or churches. The latent penalty offers a general restraint on movement, with the identity ablation showing how that restraint can differ from preserving a specific visual property.

The global method depends on the choice of neutral description. Two plausible neutral categories can emphasize different parts of the same target phrase. Forming several sentences for each side reduces sensitivity to a single formulation, while the two descriptions still define what the resulting contrast asks the editor to change. The paper gives a concrete pairing for cars. It does not evaluate how robust directions are to alternative neutral classes over the full range of requests.

Finally, relevance is measured for individual channels under isolated perturbations. A global edit can move several of them together. The measured response of a single channel, averaged across codes, need not predict its exact effect when paired with other channels on a particular starting image. Thresholding provides a way to manage these interactions by limiting which channels participate. The grey-hair and facial-feature examples show that correlated changes can still enter the edit. Their presence under broader settings is part of the observed behavior and helps explain why the paper exposes the threshold to the user.

What came after

Subsequent citing work takes up several questions that meet in StyleCLIP, including how to put language in control of image production, how to make an existing image accessible to a generator, and what can be done with a representation shared across different kinds of input. The citations establish links between these research questions. They leave the transfer of particular mechanisms, such as StyleCLIP’s residual branches or channel relevance procedure, unspecified.

Hierarchical Text-Conditional Image Generation with CLIP Latents places CLIP latents within a hierarchical approach to generating images conditioned on text. This puts the shared representation at a different point in image production. StyleCLIP starts from the generator’s representation of a source picture and uses CLIP to decide how to change what will be rendered. The hierarchical generation work concerns the role of a CLIP representation in producing an image in response to text. The common element is the use of a learned relationship between language and imagery to influence the rendered result.

GLIDE addresses photorealistic synthesis and editing under text guidance using diffusion. Its connection to StyleCLIP is particularly direct at the interface. In both, a description is available as a means of requesting visual content, including a change to an existing image. GLIDE brings that goal to a different generator family. The relationship illustrates how the same user-facing task can raise different technical questions once the image-producing process changes.

HyperStyle approaches real-image editing through StyleGAN inversion with hypernetworks, networks whose outputs specify parameters for another network. Its subject connects to the stage that precedes the requested change in StyleCLIP’s real-image workflow. Once a photograph is represented in the generator, editing operates on that representation. Work on inversion therefore addresses the quality of the starting point from which such changes are made. For a user asking to change a narrow part of an image, the way the source enters the generator is consequential even before the choice of editing direction.

ULIP learns a shared representation spanning language, images, and point clouds for understanding three-dimensional content. A point cloud represents geometry as a collection of points in space. The research connection lies in arranging different kinds of input so that relationships between them can be represented in shared coordinates. StyleCLIP uses a relationship between text and image embeddings to derive an editing operation. ULIP includes another kind of visual information and addresses the understanding of three-dimensional content. The citation connects the use of shared representations across these different purposes.

The survey Personalized Generation cites StyleCLIP in a broader area concerned with adapting generated imagery to particular requirements. StyleCLIP’s portrait examples touch two distinct aspects of that area. The source can supply a person whose appearance should survive a change, and the instruction can supply a name whose visual associations should influence the result. Those cases give concrete form to a question that persists in personalized generation. A system needs a way to use information about a particular person while deciding, from the request and its settings, which aspects of the resulting image should follow that information.

Cite

Cite as Or Patashnik, Zongze Wu, Eli Shechtman, Daniel Cohen‐Or and Dani Lischinski. 2021. StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery. IEEE/CVF International Conference on Computer Vision (ICCV).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1109/iccv48922.2021.00209 · arXiv 2103.17249

@inproceedings{patashnik2021styleclip,
  title = {{StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery}},
  author = {Or Patashnik, Zongze Wu, Eli Shechtman, Daniel Cohen‐Or and Dani Lischinski},
  booktitle = {IEEE/CVF International Conference on Computer Vision (ICCV)},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00209},
  eprint = {2103.17249},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1109/iccv48922.2021.00209}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/patashnik-2021-styleclip-text-driven-manipulation-stylegan/

References

55 references, from the paper's own bibliography.

  1. Rameen Abdal, Peihao Zhu, Niloy Mitra, and Peter Wonka. StyleFlow: attribute-conditioned exploration of StyleGAN-generated images using conditional continuous normalizing flows. arXiv preprint arXiv:2008.02401, 2020. OpenAlex ↗ · Scholar ↗
  2. Yuval Alaluf, Or Patashnik, and Daniel Cohen-Or. Only a matter of style: Age transformation using a style-based regression model. arXiv preprint arXiv:2102.02754, 2021. OpenAlex ↗ · Scholar ↗
  3. T. Brown, B. Mann, Nick Ryder, Melanie Subbiah, J. Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, G. Krüger, T. Henighan, R. Child, Aditya Ramesh, D. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, E. Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, J. Clark, Christopher Berner, Sam McCandlish, A. Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. arXiv, abs/2005.14165, 2020. our card
  4. Yen-Chun Chen, Linjie Li, Licheng Yu, A. E. Kholy, Faisal Ahmed, Zhe Gan, Y. Cheng, and Jing jing Liu. Uniter: Universal image-text representation learning. In ECCV, 2020. our card
  5. Yunjey Choi, Youngjung Uh, Jaejun Yoo, and Jung-Woo Ha. StarGAN v2: Diverse image synthesis for multiple domains. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8188–8197, 2020. OpenAlex ↗ · Scholar ↗
  6. Edo Collins, Raja Bala, Bob Price, and Sabine Süsstrunk. Editing in style: Uncovering the local semantics of GANs. arXiv preprint arXiv:2004.14367, 2020. OpenAlex ↗ · Scholar ↗
  7. Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In Proc. CVPR, pages 4690–4699, 2019. OpenAlex ↗ · Scholar ↗
  8. Karan Desai and J. Johnson. VirTex: Learning visual representations from textual annotations. ArXiv, abs/2006.06666, 2020. OpenAlex ↗ · Scholar ↗
  9. J. Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019. our card
  10. H. Dong, Simiao Yu, Chao Wu, and Y. Guo. Semantic image synthesis via adversarial learning. Proc. ICCV, pages 5707–5715, 2017. OpenAlex ↗ · Scholar ↗
  11. Gabriel Goh, Nick Cammarata, Chelsea Voss, Shan Carter, Michael Petrov, Ludwig Schubert, Alec Radford, and Chris Olah. Multimodal neurons in artificial neural networks. Distill, https://distill.pub/2021/multimodal-neurons/, 2021. OpenAlex ↗ · Scholar ↗
  12. Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pages 2672–2680, 2014. OpenAlex ↗ · Scholar ↗
  13. Erik Härkönen, Aaron Hertzmann, Jaakko Lehtinen, and Sylvain Paris. GANSpace: Discovering interpretable GAN controls. arXiv preprint arXiv:2004.02546, 2020. OpenAlex ↗ · Scholar ↗
  14. Justin Johnson, Alexandre Alahi, and Li Fei-Fei. Perceptual losses for real-time style transfer and super-resolution. In Proc. ECCV, 2016. OpenAlex ↗ · Scholar ↗
  15. Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of GANs for improved quality, stability, and variation. arXiv:1710.10196, 2017. OpenAlex ↗ · Scholar ↗
  16. Tero Karras, Miika Aittala, Janne Hellsten, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Training generative adversarial networks with limited data. In Proc. NeurIPS, 2020. OpenAlex ↗ · Scholar ↗
  17. Tero Karras, Miika Aittala, Janne Hellsten, Samuli Laine, Jaakko Lehtinen, and Timo Aila. Training generative adversarial networks with limited data. arXiv preprint arXiv:2006.06676, 2020. OpenAlex ↗ · Scholar ↗
  18. Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In Proc. CVPR, pages 4401–4410, 2019. OpenAlex ↗ · Scholar ↗
  19. Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of StyleGAN. In Proc. CVPR, pages 8110–8119, 2020. OpenAlex ↗ · Scholar ↗
  20. J. Y. Koh, Jason Baldridge, H. Lee, and Yinfei Yang. Text-to-image generation grounded by fine-grained user attention. arXiv, abs/2011.03775, 2020. OpenAlex ↗ · Scholar ↗
  21. Kathleen M Lewis, Srivatsan Varadharajan, and Ira Kemelmacher-Shlizerman. VOGUE: Try-on by StyleGAN interpolation optimization. arXiv:2101.02285, 2021. OpenAlex ↗ · Scholar ↗
  22. Bowen Li, Xiaojuan Qi, Thomas Lukasiewicz, and Philip HS Torr. ManiGAN: Text-guided image manipulation. In Proc. CVPR, pages 7880–7889, 2020. OpenAlex ↗ · Scholar ↗
  23. Gen Li, N. Duan, Yuejian Fang, Daxin Jiang, and M. Zhou. Unicoder-VL: A universal encoder for vision and language by cross-modal pre-training. In Proc. AAAI, 2020. OpenAlex ↗ · Scholar ↗
  24. Liunian Harold Li, Mark Yatskar, Da Yin, C. Hsieh, and Kai-Wei Chang. Visualbert: A simple and performant baseline for vision and language. ArXiv, abs/1908.03557, 2019. our card
  25. Wenbo Li, Pengchuan Zhang, Lei Zhang, Qiuyuan Huang, X. He, Siwei Lyu, and Jianfeng Gao. Object-driven text-to-image synthesis via adversarial training. Proc. CVPR, pages 12166–12174, 2019. OpenAlex ↗ · Scholar ↗
  26. Xiujun Li, Xi Yin, C. Li, X. Hu, Pengchuan Zhang, Lei Zhang, Longguang Wang, H. Hu, Li Dong, Furu Wei, Yejin Choi, and Jianfeng Gao. Oscar: Object-semantics aligned pre-training for vision-language tasks. In ECCV, 2020. our card
  27. Yahui Liu, Marco De Nadai, Deng Cai, Huayang Li, Xavier Alameda-Pineda, N. Sebe, and Bruno Lepri. Describe what to change: A text-guided unsupervised image-to-image translation approach. Proceedings of the 28th ACM International Conference on Multimedia, 2020. OpenAlex ↗ · Scholar ↗
  28. Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild, 2015. OpenAlex ↗ · Scholar ↗
  29. Jiasen Lu, Dhruv Batra, D. Parikh, and Stefan Lee. Vilbert: Pretraining task-agnostic visiolinguistic representations for vision-and-language tasks. In NeurIPS, 2019. our card
  30. Mehdi Mirza and Simon Osindero. Conditional generative adversarial nets. arXiv:1411.1784, 2014. OpenAlex ↗ · Scholar ↗
  31. Seonghyeon Nam, Yunji Kim, and S. Kim. Text-adaptive generative adversarial networks: Manipulating images with natural language. In NeurIPS, 2018. OpenAlex ↗ · Scholar ↗
  32. Yotam Nitzan, Amit Bermano, Yangyan Li, and Daniel Cohen-Or. Face identity disentanglement via latent space mapping. ACM Trans. Graph., 39(6), Nov. 2020. OpenAlex ↗ · Scholar ↗
  33. Victor Perez. Generating images from prompts using CLIP and StyleGAN. https://towardsdatascience.com/generating-images-from-prompts-using-clip-and-stylegan-1f9ed495ddda, 2021. OpenAlex ↗ · Scholar ↗
  34. Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. Image, 2:T2, 2021. our card
  35. Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, and Scott Gray. DALL·E: Creating Images from Text. https://openai.com/blog/dall-e/, 2021. OpenAlex ↗ · Scholar ↗
  36. Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. arXiv:2102.12092, 2021. our card
  37. S. Reed, Zeynep Akata, Xinchen Yan, L. Logeswaran, B. Schiele, and H. Lee. Generative adversarial text to image synthesis. In ICML, 2016. OpenAlex ↗ · Scholar ↗
  38. Elad Richardson, Yuval Alaluf, Or Patashnik, Yotam Nitzan, Yaniv Azar, Stav Shapiro, and Daniel Cohen-Or. Encoding in style: a StyleGAN encoder for image-to-image translation. arXiv:2008.00951, 2020. OpenAlex ↗ · Scholar ↗
  39. Mert Bulent Sariyildiz, Julien Perez, and Diane Larlus. Learning visual representations with caption annotations. arXiv preprint arXiv:2008.01392, 2020. OpenAlex ↗ · Scholar ↗
  40. Yujun Shen, Jinjin Gu, Xiaoou Tang, and Bolei Zhou. Interpreting the latent space of GANs for semantic face editing. In Proc. CVPR, pages 9243–9252, 2020. OpenAlex ↗ · Scholar ↗
  41. Yujun Shen, Ceyuan Yang, Xiaoou Tang, and Bolei Zhou. InterFaceGAN: interpreting the disentangled face representation learned by GANs. arXiv preprint arXiv:2005.09635, 2020. OpenAlex ↗ · Scholar ↗
  42. Yujun Shen and Bolei Zhou. Closed-form factorization of latent semantics in GANs. arXiv preprint arXiv:2007.06600, 2020. OpenAlex ↗ · Scholar ↗
  43. Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. VL-BERT: Pre-training of generic visual-linguistic representations. In Proc. ICLR, 2020. our card
  44. Hao Hao Tan and Mohit Bansal. LXMERT: Learning cross-modality encoder representations from transformers. In EMNLP/IJCNLP, 2019. our card
  45. Ayush Tewari, Mohamed Elgharib, Gaurav Bharaj, Florian Bernard, Hans-Peter Seidel, Patrick Pérez, Michael Zollhöfer, and Christian Theobalt. StyleRig: Rigging StyleGAN for 3d control over portrait images. arXiv preprint arXiv:2004.00121, 2020. OpenAlex ↗ · Scholar ↗
  46. Omer Tov, Yuval Alaluf, Yotam Nitzan, Or Patashnik, and Daniel Cohen-Or. Designing an encoder for stylegan image manipulation. arXiv preprint arXiv:2102.02766, 2021. OpenAlex ↗ · Scholar ↗
  47. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, 2017. our card
  48. Andrey Voynov and Artem Babenko. Unsupervised discovery of interpretable directions in the GAN latent space. arXiv preprint arXiv:2002.03754, 2020. OpenAlex ↗ · Scholar ↗
  49. Binxu Wang and Carlos R Ponce. A geometric analysis of deep generative image models and its applications. In Proc. ICLR, 2021. OpenAlex ↗ · Scholar ↗
  50. Zongze Wu, Dani Lischinski, and Eli Shechtman. StyleSpace analysis: Disentangled controls for StyleGAN image generation. arXiv:2011.12799, 2020. OpenAlex ↗ · Scholar ↗
  51. Weihao Xia, Yujiu Yang, Jing-Hao Xue, and Baoyuan Wu. TediGAN: Text-guided diverse face image generation and manipulation. arXiv preprint arXiv: 2012.03308, 2020. OpenAlex ↗ · Scholar ↗
  52. T. Xu, Pengchuan Zhang, Qiuyuan Huang, Han Zhang, Zhe Gan, Xiaolei Huang, and X. He. AttnGAN: Fine-grained text to image generation with attentional generative adversarial networks. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1316–1324, 2018. OpenAlex ↗ · Scholar ↗
  53. Fisher Yu, Ari Seff, Yinda Zhang, Shuran Song, Thomas Funkhouser, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015. OpenAlex ↗ · Scholar ↗
  54. Han Zhang, Tao Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N Metaxas. StackGAN: Text to photo-realistic image synthesis with stacked generative adversarial networks. In Proc. ICCV, pages 5907–5915, 2017. OpenAlex ↗ · Scholar ↗
  55. Han Zhang, T. Xu, Hongsheng Li, Shaoting Zhang, Xiaogang Wang, Xiaolei Huang, and Dimitris N. Metaxas. StackGAN++: Realistic image synthesis with stacked generative adversarial networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41:1947–1962, 2019. OpenAlex ↗ · Scholar ↗