Elamur Research

SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equations

Paper · 2021 · Chenlin Meng, Yutong He, Yang Song et al.

Summary

A person who wants to change the hairstyle in a photograph can paste in hair from another picture. The pasted patch shows what they have in mind, even if its edge is conspicuous and its texture looks out of place. A sketch of a bedroom sets a similar problem on the scale of a whole image. It can show where the main objects belong while leaving their surfaces and finer shapes open to invention. SDEdit is designed for both situations. It takes an image that expresses the request in pixels and produces a plausible photographic interpretation.

The procedure begins by making that image noisier. After adding Gaussian noise to the guide, it passes the noisy guide to a pretrained image generator while the generator’s standard denoising process is already underway. The generator follows a reverse stochastic differential equation, which describes how the image changes under a learned direction of reconstruction and a continuing element of randomness. Starting with a mildly corrupted guide tends to preserve its arrangement and appearance, including features that may look artificial. Stronger corruption lets the generator remake more of the image, at the cost of weakening the original request. For local edits, a mask can protect chosen pixels while the generator works on the rest.

The authors use this procedure for synthesis from painted strokes, edits painted over photographs, and composites built from copied patches. They use existing public checkpoints and train no additional score networks. The basic editing operation also dispenses with paired examples of guides and finished images, and with a separate search for a representation that reconstructs each guide inside a generative adversarial network, or GAN. Each guide enters the denoising process directly. Its influence depends on how much of it remains at the selected starting time.

In the study with human-drawn bedroom paintings, the strongest pairwise preference for SDEdit reaches 98.09% for realism and 91.72% for overall satisfaction against the GAN baselines. In face compositing, the highest reported preference for overall satisfaction is 83.73%, while the e4e baseline has a slight advantage on realism in its comparison. These figures count choices between outputs under specific judging instructions. They capture the distinction that motivates the paper. A convincing photograph and a convincing realization of a particular request are different achievements, and the degree of initial corruption gives the editor a way to balance them.

Deep dive: SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equations

SDEdit turns sketches and rough image edits into realistic pictures by adding noise, then uses diffusion to control how closely the result follows the guide. · about 44 minutes to read

The problem and its context

A visual instruction can be incomplete and still be specific

An image guide can answer some questions about the desired result with considerable precision. A copied patch shows the shape of a pair of glasses more directly than a general request for glasses. A colored mark can put an intended change at a chosen location. Strokes distributed across an empty canvas can fix the large regions of a composition while leaving the objects inside those regions only loosely specified. The editing system has to use the answers the guide supplies and make plausible choices about the rest.

A guide can also place intended information and incidental marks in the same pixels. The edge of a red stroke may matter because it locates an object, while its abruptness may have more to do with the way it was painted. A patch can contain exactly the appearance the user wants to copy, along with a border that betrays the paste. In a photograph with a small addition, the untouched surroundings already contain useful detail. In a stroke painting of an entire scene, almost every part of the picture may need reconstruction. An interface that accepts ordinary pixel manipulations gives users access to all these kinds of instructions without requiring them to describe the desired transformation in technical terms.

The paper calls the two governing criteria realism and faithfulness. Realism asks whether the finished picture looks like an image from the intended domain. Faithfulness asks whether it resembles the guide in the ways the task calls for. The guide itself can be extremely close to what the user drew and visibly artificial. A random photograph can be entirely plausible and depict a different scene. The two criteria come into tension when a convincing output requires changing pixels that also convey the intent. That tension is the reason the paper treats the amount of change as an editing decision.

The authors group the guides by the amount and kind of detail they contain. Broad colored marks can guide the construction of a whole image. Marks applied to an existing photograph supply a local change within already detailed surroundings. Photographic patches give an even more detailed description of selected content. A single interpretation of pixel similarity would miss some of what distinguishes these cases. Changing broad flat colors into textured surfaces may be the point of a synthesis request. Changing a detailed part of an existing face beyond the patch may undo the point of a selective edit.

Where earlier methods put the work

The authors describe conditional GANs as a major route to image generation with user input. A GAN uses a generator trained in competition with a discriminator, and the conditional version learns to produce an image in response to a specified input. The paper discusses this approach in connection with image translation, filling missing regions, colorization, and drawing-based editing. The trained system can return an image directly from the kind of input it was prepared to handle.

Much of the effort in that approach sits before the editing session. A system needs examples that represent its intended input and output domains, followed by training for the mapping between them. The paper discusses both paired and unpaired image translation work. The issue common to the approaches it considers is that a new application can bring a new collection and training problem. A system that learns from one kind of guide may require different preparation for a guide made by an unfamiliar sequence of pixel edits. The authors want the user to be able to supply such a guide during use and draw on visual knowledge that was acquired independently of the editing task.

GAN inversion puts a different kind of work before the final image. A pretrained generator accepts a latent code, a representation inside the system from which it can render an image. Inversion starts with a visible image and searches for a code that gives a close reconstruction. Once a suitable code has been found, the system can use it to produce or modify an image. The paper discusses prior approaches that search different internal representations, use an encoder to obtain a code, or adjust generator weights for a particular image. Projecting images into an existing StyleGAN representation is the subject of one of the works it cites. Image2StyleGAN

Inversion runs into a particular difficulty when the supplied image is a stylized instruction. Suppose a color field in a bedroom sketch is meant to stand for a bed. An inversion objective still needs to express how a generated bedroom should match that color field. A generator trained on plausible images may have trouble reproducing the simplified shape closely, while an objective emphasizing resemblance may give weight to features the user expected the editor to replace. The authors identify the design of losses and optimization procedures, and the possibility of a poor reconstruction, as practical limitations. Encoders can reduce the work required at inference, but the connection between a rough guide and the generator's internal representation still matters.

Why reversing noise offered another route

The alternative in SDEdit grows out of work in which image generation is defined by a sequence of increasingly noisy distributions. A forward process takes clean data and corrupts it. A reverse process moves noisy states toward the distribution of clean images. The paper connects this approach to early diffusion research and to the development of score estimation, which learns how the density of noisy images changes as their pixel values change. Deep Unsupervised Learning using Nonequilibrium Thermodynamics · Generative Modeling by Estimating Gradients of the Data Distribution

A stochastic differential equation, abbreviated SDE, expresses a process that evolves continuously and includes random increments. The score-based SDE framework describes image generation using such a process and its time reversal. In ordinary unconditional synthesis, the reverse process begins at the noisy end of the schedule, where a Gaussian distribution provides the initial state. The result can be a plausible image with no particular user's composition to follow. SDEdit applies the same general machinery from an intermediate stage and lets the user guide determine the center of the initial corruption. Score-Based Generative Modeling through Stochastic Differential Equations

The intermediate start matters because the paper deals with guides for which a measurement function is unavailable. Such a function would specify how an unknown clean image turns into the observation supplied to the system. If the transformation were known, a method for solving an inverse problem could use that relation to judge whether a candidate image agrees with the observation. A drawing made freely by a user has no specified transformation of that kind. Even a guide made by altering a photograph can combine operations whose intended effect is open to interpretation. The added Gaussian noise is a process the editor controls. It is applied to the guide as received.

The authors discuss a concurrent diffusion approach that conditions synthesis through a known function of the underlying image. That setting can use information about how the condition relates to the desired image. SDEdit assumes a different kind of information is available. It has pixels that carry an informal instruction and, for some applications, a region the user has marked as editable. The reverse process is influenced through those pixels at its starting point. When a mask is present, the protected content also enters during the subsequent denoising steps.

The method, step by step

From the painted image to the starting state

The input to SDEdit is a full-resolution image expressed in red, green, and blue pixel values. A painting can serve as the entire image. For an edit, the user can alter the colors in a photograph or place new material over part of it. An optional mask describes where the changes should be confined. This gives the system two kinds of information. The visible guide suggests what the result should look like, and the mask identifies places where the system has permission to substitute generated content.

The next decision is how much noise to add. The generator has already been trained to deal with approximately clean images at one end of its schedule and heavily corrupted ones at the other. SDEdit chooses a point along that schedule and perturbs the guide to match its noise level. The result is an image-shaped array that still carries information from the guide, overlaid with random variation at that scale. The generator receives the array and the time associated with it.

