Commit 57e57cf
Store vae.config.scaling_factor to prevent missing attr reference (sdxl advanced dreambooth training script) (#12346)
Store vae.config.scaling_factor to prevent missing attr reference
In sdxl advanced dreambooth training script
vae.config.scaling_factor becomes inaccessible after: del vae
when: --cache_latents, and no --validation_prompt
Co-authored-by: Teriks <Teriks@users.noreply.github.com>
Co-authored-by: Linoy Tsaban <57615435+linoytsaban@users.noreply.github.com>
Co-authored-by: YiYi Xu <yixu310@gmail.com>1 parent 6441694 commit 57e57cf
1 file changed
Lines changed: 6 additions & 2 deletions
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1929 | 1929 | | |
1930 | 1930 | | |
1931 | 1931 | | |
| 1932 | + | |
| 1933 | + | |
1932 | 1934 | | |
1933 | 1935 | | |
1934 | 1936 | | |
| |||
1940 | 1942 | | |
1941 | 1943 | | |
1942 | 1944 | | |
| 1945 | + | |
| 1946 | + | |
1943 | 1947 | | |
1944 | 1948 | | |
1945 | 1949 | | |
| |||
2109 | 2113 | | |
2110 | 2114 | | |
2111 | 2115 | | |
2112 | | - | |
| 2116 | + | |
2113 | 2117 | | |
2114 | 2118 | | |
2115 | 2119 | | |
2116 | 2120 | | |
2117 | 2121 | | |
2118 | | - | |
| 2122 | + | |
2119 | 2123 | | |
2120 | 2124 | | |
2121 | 2125 | | |
| |||
0 commit comments