[Research] Latent Perceptual Loss (LPL) for Stable Diffusion XL#11573
[Research] Latent Perceptual Loss (LPL) for Stable Diffusion XL#11573yiyixuxu merged 18 commits intohuggingface:mainfrom
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
sayakpaul
left a comment
There was a problem hiding this comment.
Thank you! Very clean stuff!
Should we
- Credit the first author for helping with a reference implementation?
- Should we apply LoRA on
unetinstead of full fine-tuning? - Change
lpl_sdxl.pytotrain_sdxl_lpl.py?
Maybe update the PR description with a visual example from full fine-tuning run?
| # ... other training arguments ... | ||
| ``` | ||
|
|
||
| ### Key Parameters |
There was a problem hiding this comment.
Should also include a full representative training command. Currently, we only show LPL-specific bits in a command but lack one where a full-blown training can be launched (dataset_name, batch_size, etc.).
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
yiyixuxu
left a comment
There was a problem hiding this comment.
oh thanks
sorry we let this go stale
What does this PR do?
An implementation of Latent Perceptual Loss (LPL) for training Stable Diffusion XL models, based on the paper "Boosting Latent Diffusion with Perceptual Objectives" (Berrada et al., 2025). LPL is a perceptual loss that operates in the latent space of a VAE, helping to improve the quality and consistency of generated images by bridging the disconnect between the diffusion model and the autoencoder decoder.
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.