mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-23 17:38:10 +00:00
@@ -48,9 +48,10 @@ extensions = [
|
|||||||
'sphinx.ext.viewcode',
|
'sphinx.ext.viewcode',
|
||||||
'sphinx_markdown_tables',
|
'sphinx_markdown_tables',
|
||||||
'sphinx_copybutton',
|
'sphinx_copybutton',
|
||||||
|
"sphinx_rtd_theme",
|
||||||
|
'sphinx.ext.mathjax',
|
||||||
'myst_parser',
|
'myst_parser',
|
||||||
]
|
]
|
||||||
|
|
||||||
# build the templated autosummary files
|
# build the templated autosummary files
|
||||||
autosummary_generate = True
|
autosummary_generate = True
|
||||||
numpydoc_show_class_members = False
|
numpydoc_show_class_members = False
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ recommonmark
|
|||||||
sphinx>=5.3.0
|
sphinx>=5.3.0
|
||||||
sphinx-book-theme
|
sphinx-book-theme
|
||||||
sphinx-copybutton
|
sphinx-copybutton
|
||||||
|
sphinx-autobuild
|
||||||
sphinx-rtd-theme
|
sphinx-rtd-theme
|
||||||
sphinx_markdown_tables
|
sphinx_markdown_tables
|
||||||
sphinxcontrib-mermaid
|
sphinxcontrib-mermaid
|
||||||
|
pymdown-extensions
|
||||||
@@ -43,6 +43,7 @@ Diffusion 模型通过多步迭代式地去噪(denoise)生成清晰的图像
|
|||||||
而模型的输出 $\hat \epsilon(x_t,c,t)$,则近似地等于 $x_T-x_0$,也就是整个扩散过程(去噪过程的反向过程)的方向。
|
而模型的输出 $\hat \epsilon(x_t,c,t)$,则近似地等于 $x_T-x_0$,也就是整个扩散过程(去噪过程的反向过程)的方向。
|
||||||
|
|
||||||
接下来我们分析一步迭代中发生的计算,在时间步 $t$,模型通过计算得到近似的 $x_T-x_0$ 后,我们计算下一步的 $x_{t-1}$:
|
接下来我们分析一步迭代中发生的计算,在时间步 $t$,模型通过计算得到近似的 $x_T-x_0$ 后,我们计算下一步的 $x_{t-1}$:
|
||||||
|
|
||||||
$$
|
$$
|
||||||
\begin{aligned}
|
\begin{aligned}
|
||||||
x_{t-1}&=x_t + (\sigma_{t-1} - \sigma_t) \cdot \hat \epsilon(x_t,c,t)\\
|
x_{t-1}&=x_t + (\sigma_{t-1} - \sigma_t) \cdot \hat \epsilon(x_t,c,t)\\
|
||||||
@@ -51,6 +52,7 @@ x_{t-1}&=x_t + (\sigma_{t-1} - \sigma_t) \cdot \hat \epsilon(x_t,c,t)\\
|
|||||||
&=(1-\sigma_{t-1})x_0+\sigma_{t-1}x_T
|
&=(1-\sigma_{t-1})x_0+\sigma_{t-1}x_T
|
||||||
\end{aligned}
|
\end{aligned}
|
||||||
$$
|
$$
|
||||||
|
|
||||||
完美!与时间步 $t-1$ 时的噪声含量定义完美契合。
|
完美!与时间步 $t-1$ 时的噪声含量定义完美契合。
|
||||||
|
|
||||||
> (这部分可能有点难懂,请不必担心,首次阅读本文时建议跳过这部分,不影响后文的阅读。)
|
> (这部分可能有点难懂,请不必担心,首次阅读本文时建议跳过这部分,不影响后文的阅读。)
|
||||||
|
|||||||
@@ -48,9 +48,10 @@ extensions = [
|
|||||||
'sphinx.ext.viewcode',
|
'sphinx.ext.viewcode',
|
||||||
'sphinx_markdown_tables',
|
'sphinx_markdown_tables',
|
||||||
'sphinx_copybutton',
|
'sphinx_copybutton',
|
||||||
|
"sphinx_rtd_theme",
|
||||||
|
'sphinx.ext.mathjax',
|
||||||
'myst_parser',
|
'myst_parser',
|
||||||
]
|
]
|
||||||
|
|
||||||
# build the templated autosummary files
|
# build the templated autosummary files
|
||||||
autosummary_generate = True
|
autosummary_generate = True
|
||||||
numpydoc_show_class_members = False
|
numpydoc_show_class_members = False
|
||||||
|
|||||||
Reference in New Issue
Block a user