-
Notifications
You must be signed in to change notification settings - Fork 422
Commit 7aa4d93
fix: adjust timestep calculations for DDIM and TCD
On img2img, the number of steps correspond to the last precalculated sigma
values, but the internal alphas_cumprod and compvis_sigmas were being computed
over the entire step range.
Also, tweaks the prev_timestep calculation on DDIM to better match the current
timestamp (like on TCD), to avoid inconsistencies due to rounding.1 parent 10c6501 commit 7aa4d93
2 files changed
+21
-8
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
474 | 474 |
| |
475 | 475 |
| |
476 | 476 |
| |
477 | + | ||
477 | 478 |
| |
478 | 479 |
| |
479 | 480 |
| |
| |||
1060 | 1061 |
| |
1061 | 1062 |
| |
1062 | 1063 |
| |
1063 | - | ||
1064 | - | ||
1064 | + | ||
1065 | + | ||
1066 | + | ||
1065 | 1067 |
| |
1066 | - | ||
1068 | + | ||
1069 | + | ||
1070 | + | ||
1071 | + | ||
1067 | 1072 |
| |
1068 | 1073 |
| |
1069 | 1074 |
| |
| |||
1236 | 1241 |
| |
1237 | 1242 |
| |
1238 | 1243 |
| |
1239 | - | ||
1244 | + | ||
1245 | + | ||
1240 | 1246 |
| |
1241 | 1247 |
| |
1242 | 1248 |
| |
1243 | - | ||
1244 | - | ||
1249 | + | ||
1250 | + | ||
1245 | 1251 |
| |
1246 | 1252 |
| |
1247 | 1253 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
798 | 798 |
| |
799 | 799 |
| |
800 | 800 |
| |
801 | + | ||
801 | 802 |
| |
802 | 803 |
| |
803 | 804 |
| |
| |||
991 | 992 |
| |
992 | 993 |
| |
993 | 994 |
| |
994 | - | ||
995 | + | ||
995 | 996 |
| |
996 | 997 |
| |
997 | 998 |
| |
| |||
1202 | 1203 |
| |
1203 | 1204 |
| |
1204 | 1205 |
| |
1206 | + | ||
1205 | 1207 |
| |
1206 | 1208 |
| |
1207 | 1209 |
| |
| |||
1464 | 1466 |
| |
1465 | 1467 |
| |
1466 | 1468 |
| |
1469 | + | ||
1467 | 1470 |
| |
1468 | 1471 |
| |
1469 | 1472 |
| |
| |||
1611 | 1614 |
| |
1612 | 1615 |
| |
1613 | 1616 |
| |
1617 | + | ||
1614 | 1618 |
| |
1615 | 1619 |
| |
1616 | 1620 |
| |
| |||
1775 | 1779 |
| |
1776 | 1780 |
| |
1777 | 1781 |
| |
1782 | + | ||
1778 | 1783 |
| |
1779 | - | ||
1784 | + | ||
1780 | 1785 |
| |
1781 | 1786 |
| |
1782 | 1787 |
| |
| |||
1791 | 1796 |
| |
1792 | 1797 |
| |
1793 | 1798 |
| |
1799 | + | ||
1794 | 1800 |
| |
1795 | 1801 |
| |
1796 | 1802 |
| |
| |||
1903 | 1909 |
| |
1904 | 1910 |
| |
1905 | 1911 |
| |
1912 | + | ||
1906 | 1913 |
| |
1907 | 1914 |
| |
1908 | 1915 |
| |
|
0 commit comments