lama icon indicating copy to clipboard operation
lama copied to clipboard

question about the removal of the chromatic aberration in inpainting

Open D222097 opened this issue 1 year ago • 1 comments

In the example of lama, I found that the texture of masked area is reasonable but with chromatic aberration. What could be the reason for this? 5089a2acbb6b480d73fa0557ac323b1e b13d8205e8c9ddf60959ee208f0d88f4

D222097 avatar Dec 06 '23 05:12 D222097

It occurs because the pixel loss exclusively applies to the unmasked area, while the masked region employs perceptual loss and adversarial loss, emphasizing perceptual similarity.

To ensure consistency in low-frequency color, consider retraining the model with a loss function tailored for color consistency in the masked region.

jiaxue-ai avatar Mar 30 '24 23:03 jiaxue-ai