At each reverse step, the generator estimates how to move the current noisy image towards more plausible states at that stage of the process. The solver changes the pixels according to that estimate and includes a random increment. It then calls the generator again at an earlier time. The steps continue toward the clean end of the schedule. If the user supplied a mask, the solver reinserts the protected content at the appropriate noise level along the way. The completed image is the final state of this computation.

SDEdit from pixel guide to finished image

The steps in order.

SDEdit from pixel guide to finished imageStep 1: Receive the guide and any edit mask1. Receive the guide and any edit maskStep 2: Select an intermediate diffusion time2. Select an intermediate diffusion timeStep 3: Add Gaussian noise at that time3. Add Gaussian noise at that timeStep 4: Estimate the score of the noisy image4. Estimate the score of the noisy imageStep 5: Step backward toward lower noise5. Step backward toward lower noiseStep 6: Supply protected pixels at the current noise level6. Supply protected pixels at the current noise levelStep 7: Return the image at the clean endpoint7. Return the image at the clean endpoint

The guide should influence the reverse process without forcing it to reproduce every detail. Consider an image almost entirely described by broad colored regions. Keeping those regions visible at initialization can help the generator place photographic detail in corresponding parts of the result. If the noise overwhelms one of the regions, its intended meaning can be lost. The method does not have a separate representation that declares which marks carry meaning. The initial state, the learned image distribution, and any hard spatial constraint supply the information that guides reconstruction.

The forward distribution and the two schedules

The paper writes a clean image as a vector, with a component for each pixel value in each channel. The forward process defines how the noisy image at a chosen time is distributed when that clean image is given.

x(t) = α(t)x(0) + σ(t)z,  z ∼ 𝒩(0, I)

Here x(0) is the clean image, x(t) is the corrupted image, and t is time in the interval [0, 1]. The scalar α(t) sets the strength of the original image and σ(t) gives the standard deviation of the added noise. The vector z is a draw, indicated by ∼, from the Gaussian distribution 𝒩 with zero mean and identity covariance I. The zero in that distribution denotes the zero vector. The same unit covariance is used across the image coordinates before multiplication by σ(t).

This equation describes the distribution at a selected time. For SDEdit's initialization, it makes it possible to draw a corrupted guide at that time directly. It is also useful when thinking about training, since a clean example can be perturbed to create a noisy example at a specified level. The density of the resulting random image at time t is written pₜ. At the clean end, that density is the data distribution, also called p_data. At the heavily corrupted end, the paper uses Gaussian distributions as practical starting points for unconditional generation.

In the variance-exploding formulation, VE-SDE, the clean image keeps the same coefficient throughout.

α(t) = 1

The symbol α(t) again denotes the multiplier on the clean image at time t. The value 1 leaves its coefficient unchanged. The variance-exploding name refers to the increasing noise variance. With a large final value of σ(t), the Gaussian part dominates the image contribution to the noisy state. Its covariance is σ²(t)I, so a large change in σ can make a substantial change to what remains visible of the image.

The appendix specifies the VE scale by using a geometric progression in continuous time for positive t, with a clean endpoint defined separately.

