Commit 2e0c46a
committed
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 eed97a5 commit 2e0c46a
2 files changed
+24
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| 500 | + | |
500 | 501 | | |
501 | 502 | | |
502 | 503 | | |
| |||
1083 | 1084 | | |
1084 | 1085 | | |
1085 | 1086 | | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1090 | 1090 | | |
1091 | | - | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
1092 | 1094 | | |
1093 | 1095 | | |
1094 | 1096 | | |
| |||
1260 | 1262 | | |
1261 | 1263 | | |
1262 | 1264 | | |
1263 | | - | |
| 1265 | + | |
| 1266 | + | |
1264 | 1267 | | |
1265 | | - | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1266 | 1273 | | |
1267 | 1274 | | |
1268 | 1275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
| 848 | + | |
848 | 849 | | |
849 | 850 | | |
850 | 851 | | |
| |||
1083 | 1084 | | |
1084 | 1085 | | |
1085 | 1086 | | |
1086 | | - | |
| 1087 | + | |
1087 | 1088 | | |
1088 | 1089 | | |
1089 | 1090 | | |
| |||
1520 | 1521 | | |
1521 | 1522 | | |
1522 | 1523 | | |
| 1524 | + | |
1523 | 1525 | | |
1524 | 1526 | | |
1525 | 1527 | | |
| |||
1530 | 1532 | | |
1531 | 1533 | | |
1532 | 1534 | | |
| 1535 | + | |
1533 | 1536 | | |
1534 | 1537 | | |
1535 | 1538 | | |
| |||
1795 | 1798 | | |
1796 | 1799 | | |
1797 | 1800 | | |
| 1801 | + | |
1798 | 1802 | | |
1799 | 1803 | | |
1800 | 1804 | | |
| |||
1917 | 1921 | | |
1918 | 1922 | | |
1919 | 1923 | | |
| 1924 | + | |
1920 | 1925 | | |
1921 | 1926 | | |
1922 | 1927 | | |
| |||
1926 | 1931 | | |
1927 | 1932 | | |
1928 | 1933 | | |
1929 | | - | |
| 1934 | + | |
| 1935 | + | |
1930 | 1936 | | |
1931 | 1937 | | |
1932 | 1938 | | |
| |||
2063 | 2069 | | |
2064 | 2070 | | |
2065 | 2071 | | |
| 2072 | + | |
2066 | 2073 | | |
2067 | 2074 | | |
2068 | 2075 | | |
| |||
2162 | 2169 | | |
2163 | 2170 | | |
2164 | 2171 | | |
| 2172 | + | |
2165 | 2173 | | |
2166 | 2174 | | |
2167 | 2175 | | |
| |||
0 commit comments