zewei-Zhang / GoodDrag

Ofiicial GoodDrag implementation.
Apache License 2.0
88 stars 6 forks source link

What happend for the pixel dragged to the target positon? #6

Open TomSuen opened 3 months ago

TomSuen commented 3 months ago

Hi, such a wonderful work! I want to know when a drag operation is performed on a latent noised image, is the value of that position directly copied to the target position?

zewei-Zhang commented 3 months ago

Thank you for your interest in our work! To clarify, it is not a copy. For each operation, the latent patch at the initial position is used as the optimization target for different timesteps. The optimization loss function is defined by Eq. 8 in our paper. Additionally, Fig. 5 illustrates that if the optimization target patch is not fixed, cumulative errors can lead to drag operation deviation and image collapse.