Commit b4077af
[bug fix] using snr gamma and prior preservation loss in the dreambooth lora sdxl training scripts (huggingface#6356)
* change timesteps used to calculate snr when --with_prior_preservation is enabled
* change timesteps used to calculate snr when --with_prior_preservation is enabled (canonical script)
* style
* revert canonical script to before snr gamma change
---------
Co-authored-by: Sayak Paul <[email protected]>1 parent 9f2bff5 commit b4077af
File tree
1 file changed
+10
-2
lines changed- examples/advanced_diffusion_training
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1819 | 1819 | | |
1820 | 1820 | | |
1821 | 1821 | | |
1822 | | - | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
1823 | 1831 | | |
1824 | | - | |
| 1832 | + | |
1825 | 1833 | | |
1826 | 1834 | | |
1827 | 1835 | | |
| |||
0 commit comments