σ(t) = { 0                              if t = 0
       { σ_min(σ_max/σ_min)ᵗ           if t > 0

The function σ gives the noise standard deviation. The parameters σ_min and σ_max define the scale for positive times, and the exponent t sets the position along the geometric schedule. The exact clean endpoint is assigned the value 0. In the stated VE settings, σ_min is 0.01. The listed value of σ_max is 380 for LSUN churches and 378 for LSUN bedrooms. The face settings list 348 for FFHQ or CelebA-HQ at 256 × 256 and 1348 for FFHQ at 1024 × 1024. These are schedule specifications. The experiments select the family and the checkpoint according to the application.

The variance-preserving formulation, VP-SDE, reduces the contribution of the clean image as it increases the contribution of noise.

α²(t) + σ²(t) = 1

Here α²(t) and σ²(t) are the squared signal and noise coefficients at the same time t. Their sum is kept at 1. Near the high-noise end, the signal coefficient becomes small and the distribution approaches a Gaussian with identity covariance. In this family, using the forward corruption rule on a guide entails scaling the guide itself as well as adding noise. The amount of remaining guide information therefore depends on both coefficients.

The paper gives the following continuous-time forward dynamics for VP.

dx(t) = −½β(t)x(t)dt + √β(t) dw(t)

The expression dx(t) is the infinitesimal change in image state. The positive function β(t) controls the contraction of the image through the first term and the strength of the random increment through the second. The symbol dt is an increment of time, and dw(t) is an increment of the forward Wiener process w(t), the random process driving the equation. The factor ½ belongs to the image-contraction term.

β(t) = β_min + t(β_max − β_min)

The quantities β_min and β_max are the endpoints of the linear schedule for β, and t is the forward time. The appendix specifies β_min of 0.1 and β_max of 20 for the cited VP settings. It also describes a checkpoint that learns to rescale the variance using the same schedule endpoints. A chosen starting time is meaningful in relation to its noise schedule. The same numerical time in two checkpoints need not yield the same amount of visible corruption.

The information learned before editing

The score is the gradient of the log density of noisy images. It gives a direction in pixel space, with a component for each image coordinate. Around a particular noisy state, it describes which changes lead to increasing log density under the distribution for that time. The gradient is useful during reversal because the probable states at different noise levels need not have the same local structure. A direction appropriate early in reconstruction can differ from one appropriate for a nearly clean image.

sθ(x, t) ≈ ∇ₓ log pₜ(x)

The learned function sθ takes an image state x and a time t. The symbol θ denotes its fitted parameters. On the right, pₜ(x) is the density at x for the noise level indexed by t, log is the logarithm, and ∇ₓ takes the gradient with respect to the image coordinates. The approximation symbol marks the use of a learned estimate of that gradient.

Training uses clean image examples and noise that the training procedure draws for itself. A clean image and a Gaussian draw produce a noisy input, and the network is given the associated time. The noise draw participates in defining the learning target. Examples at different noise levels train one function that can be called throughout the reverse process. The paper describes the per-time objective as follows.

Lₜ = Eₓ₍₀₎∼p_data, z∼𝒩(0,I) [‖σₜ sθ(x(t), t) − z‖₂²]

The loss Lₜ is evaluated for time t. The expectation E averages over a clean example x(0) drawn from the image distribution p_data and a noise vector z drawn from 𝒩 with zero mean and identity covariance I. The symbol σₜ is the noise standard deviation at that time. The network sθ, with weights θ, receives the resulting image x(t) and t. The squared Euclidean norm ‖·‖₂² adds up the squared component errors inside the brackets. The training objective combines the per-time losses with weights, with the paper referring to prior work for choices of weighting.

There is a sign convention to resolve when reading this expression alongside the forward equation. With the forward equation written using a positive multiple of z, the gradient of the conditional Gaussian log density points in the direction opposite to the added noise. The objective displays a subtraction of z from the scaled network output while the reverse equation describes the network output as the score. The direction represented by the network therefore needs to be interpreted consistently with its training and sampling conventions. The experiments take those functions from public pretrained checkpoints. Their results concern reuse of the trained image prior, with no new denoising training undertaken for the study. The earlier diffusion work cited in the training discussion also includes Denoising Diffusion Implicit Models.

The data needed to learn this prior are images in the relevant visual domain. The corruption procedure supplies noisy versions during training. A bedroom generator can learn its noisy image distributions from bedrooms without any accompanying bedroom sketches. The sketches acquire their role during editing, when they are used to set the initial state. The authors use available public implementations for the baseline projections as well, and state that their own code is to be released upon publication.

Integrating the reverse equation

For VE, the paper gives a reverse SDE with a drift term from the score and a stochastic term from a backward Wiener process.

dx(t) = −[dσ²(t)/dt] ∇ₓ log pₜ(x) dt + √[dσ²(t)/dt] d w̄

The state x(t) changes by the differential dx(t). The derivative dσ²(t)/dt gives the rate of change of the forward noise variance. The score ∇ₓ log pₜ(x) is the image gradient of the logarithm of the noisy density. The equation is traversed with time decreasing, so dt in the drift term is a backward time increment. The symbol w̄ denotes the Wiener process for this time direction, and d w̄ is its stochastic increment. The square root scales the magnitude of the random part.

The ordinary generative interpretation begins from the high-noise marginal distribution. With the score of the relevant noisy distributions and that starting distribution, time reversal gives the clean data distribution at the other end. SDEdit supplies a different initial state whose distribution is centered on a chosen guide. This is the intervention that gives the user control. The clean distribution obtained by reversal in the unconditional case supplies the motivation for the prior, while the edited result also depends on how well the guide-based initial state fits the reverse dynamics.

The numerical solver uses finite steps. Euler–Maruyama, the method the authors name, combines a local approximation to the drift with a Gaussian increment scaled to the step. For a move from a noisier VE state at t + Δt to a less noisy state at t, the usable variance difference in the random term is the later variance minus the earlier variance. Written with an explicit evaluation at the current state, the backward step implied by the reverse SDE is:

x(t) ≈ x(t + Δt) + [σ²(t + Δt) − σ²(t)] sθ(x(t + Δt), t + Δt) + √[σ²(t + Δt) − σ²(t)] z

Here t is the destination time and Δt is the positive separation between the destination and the current time t + Δt. The two x terms denote the destination and current image states. The function σ² gives the noise variance, sθ is the score estimate with weights θ at the current state and time, and z is a fresh standard Gaussian vector. The bracketed difference scales the score step. Its square root scales the random step. The paper's displayed VE recurrence reverses the variance subtraction while describing a move from t + Δt to t, and gives the score at the destination. Reading the stated time ordering literally would put a negative difference under the square root for an increasing variance schedule. The equation above spells out the interpretation from the reverse SDE.

For VP, the appendix gives a different finite-step rule that includes a rescaling of the current image.

xₙ₋₁ = [xₙ + β(tₙ)Δt sθ(xₙ, tₙ)] / √[1 − β(tₙ)Δt] + √[β(tₙ)Δt] zₙ

The index n labels the current step, tₙ is its time, xₙ is its image state, and xₙ₋₁ is the state at the preceding index. The quantity Δt is the step size. The schedule β is evaluated at tₙ. The function sθ is the pretrained score estimate evaluated at xₙ and tₙ, and zₙ is a standard Gaussian draw for that step. The denominator with 1 in it supplies the VP rescaling, and the last term provides the random increment. In the appendix's unconditional sampler, the highest indexed state xₙ at n = N is drawn from a standard Gaussian, with N identifying the starting index. In the editing use, the corresponding starting state comes from the forward corruption of the guide at the selected time.

Starting from a particular guide

For the VE case used in the paper's main explanation, the rule for sampling the initial state has a simple form.

x⁽ᵍ⁾(t₀) ∼ 𝒩(x⁽ᵍ⁾, σ²(t₀)I)

The superscript g marks the guide. Its original pixel vector is x⁽ᵍ⁾, and x⁽ᵍ⁾(t₀) is its noisy version at the starting time t₀. The distribution 𝒩 has the guide as its mean and σ²(t₀)I as its covariance. The identity matrix I puts the same variance on each coordinate. The standard deviation is σ(t₀), and σ²(t₀) is the variance shown in the Gaussian specification. The reverse solver then takes this sample down the schedule.

x_out = SDEdit(x⁽ᵍ⁾; t₀, θ)

The image x_out is the output at the clean endpoint. The expression on the right names the procedure with guide x⁽ᵍ⁾, starting time t₀, and fixed score parameters θ. It includes sampling the corrupted input and running the reverse process. Results from repeated calls on the same guide can differ because the perturbation and the reverse increments are random. A room layout can survive across those calls even as the detailed surfaces and shapes vary.

The starting time has an effect on both the information in the initial image and the length of the reverse run. A small value makes the guide easy to recognize at the start and leaves the solver a short stretch in which to change it. A larger value obscures more guide information and gives the prior more room to shape the eventual output. The paper illustrates t₀ = 0 with the guide itself and uses t₀ = 1 to represent random generation at the far end. In the VE interpretation, a very high terminal noise scale makes the guide's contribution small relative to the Gaussian perturbation.

The authors find [0.3, 0.6] useful for reasonable guides in their settings. Their proposed way of finding a setting in an interactive session is to show the user a candidate and ask for a result closer to the guide or closer to a plausible photograph. The direction of that request narrows the search for t₀, which the paper describes as a binary search. For a batch of guides, the authors suggest carrying out the search on a randomly selected example and then using the chosen value throughout the task. A task-wide setting reduces the selection work. The authors also allow that the most suitable setting may vary across individual guides.

Preserving part of the image during the reverse process

The mask in the paper has a binary entry for each position in an image of height H, width W, and C channels. An entry of 1 means the position is editable and an entry of 0 means it is protected. In synthesis from a complete painting, all entries can be editable. For a stroke on a photograph, the stroke region can be made editable. For a composite, the user can designate the region containing the pasted content. The whole state remains available during denoising, so the editable portion can be generated in the context of the surrounding image.

At each stage, the editable portion takes its current values from the reverse step. The protected portion instead takes its values from a noisy version of the input. The VE expression in the appendix for the protected portion is:

(𝟙 − Ω) ⊙ x(t) = (𝟙 − Ω) ⊙ [x_ref + σ(t)z]

The mask is Ω, and 𝟙 is an array of ones of the same shape. Their difference selects protected coordinates. The operator ⊙ multiplies corresponding entries of arrays. The state x(t) is the current noisy image, and x_ref is the input image that supplies the protected values. The function σ(t) specifies the standard deviation for time t, and z is standard Gaussian noise. The equation sets protected positions to their reference values with a perturbation at the current noise level. The other positions are selected with Ω from the reverse update.

Both sides of an edit boundary thus participate in the evolving noisy image. For example, while an added glasses patch is being reconstructed, the surrounding face is present at the noise level appropriate to that step. At the clean endpoint the protected part takes its input values, since the schedule assigns zero noise there. The prose in the appendix describes the noise as vanishing near the endpoint. Its displayed VE schedule uses a positive lower scale on the positive-time branch and sets the exact endpoint to zero separately. The exact preservation comes from enforcing the protected values at that endpoint. The appendix also describes a corresponding masked VP procedure.

The paper allows a noise-and-reconstruction pass to be repeated. Its count is K, with K = 1 giving the basic application. An extra pass makes further reconstruction possible, at the cost of more reverse steps. This option is separate from the decision to protect pixels. A mask specifies which positions the generator can change. The choice of starting time and the number of passes applies to the reconstruction carried out within the permitted region.

Combining a pixel guide with a class

In an additional experiment, the authors also supply a desired image class. They use a classifier whose prediction depends on the noisy image and its time. The gradient of the log probability of the selected class gives a direction in image space that favors recognition of that class. The VE extension inserts this additional direction into the drift of the reverse SDE.

dx(t) = −[dσ²(t)/dt][∇ₓ log pₜ(x) + ∇ₓ log pₜ(y | x)] dt + √[dσ²(t)/dt] d w̄

The image state is x(t), with differential dx(t), and t is the backward-traversed time in the reverse equation. The derivative dσ²(t)/dt is the forward variance rate. The first gradient is with respect to the image x of the log noisy density pₜ(x). In the second, y denotes the requested class, and pₜ(y | x) is its probability from the time-dependent classifier for image x. The symbol dt denotes the time increment, and d w̄ is the increment of the backward Wiener process. The covariance schedule still controls the scale of the random term. The guide enters as it does in the basic procedure, through the initial noisy image.

The VP version adds the class term directly to the discrete update.

xₙ₋₁ = [xₙ + β(tₙ)Δt sθ(xₙ, tₙ)] / √[1 − β(tₙ)Δt] + β(tₙ)Δt ∇ₓ log pₜ(y | xₙ) + √[β(tₙ)Δt] zₙ

The states xₙ and xₙ₋₁ are the input and output of the step at index n, tₙ is the associated time, and Δt is the step size. The schedule β provides the coefficient at tₙ, sθ supplies the learned score, and zₙ is a standard Gaussian draw for this step. The factor beginning with 1 is the same VP rescaling as before. The classifier probability pₜ(y | xₙ) is evaluated for the current noisy image and its time, log takes its logarithm, and ∇ₓ differentiates with respect to image values. The class term lets the experiment specify a category while still supplying a spatial guide through painted pixels.

Experiments and results

The comparisons and the questions they answer

The main experiments cover synthesis from strokes, stroke edits on photographs, and face composites. The LSUN experiments use VP checkpoints, while the main CelebA-HQ editing experiments use VE checkpoints. The paper attributes this choice to checkpoint availability. All the main systems being compared use already trained weights. In the inversion baselines, the official implementations and default projection settings supply the codes from which the output images are generated.

StyleGAN2-ADA uses a search in the W⁺ space of StyleGAN. W⁺ is the internal representation in which the baseline optimizes a perceptual loss, a measure of difference intended to reflect visual appearance. In-domain GAN first encodes an input. The paper calls the encoder-only version In-domain GAN-1 and the variant with additional optimization In-domain GAN-2. The extra optimization is intended to improve reconstruction accuracy, whereas using the encoder alone favors speed. The e4e encoder seeks a code close to the StyleGAN W space to balance how well the input is represented with how readily the representation can be edited. For compositing, the comparisons also include Laplacian and Poisson blending, which are traditional alternatives for joining the pieces of an image.

The automated measures distinguish fidelity to the guide from resemblance to real images as a collection. The Inception-based measure abbreviated KID compares the distribution of generated images with that of real images. Lower KID is better under this measure. Its reference set is made up of real images in the relevant image domain. The guide-to-output L₂ measure compares corresponding image coordinates after the image values have been normalized to [0,1]. In the tradeoff analysis the paper uses squared L₂, so the value sums the squared differences. In this case the reference is a particular guide and the output associated with it.

The two references matter when interpreting a result. In the synthetic bedroom or church tasks, the loss of texture is part of the process that creates the guide, so moving toward a real-image distribution can require a substantial numerical change. A generated collection can also look convincingly like photographs of the right kind while yielding outputs that are poor matches for their individual guides. The paper uses human choices to capture aspects of appearance and agreement with the request that the automated measures leave unresolved. For composites it additionally uses masked LPIPS, a perceptual distance applied to quantify undesired changes outside the edit region.

Bedroom scenes from paintings drawn by people

In the human-drawn stroke experiment, the guide describes a bedroom in broad colors. Each tested method generates 400 bedroom images from stroke paintings. For realism, Amazon Mechanical Turk workers see an SDEdit output next to a baseline output produced from the same guide. They choose the one that looks more realistic. The guide itself is omitted from that realism comparison, which asks the evaluator to judge the images as images. The realism study includes 1500 pairwise comparisons, distributed over 100 evaluation tasks with 15 comparison questions per task.

A separate group makes judgments of overall satisfaction. In that experiment the workers see the stroke painting in addition to both outputs. They are asked to imagine a plausible realization of the guide and weigh its resemblance to the input, visual clarity, and realism. This produces 3000 pairwise choices across 200 evaluation tasks. The study thereby distinguishes a picture that looks like a photograph in isolation from a picture that looks like a fitting completion of a particular painting. Both questions are relevant when the guide leaves substantial detail for the generator to decide.

On the human-drawn bedroom comparisons, the highest reported realism preference for SDEdit is 98.09%. The highest overall satisfaction preference is 91.72%. The paper describes the preferences against the GAN baselines as exceeding 80% on realism and 75% on overall satisfaction. These are selection shares in comparisons against SDEdit. They express how frequently people make a particular choice from two outputs for the same input. The reported maxima give the best comparison for each question, with no basis for treating them as averages across baselines or combining them into a single score.

The qualitative comparisons show why coarse paintings are a demanding input. The authors report that the latent projections frequently struggle to turn the rough strokes into realistic scenes. SDEdit's examples preserve the broad arrangement of the paint while supplying details typical of bedrooms. Additional examples start from the same human drawing and show visibly different plausible completions. They demonstrate the room for variation left by the guide. The study does not require one photograph to count as the uniquely correct realization of a hand-drawn room.

The main stroke-synthesis configuration uses VP with t₀ = 0.5, a discretization setting of N = 500, and K = 1 editing pass. This establishes the sampling conditions behind the results. The chosen t₀ makes enough of the original color arrangement available to steer the result in the demonstrations. The trained bedroom prior supplies information about plausible scene details that the input might only convey as a few large painted areas.

Synthetic strokes and larger sets of images

The authors also want guides that can be constructed systematically across a dataset. The simulation starts with an image at 256 × 256. A median filter with kernel size 23 removes local detail by replacing values using neighborhood medians. An adaptive palette then reduces the image to 6 colors. The output has larger uniform regions and resembles a coarse painting. Unlike a freely drawn image, it inherits its shapes and arrangement from the original photograph. That property makes it possible to use the same guide construction consistently across a large comparison.

The simulation is applied to the validation sets of LSUN bedroom and LSUN church outdoor. It is also applied to a randomly selected subset of 6000 images from the CelebA test set at 256 × 256. The real validation images furnish a reference distribution for the KID comparison in the LSUN evaluation. The generated collection is obtained from the simulated paintings, and each painting also provides the reference for measuring the squared L₂ distance to its own output. The results are reported as favorable to SDEdit against the main GAN baselines. The accompanying examples compare the real source, the simplified painting, and generated realizations, so the reader can see how photographic detail was lost during guide construction and then supplied during synthesis.

The face subset supports a different question. The authors ask whether parts of the source appearance that are expressible through a coarse guide survive generation. They use the Microsoft Azure Face API to detect gender and glasses as binary attributes and hair color as a multiclass attribute in the outputs. A result in which the service detects no face counts as an error. The reported classification accuracies favor SDEdit VP over the other tested systems for each of the chosen attributes. This is a more targeted result about guide agreement than a pixel distance. It concerns the attributes tested, as counted by the external classifier.

Editing an existing photograph with strokes

In stroke editing, the photographed scene is present from the beginning and the new strokes mark requested changes. The examples cover LSUN bedrooms, LSUN churches, and CelebA-HQ faces. The VP editing configuration uses t₀ = 0.5, N = 500, and K = 1. The paper gives t₀ = 0.45 and N = 1000 for the VE editing configuration. The configurations belong to their respective denoising procedures and are usable with the mask mechanism when the user has designated the affected region.

The main evidence here is visual. In the comparison figures, the authors observe that GAN reconstructions can blur areas outside the strokes or introduce changes the user did not request. The SDEdit examples show how the painted pixels can acquire plausible detail within their setting while retaining surrounding image content. The comparison figure uses in-domain GAN for the bedroom and face examples and StyleGAN2-ADA for churches. Intermediate face-editing images also show the denoising process taking a guide with a mask for the stroke pixels toward a finished result.

Extra face examples include changes around the eyes and mouth, as well as edits at 1024 × 1024. The high-resolution face editing demonstration uses a VE checkpoint pretrained on FFHQ. These figures extend the range of visible edits tested in the paper. The bedroom synthesis and compositing experiments supply the structured preference measurements, while the stroke-editing figures show the feasibility and character of particular changes.

Compositing from copied patches

For compositing, users start with a target face selected from CelebA-HQ. They copy material from other reference images and specify where changes can occur. The authors say the mask commonly matches the area to which the patch was pasted. At 256 × 256, the main tasks are changing hairstyles and adding glasses. SDEdit uses a VE checkpoint pretrained on FFHQ with t₀ = 0.35, N = 700, and K = 1. The paper also includes compositing examples at 1024 × 1024.

A composite gives the editor substantial photographic detail. Its local inconsistencies can still make the assembled image look implausible. The evaluation asks whether a system can produce a polished version that preserves the appearance of the intended hair or glasses and the features of the target face. The baseline procedures bring different possibilities to the comparison. Traditional blending addresses the joined image regions, while the GAN procedures render from a representation obtained by inversion. Masked SDEdit allows the inserted content to be reconstructed within the area the user has designated.

The human-evaluation section reports 936 images generated from user inputs for the compositing evaluation. Workers make 1500 pairwise choices for realism against SDEdit, and a different group makes another 1500 choices for how well the results serve as polished versions of the input. In the latter question, the instructions ask the workers to consider plausibility and continuity of appearance, including whether the image looks like the same person with the intended hairstyle or glasses. Each of the two judging procedures uses 100 evaluation tasks with 15 questions per task.

The strongest reported overall preference for SDEdit on CelebA-HQ compositing reaches 83.73%. The paper gives 75.60% as the highest realism preference in its compositing comparisons. It also reports that e4e fares marginally better on realism in its matchup. The SDEdit composites do better on the reported faithfulness comparisons and on combined satisfaction. The difference between the judgments is informative in a task where an exceptionally plausible face can still depart from the requested appearance. The authors also report better masked LPIPS scores, consistent with fewer undesired perceptual changes beyond the mask. Their numerical account of the human comparisons supports the preference shares, while the conclusions about the distances are reported by direction.

Sampling time and additional demonstrations

The inference comparison uses scribble-based synthesis at 256 × 256 on a single 2080Ti GPU. SDEdit takes 29.1s to generate an image. The StyleGAN2-ADA comparison takes around 72.8s and In-domain GAN 2 takes 5.2s under the same conditions. The timing description identifies the task, image size, and device, with no separate dataset label for that benchmark.

Scribble synthesis at 256 × 256, time per image on one 2080Ti

SDEdit takes less time than StyleGAN2-ADA and more time than In-domain GAN 2.

Scribble synthesis at 256 × 256, time per image on one 2080TiStyleGAN2-ADA: 72.8StyleGAN2-ADA72.8SDEdit (this paper): 29.1SDEdit (this paper)29.1In-domain GAN 2: 5.2In-domain GAN 25.2
The numbers
System or settingseconds per image
StyleGAN2-ADA72.8
SDEdit (this paper)29.1
In-domain GAN 25.2

The comparison gives a practical scale to the cost of iterative denoising. The authors describe VP and VE as having broadly comparable speed in their use and acknowledge that encoder-based inversion can be faster. SDEdit avoids a separate inversion stage, but its reverse trajectory still requires repeated evaluations of the score. The paper points to faster sampling as a possible route to shorter inference times. The three reported timings characterize the stated setting.

The class-guided examples use ImageNet at 256 × 256 and the VP procedure. The authors hold the stroke input the same while providing different class labels and show outputs consistent with those labels. This extends the use of the painted guide by supplying an explicit category in addition to layout and color. Other demonstrations show VP synthesis of cats and horses using their respective LSUN data. The face attributes and the class-guided examples address related but distinct kinds of control. The attributes are checked after generation to ask what the guide conveyed, while the class label is fed to the procedure to influence what it generates.

What the ablations show

Changing the start time while keeping the guide

The cleanest test of SDEdit's central control holds the stroke paintings fixed and changes how much they are corrupted. The tradeoff experiment uses the LSUN church outdoor validation set. The authors generate one simulated painting from each original validation image and reuse those paintings at every starting time. They test 0.01 and every 0.1 interval from 0.1 through 1. Accordingly, an improvement in resemblance to the collection of real churches can be read alongside the change in resemblance to the same input paintings.

The authors report lower KID and larger squared L₂ distance from the guide as t₀ increases in this comparison. The two changes trace the central tradeoff directly. A stronger intervention by the image prior improves the collection's resemblance to real church images under KID, while permitting more movement away from the painted colors and shapes. The low-time end of the comparison shows the cost of preserving too much of a painting. The high-time end shows how easily guide information can be lost when the initialization is strongly corrupted.

A separate visual analysis follows a brown stroke that matters to the intended result. The authors show that reducing t₀ can help the stroke survive and can also leave a less convincing image. This example is useful because the consequence is local and intelligible. The tradeoff can concern the preservation of one particular colored feature, even though the control is applied through the noise level of the whole initial image. A collection-level relationship between KID and guide distance need not describe exactly what happens to each feature in each sample. The stochastic path and the specifics of a guide still matter.

The proposition about pixel-space departure

The paper also presents a mathematical argument about the amount a result can deviate from a guide. It assumes a uniform ceiling on the squared magnitude of the learned score.

‖sθ(x, t)‖₂² ≤ C

The score sθ is evaluated at image state x and time t with parameters θ. The expression ‖·‖₂² is its squared Euclidean norm, and C is its proposed upper bound over the states and times in the proposition. This C is a bound on the score in the proof, independent of the channel-count notation used to describe the format of an image.

Under this assumption, the paper states the following inequality for the squared distance between a guide and the finished SDEdit image.

‖x⁽ᵍ⁾ − SDEdit(x⁽ᵍ⁾; t₀, θ)‖₂² ≤ σ²(t₀)[Cσ²(t₀) + d + 2√(−d log δ) − 2 log δ]

The guide is x⁽ᵍ⁾ and SDEdit returns the image generated with starting time t₀ and parameters θ. Their squared distance is on the left. On the right, σ²(t₀) is the starting variance, C is the score bound, and d is the number of image coordinates. The logarithm is written log, and δ is a probability parameter in (0, 1). The stated probability of the bound holding is at least 1 − δ. The coefficients 2 multiply the two terms depending on δ in the bracket.

The appendix tries to account for displacement from a drift contribution and a random contribution. The intended use of the bound on the score is to keep the integrated drift from becoming too large. For the accumulated random contribution, the proof describes a Gaussian vector ε with covariance σ²(t₀)I, where I is the identity matrix. The normalized squared length of that vector has a chi-squared distribution with d degrees of freedom. The tail inequality quoted in the proof is:

Pr(‖ε‖₂² / σ²(t₀) ≥ d + 2√(−d log δ) − 2 log δ) ≤ δ

Here Pr denotes probability, ε is the accumulated Gaussian term, and ‖ε‖₂² is its squared length. The denominator σ²(t₀) normalizes that length by the starting variance. The threshold uses the dimension d and the probability parameter δ, with log denoting the logarithm and the coefficients 2 as in the stated tail bound. The inequality controls the chance that the normalized noise length reaches or exceeds the threshold.

The proposition's intended reading is that the permissible deviation grows with the noise scale under its assumptions. Its right-hand side describes distance in image coordinates. The KID experiment directly examines realism, which is absent from that expression. Thus the two pieces of analysis address different questions. The proof attempts to limit displacement for a given level of corruption. The controlled comparison measures what happens to realism and guide distance when the starting level is varied.

How the quality and subject of the guide matter

The authors test unusual inputs to see how much latitude the method has when a drawing is sparse or conflicts with the prior. Their visual examples include a face drawn with little detail and a face with spikes for a CelebA-HQ prior. A rough building and a drawing of a horse are supplied to a church prior. These cases change different properties of the input. A sparse face leaves details unspecified while remaining in the expected domain. Spikes add structure at odds with familiar face images. A horse input to the church generator puts the depicted subject and the prior in conflict.

The authors find the method generally tolerant of variation among these inputs. The strongest claim the examples support concerns the ability to reconstruct plausible images under imperfect guidance. In the mismatched-domain case, interpreting tolerance requires asking where the plausibility comes from. A prior trained on church images can use or reinterpret shapes present in an unusual guide. The example is distinct from the paper's horse generation using an LSUN horse prior, which has training images of the desired subject.

The quantitative guide-quality study changes how many colors the stroke simulator retains. That changes how much of the source scene can be encoded in the simulated painting. The authors report that SDEdit remains better than the tested baselines across the examined levels of detail. This is a controlled way to vary the guide's information content, since the source photographs and the guide construction procedure supply the rest of the conditions. The manipulation chiefly tests coarseness induced by palette reduction. Real users can leave things out, supply competing clues, or draw objects with relations that do not occur in the source photographs used by the simulation.

For a coarser guide in the extra cat and horse examples, the authors use t₀ = 0.6. They use t₀ = 0.5 for the other displayed cases. The larger value is an example of permitting greater reconstruction when the drawing supplies less usable detail. The main sampling discussion also says that K from 1 to 3 works reasonably, and that more passes can produce more realistic images at greater computational cost. The evidence for the latter is a reported observation about the implementation. The start-time experiment has the more systematic comparison, with repeated use of the same guide set across the schedule.

Comparisons with other ways of applying guidance

A comparison in the appendix applies the preceding score-based SDE framework to strokes without training an extra noise-conditioned classifier. The authors explain that their arbitrary guide setting supplies neither a specified measurement function nor the guide data that would be needed for the conditioning setup they discuss. The illustrated application falls back on random inpainting and fails to follow the requested content closely. SDEdit's intermediate initialization preserves more of the guide in those examples. The comparison concerns that application of the earlier framework without an added classifier. SDEdit's separate ImageNet demonstration shows that initialization from a guide and classifier-based guidance can also be combined.

The authors compare against SC-FEGAN in a further set of face examples. They first use the same stroke guide for the comparison. They also give SC-FEGAN an additional sketch alongside the colored strokes, while SDEdit uses the strokes. The authors judge the SDEdit outputs more realistic in both sets of examples. These comparisons broaden the evidence beyond GAN inversion by including a GAN already designed for sketch and color input. They give a qualitative assessment of selected results, with no reported preference shares for the additional sketch comparison.

Another appendix comparison examines local preservation by restoring pixels after a GAN has produced an edited image. Pasting protected content back outside the mask leaves conspicuous artifacts at some boundaries in the examples. The authors also try blending with StyleGAN2-ADA output and still see artifacts. This tests a practical alternative to enforcing the protected region during denoising. The comparison illustrates that preserving the exterior and making the interior fit the exterior are related problems. The tested post-processing attempts can achieve the first while leaving visible traces of the join. The paper's extra examples of closing eyes, opening mouths, and changing lip color further show the kinds of local requests the interface can express.

Limitations

Limits the authors identify

Guide quality is an explicit limitation. A guide can be so far from a plausible image that retaining it closely would keep the result visibly artificial. The authors use an all-white image to make the point. There can be little useful structure to preserve, even if the system succeeds in producing a plausible picture by starting with stronger corruption. At the other extreme, a guide containing much of the intended photographic detail can be damaged if the initial noise gives the generator too much freedom. The starting time helps manage this issue, and the authors allow that different guides can have different desirable settings.

The paper also acknowledges a cost in inference time. The method needs repeated reverse steps for each output, and extra editing passes raise that cost. This is consequential in the interactive scenario the authors describe, where a user may look at a candidate and ask the system to try a different setting. The result for e4e in face compositing is another explicit qualification. Even in a task on which SDEdit performs well overall, the baseline can have the edge on realism alone. Faithfulness and overall preference must be read alongside that outcome.

The ethics discussion identifies both wider access to image creation and the possibility of deception through plausible manipulated photographs. It describes a forensic detector developed for GAN imagery that detects less than 3% of SDEdit-generated images on LSUN bedrooms, while its detection on GAN generation reaches up to 93%. The finding concerns the detector and sample setting tested. It shows how a detector's performance can depend on the generative procedure it encounters. The authors describe plans to specify allowable uses through licensing and call for forensic methods that can handle images generated by SDEs.

The authors also recognize potential bias from both the people creating guides and the workers evaluating the outputs. A set of user drawings reflects which compositions those users thought to draw and how they chose to represent them. A preference study reflects how people interpret visual realism and resemblance under the given instructions. The paper describes its Mechanical Turk tasks as having 15 comparison questions per task, paying 0.2 dollars per task, and taking around 1 minute, corresponding to the authors' stated estimate of around 12 dollars per hour. Those details describe the setting in which the human measurements were collected.

Limits that follow from the setup

The strongest human evidence is concentrated in bedroom synthesis and face compositing. The church, cat, horse, and additional face illustrations extend the range of demonstrated uses, and the extra face resolutions show that the algorithm can be applied there. Example figures show what the method achieved on the cases displayed. They leave the rates of success or failure in those settings open. Similarly, the shared t₀ used for a task is evidence that a common value can be practical under the tested conditions. It gives little information about how to choose the best setting automatically when guides vary substantially.

The checkpoints also limit what can be inferred about the algorithm independently of its prior. Changing from one image domain to another can change the training images, the score function, the noise schedule, and the chosen solver settings together. The paper chooses checkpoints based on availability. The reported task outcomes therefore provide no isolated estimate of the effect of VE versus VP under identical conditions. The reliance on official default projections makes the baseline comparison reproducible in spirit and relevant to what users could obtain from those procedures. It leaves the effect of application-specific optimization for the baselines open.

The guide simulator inherits content from real images. With palette reduction and smoothing, it provides a dependable test of reconstruction from simplified photographs. A person drawing independently can supply more ambiguous spatial relations, depict an unlikely arrangement, or intentionally request something the prior seldom represents. The appendix probes some unusual guides visually, but the quantitative tests of simulated guide quality primarily characterize the simulator's changes. A careful reader can treat them as evidence of robustness to a defined loss of detail.

The metrics each also give a partial account of intent. Squared pixel distance assigns a cost to a justified change in texture and can give credit for preserving a feature that the user expected the system to reinterpret. Distributional realism can improve while correspondence to particular inputs worsens. The face attribute experiment helps by examining named aspects of the request, but its interpretation depends on the selected categories and the face detector. Exact preservation at protected pixels is a property of the masked procedure. The visual quality of the seam at the edge of the mask depends on how the generated region meets those pixels. The formal constraint on exterior values provides no bound on that seam.

The pairing protocol gives a clear meaning to the published preferences. It measures a selection under specified instructions when the two images come from the same guide. It leaves absolute acceptability unresolved. A worker can prefer one output even if both miss an important detail, or make a choice between two already acceptable images. The maxima across baseline pairings identify especially favorable comparisons. Interpreting them as the expected success rate for a new user would require evidence about the distribution of their guides, the tasks they try, and what they count as success.

Limits of the mathematical argument

The distance proposition's uniform bound on the score is an assumption. The experiments give no measured value of C for the checkpoints. The conclusion concerns an upper limit on squared distance, and it does not imply that sample distances must grow monotonically when t₀ changes. It supplies no threshold at which images become realistic. A lower KID in the time sweep is experimental evidence about the output distribution under the tested settings. A bound on displacement from individual guides serves a different purpose.

There are also gaps in the appendix proof as written. The proof starts its calculation with displacement from the corrupted guide, while the proposition measures displacement from the original guide. Connecting the two requires accounting for the noise added during initialization. The appendix also bounds the squared length of the sum of drift and noise by the sum of their squared lengths, although the cross term can be positive. Furthermore, the drift follows a score evaluated along a randomly driven path, so independence from the accumulated noise needs justification. These issues qualify the claimed bound. The observed tradeoff still has direct support from the experiment that varies t₀ on a fixed collection of paintings.

What came after

The later works cite SDEdit across image synthesis, editing, evaluation, and changes to the generative process itself. Their titles establish the subjects of those works, and the citations establish a connection to SDEdit. The form of that connection is unspecified. The most precise way to follow it is through the technical questions the later subjects share with SDEdit, while keeping claims about concrete adoption tied to what is documented.

High-Resolution Image Synthesis with Latent Diffusion Models puts latent representations at the center of its stated approach to high-resolution synthesis. The connection raises a question of representation. In SDEdit the user supplies visible pixels and the noisy guide is an image state. A diffusion procedure organized around latent representations poses the question of how visual details from a guide would be represented at the beginning of denoising. The citation identifies SDEdit as part of the background to this work, without specifying how its initial-state procedure is used. SDXL revisits high-resolution synthesis with improvements to latent diffusion as its declared subject. Its citation continues the connection between SDEdit's use of a learned image prior and subsequent work on the generative machinery underlying such applications. Latent Diffusion · SDXL

GLIDE takes up photorealistic generation and editing guided by text. A text request can express a desired change without occupying the pixel locations where the change should occur. SDEdit's guides supply spatial information directly, through the location of strokes or pasted patches, with class information available separately in its auxiliary experiment. GLIDE's stated subject places a different channel for expressing the request alongside diffusion-based synthesis. The papers share the problem of balancing believable detail with adherence to the user's input. Their relation through citation leaves the specific use of SDEdit's initialization open. GLIDE

Flow Straight and Fast studies generation and data transfer using rectified flow. Its subject connects to SDEdit through the idea of changing data by following a trajectory. For SDEdit, the point at which that trajectory starts helps determine how much of the user's input can survive. Work organized around a different type of generative trajectory makes the location of guidance a pertinent comparison. The citation documents the connection, while an account of whether the later method uses the same guide corruption would need a description of its procedure. Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution points to another boundary. SDEdit's Gaussian perturbation and gradient are expressed over continuous image coordinates. A diffusion procedure defined for discrete data has a different representation to work with, even when the broad question of retaining information through corruption is similar. Rectified Flow · Discrete Diffusion Modeling

VIEScore takes up explainable metrics for conditional image synthesis. That subject follows a problem visible in the SDEdit experiments. A useful assessment needs to say something about how convincing an image looks and how closely it follows the requested content. The difference between realism and overall satisfaction in the face-compositing study is a concrete instance. A later focus on explaining conditional image scores brings attention to what such a judgment is responding to. The citation establishes SDEdit's place in the evaluation literature cited by VIEScore, while the later metric's operation and performance are outside what the citation specifies. VIEScore

Language-Grounded Multi-Domain Image Translation via Semantic Difference Guidance and I2E place editing in settings where the request is expressed through language. The first names semantic differences as the basis of its guidance. The second makes the interactive environment for text-guided editing its subject. Each intersects with a distinct part of SDEdit's problem. SDEdit uses visible alterations to convey the intended difference, and its proposed feedback procedure asks the user to judge a candidate before changing the noise level. The later titles identify additional ways to formulate the requested change and the editing interaction. Their citations do not specify an adoption of the noise-level search or of the mask procedure. Language-Grounded Multi-Domain Image Translation via Semantic Difference Guidance · I2E

Across these connections, SDEdit supplies a concrete instance of editing by controlling the input to a pretrained generative process. Its experiments establish what that control looks like for painted and composited images, how the starting point shifts the balance of visible evidence and reconstructed detail, and why an evaluation of the finished image needs access to the request as well as the result. Those are the aspects of the work that can be followed across changes in representation, guidance, and evaluation without assuming that a citation establishes direct reuse.

Cite

Cite as Chenlin Meng, Yutong He, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu and Stefano Ermon. 2021. SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equations. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2108.01073 · arXiv 2108.01073

@misc{meng2021sdedit,
  title = {{SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equations}},
  author = {Chenlin Meng, Yutong He, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu and Stefano Ermon},
  year = {2021},
  doi = {10.48550/arxiv.2108.01073},
  eprint = {2108.01073},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2108.01073}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/meng-2021-sdedit-guided-image-synthesis-editing/

References

71 references, from the paper's own bibliography.

  1. Rameen Abdal, Yipeng Qin, and Peter Wonka. Image2stylegan: How to embed images into the stylegan latent space? In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4432–4441, 2019. our card
  2. Rameen Abdal, Yipeng Qin, and Peter Wonka. Image2stylegan++: How to edit the embedded images? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8296–8305, 2020. OpenAlex ↗ · Scholar ↗
  3. David H Ackley, Geoffrey E Hinton, and Terrence J Sejnowski. A learning algorithm for boltzmann machines. Cognitive science, 90 (1):0 147–169, 1985. OpenAlex ↗ · Scholar ↗
  4. Brian DO Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 120 (3):0 313–326, 1982. OpenAlex ↗ · Scholar ↗
  5. Rushil Anirudh, Jayaraman J Thiagarajan, Bhavya Kailkhura, and Peer-Timo Bremer. Mimicgan: Robust projection onto image manifolds with corruption mimicking. International Journal of Computer Vision, pp. 1–19, 2020. OpenAlex ↗ · Scholar ↗
  6. David Bau, Hendrik Strobelt, William Peebles, Jonas Wulff, Bolei Zhou, Jun-Yan Zhu, and Antonio Torralba. Semantic photo manipulation with a generative image prior. ACM SIGGRAPH, 380 (4):0 1–11, 2019a. OpenAlex ↗ · Scholar ↗
  7. David Bau, Jun-Yan Zhu, Jonas Wulff, William Peebles, Hendrik Strobelt, Bolei Zhou, and Antonio Torralba. Seeing what a gan cannot generate. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4502–4511, 2019b. OpenAlex ↗ · Scholar ↗
  8. David Bau, Steven Liu, Tongzhou Wang, Jun-Yan Zhu, and Antonio Torralba. Rewriting a deep generative model. In European Conference on Computer Vision (ECCV), 2020. OpenAlex ↗ · Scholar ↗
  9. Mikołaj Bińkowski, Danica J Sutherland, Michael Arbel, and Arthur Gretton. Demystifying mmd gans. arXiv preprint arXiv:1801.01401, 2018. OpenAlex ↗ · Scholar ↗
  10. Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Neural photo editing with introspective adversarial networks. In International Conference on Learning Representations (ICLR), 2017. OpenAlex ↗ · Scholar ↗
  11. Peter J Burt and Edward H Adelson. The laplacian pyramid as a compact image code. In Readings in computer vision, pp. 671–679. Elsevier, 1987. OpenAlex ↗ · Scholar ↗
  12. Qifeng Chen and Vladlen Koltun. Photographic image synthesis with cascaded refinement networks. In IEEE International Conference on Computer Vision (ICCV), 2017. OpenAlex ↗ · Scholar ↗
  13. Jooyoung Choi, Sungwon Kim, Yonghyun Jeong, Youngjune Gwon, and Sungroh Yoon. Ilvr: Conditioning method for denoising diffusion probabilistic models. arXiv preprint arXiv:2108.02938, 2021. OpenAlex ↗ · Scholar ↗
  14. Tali Dekel, Chuang Gan, Dilip Krishnan, Ce Liu, and William T Freeman. Sparse, smart contours to represent and edit images. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. OpenAlex ↗ · Scholar ↗
  15. Prafulla Dhariwal and Alex Nichol. Diffusion models beat gans on image synthesis. arXiv preprint arXiv:2105.05233, 2021. OpenAlex ↗ · Scholar ↗
  16. Yilun Du and Igor Mordatch. Implicit generation and generalization in energy-based models. arXiv preprint arXiv:1903.08689, 2019. OpenAlex ↗ · Scholar ↗
  17. Ruiqi Gao, Yang Lu, Junpei Zhou, Song-Chun Zhu, and Ying Nian Wu. Learning energy-based models as generative convnets via multi-grid modeling and sampling. arXiv e-prints, pp. arXiv–1709, 2017. OpenAlex ↗ · Scholar ↗
  18. Lore Goetschalckx, Alex Andonian, Aude Oliva, and Phillip Isola. Ganalyze: Toward visual definitions of cognitive image properties. In IEEE International Conference on Computer Vision (ICCV), 2019. OpenAlex ↗ · Scholar ↗
  19. Jinjin Gu, Yujun Shen, and Bolei Zhou. Image processing using multi-code gan prior. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. OpenAlex ↗ · Scholar ↗
  20. Éric Guérin, Julie Digne, Éric Galin, Adrien Peytavie, Christian Wolf, Bedrich Benes, and Benoundefinedt Martinez. Interactive example-based terrain authoring with conditional generative adversarial networks. ACM Transactions on Graphics (TOG), 360 (6), 2017. OpenAlex ↗ · Scholar ↗
  21. Erik Härkönen, Aaron Hertzmann, Jaakko Lehtinen, and Sylvain Paris. Ganspace: Discovering interpretable gan controls. In Advances in Neural Information Processing Systems, 2020. OpenAlex ↗ · Scholar ↗
  22. Mingming He, Dongdong Chen, Jing Liao, Pedro V Sander, and Lu Yuan. Deep exemplar-based colorization. ACM Transactions on Graphics (TOG), 370 (4):0 1–16, 2018. OpenAlex ↗ · Scholar ↗
  23. Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. arXiv preprint arXiv:2006.11239, 2020. OpenAlex ↗ · Scholar ↗
  24. Minyoung Huh, Richard Zhang, Jun-Yan Zhu, Sylvain Paris, and Aaron Hertzmann. Transforming and projecting images into class-conditional generative networks. In European Conference on Computer Vision (ECCV), 2020. OpenAlex ↗ · Scholar ↗
  25. Satoshi Iizuka, Edgar Simo-Serra, and Hiroshi Ishikawa. Globally and locally consistent image completion. ACM Transactions on Graphics (TOG), 360 (4):0 107, 2017. OpenAlex ↗ · Scholar ↗
  26. Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, and Alexei A Efros. Image-to-image translation with conditional adversarial networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. OpenAlex ↗ · Scholar ↗
  27. Ali Jahanian, Lucy Chai, and Phillip Isola. On the”steerability" of generative adversarial networks. In International Conference on Learning Representations (ICLR), 2020. OpenAlex ↗ · Scholar ↗
  28. Youngjoo Jo and Jongyoul Park. Sc-fegan: Face editing generative adversarial network with user's sketch and color. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 1745–1753, 2019. OpenAlex ↗ · Scholar ↗
  29. Alexia Jolicoeur-Martineau, Rémi Piché-Taillefer, Ioannis Mitliagkas, and Remi Tachet des Combes. Adversarial score matching and improved sampling for image generation. In International Conference on Learning Representations, 2021. OpenAlex ↗ · Scholar ↗
  30. Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017. OpenAlex ↗ · Scholar ↗
  31. Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. OpenAlex ↗ · Scholar ↗
  32. 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, 2020a. OpenAlex ↗ · Scholar ↗
  33. Tero Karras, Samuli Laine, Miika Aittala, Janne Hellsten, Jaakko Lehtinen, and Timo Aila. Analyzing and improving the image quality of stylegan. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020b. OpenAlex ↗ · Scholar ↗
  34. Bahjat Kawar, Gregory Vaksman, and Michael Elad. Snips: Solving noisy inverse problems stochastically. arXiv preprint arXiv:2105.14951, 2021. OpenAlex ↗ · Scholar ↗
  35. Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Learning representations for automatic colorization. In European Conference on Computer Vision (ECCV), 2016. OpenAlex ↗ · Scholar ↗
  36. Beatrice Laurent and Pascal Massart. Adaptive estimation of a quadratic functional by model selection. Annals of Statistics, pp. 1302–1338, 2000. OpenAlex ↗ · Scholar ↗
  37. Guilin Liu, Fitsum A Reda, Kevin J Shih, Ting-Chun Wang, Andrew Tao, and Bryan Catanzaro. Image inpainting for irregular holes using partial convolutions. In European Conference on Computer Vision (ECCV), 2018. OpenAlex ↗ · Scholar ↗
  38. Hongyu Liu, Ziyu Wan, Wei Huang, Yibing Song, Xintong Han, Jing Liao, Bin Jiang, and Wei Liu. Deflocnet: Deep image editing via flexible low-level controls. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10765–10774, 2021. OpenAlex ↗ · Scholar ↗
  39. Xingang Pan, Xiaohang Zhan, Bo Dai, Dahua Lin, Chen Change Loy, and Ping Luo. Exploiting deep generative prior for versatile image restoration and manipulation. In European Conference on Computer Vision, 2020. OpenAlex ↗ · Scholar ↗
  40. Taesung Park, Ming-Yu Liu, Ting-Chun Wang, and Jun-Yan Zhu. Semantic image synthesis with spatially-adaptive normalization. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. OpenAlex ↗ · Scholar ↗
  41. Deepak Pathak, Philipp Krahenbuhl, Jeff Donahue, Trevor Darrell, and Alexei A Efros. Context encoders: Feature learning by inpainting. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. OpenAlex ↗ · Scholar ↗
  42. Patrick Pérez, Michel Gangnet, and Andrew Blake. Poisson image editing. In ACM SIGGRAPH, pp. 313–318, 2003. OpenAlex ↗ · Scholar ↗
  43. Tiziano Portenier, Qiyang Hu, Attila Szabó, Siavash Arjomand Bigdeli, Paolo Favaro, and Matthias Zwicker. Faceshop: Deep sketch-based face image editing. ACM Transactions on Graphics (TOG), 370 (4), 2018. OpenAlex ↗ · Scholar ↗
  44. 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. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021. OpenAlex ↗ · Scholar ↗
  45. Daniel Roich, Ron Mokady, Amit H Bermano, and Daniel Cohen-Or. Pivotal tuning for latent-based editing of real images. arXiv preprint arXiv:2106.05744, 2021. OpenAlex ↗ · Scholar ↗
  46. Patsorn Sangkloy, Jingwan Lu, Chen Fang, Fisher Yu, and James Hays. Scribbler: Controlling deep image synthesis with sketch and color. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. OpenAlex ↗ · Scholar ↗
  47. Yujun Shen, Jinjin Gu, Xiaoou Tang, and Bolei Zhou. Interpreting the latent space of gans for semantic face editing. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. OpenAlex ↗ · Scholar ↗
  48. Jascha Sohl-Dickstein, Eric A Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. arXiv preprint arXiv:1503.03585, 2015. our card
  49. Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. arXiv preprint arXiv:2010.02502, 2020. our card
  50. Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems (NeurIPS), 2019. our card
  51. Yang Song and Stefano Ermon. Improved techniques for training score-based generative models. arXiv preprint arXiv:2006.09011, 2020. OpenAlex ↗ · Scholar ↗
  52. Yang Song and Diederik P Kingma. How to train your energy-based models. arXiv preprint arXiv:2101.03288, 2021. OpenAlex ↗ · Scholar ↗
  53. Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations (ICLR), 2021. our card
  54. Omer Tov, Yuval Alaluf, Yotam Nitzan, Or Patashnik, and Daniel Cohen-Or. Designing an encoder for stylegan image manipulation. ACM Transactions on Graphics (TOG), 400 (4):0 1–14, 2021. OpenAlex ↗ · Scholar ↗
  55. Pascal Vincent. A connection between score matching and denoising autoencoders. Neural computation, 230 (7):0 1661–1674, 2011. OpenAlex ↗ · Scholar ↗
  56. Sheng-Yu Wang, Oliver Wang, Richard Zhang, Andrew Owens, and Alexei A Efros. Cnn-generated images are surprisingly easy to spot...for now. In CVPR, 2020. OpenAlex ↗ · Scholar ↗
  57. Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. High-resolution image synthesis and semantic manipulation with conditional gans. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. OpenAlex ↗ · Scholar ↗
  58. Zongze Wu, Dani Lischinski, and Eli Shechtman. Stylespace analysis: Disentangled controls for stylegan image generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2021. OpenAlex ↗ · Scholar ↗
  59. Wenqi Xian, Patsorn Sangkloy, Varun Agrawal, Amit Raj, Jingwan Lu, Chen Fang, Fisher Yu, and James Hays. Texturegan: Controlling deep image synthesis with texture patches. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. OpenAlex ↗ · Scholar ↗
  60. Jianwen Xie, Yang Lu, Song-Chun Zhu, and Yingnian Wu. A theory of generative convnet. In International Conference on Machine Learning, pp. 2635–2644. PMLR, 2016. OpenAlex ↗ · Scholar ↗
  61. Jianwen Xie, Yang Lu, Ruiqi Gao, and Ying Nian Wu. Cooperative learning of energy-based model and latent variable model via mcmc teaching. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. OpenAlex ↗ · Scholar ↗
  62. Yinghao Xu, Yujun Shen, Jiapeng Zhu, Ceyuan Yang, and Bolei Zhou. Generative hierarchical features from synthesizing images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4432–4442, 2021. OpenAlex ↗ · Scholar ↗
  63. Chao Yang, Xin Lu, Zhe Lin, Eli Shechtman, Oliver Wang, and Hao Li. High-resolution image inpainting using multi-scale neural patch synthesis. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017. OpenAlex ↗ · Scholar ↗
  64. Hang Zhang, Kristin Dana, Jianping Shi, Zhongyue Zhang, Xiaogang Wang, Ambrish Tyagi, and Amit Agrawal. Context encoding for semantic segmentation. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pp. 7151–7160, 2018. OpenAlex ↗ · Scholar ↗
  65. Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In European Conference on Computer Vision (ECCV), 2016. OpenAlex ↗ · Scholar ↗
  66. Richard Zhang, Jun-Yan Zhu, Phillip Isola, Xinyang Geng, Angela S Lin, Tianhe Yu, and Alexei A Efros. Real-time user-guided image colorization with learned deep priors. ACM Transactions on Graphics (TOG), 90 (4), 2017. OpenAlex ↗ · Scholar ↗
  67. Yang Zhou, Zhen Zhu, Xiang Bai, Dani Lischinski, Daniel Cohen-Or, and Hui Huang. Non-stationary texture synthesis by adversarial expansion. ACM Transactions on Graphics (TOG), 370 (4), 2018. OpenAlex ↗ · Scholar ↗
  68. Jiapeng Zhu, Yujun Shen, Deli Zhao, and Bolei Zhou. In-domain gan inversion for real image editing. In European Conference on Computer Vision (ECCV), 2020a. OpenAlex ↗ · Scholar ↗
  69. Jun-Yan Zhu, Philipp Krähenbühl, Eli Shechtman, and Alexei A Efros. Generative visual manipulation on the natural image manifold. In European Conference on Computer Vision (ECCV), 2016. OpenAlex ↗ · Scholar ↗
  70. Jun-Yan Zhu, Taesung Park, Phillip Isola, and Alexei A Efros. Unpaired image-to-image translation using cycle-consistent adversarial networks. In IEEE International Conference on Computer Vision (ICCV), 2017. OpenAlex ↗ · Scholar ↗
  71. Peihao Zhu, Rameen Abdal, Yipeng Qin, and Peter Wonka. Sean: Image synthesis with semantic region-adaptive normalization. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020b. OpenAlex ↗ · Scholar ↗