diff --git a/docs/en/conf.py b/docs/en/conf.py index 6f8d74a..2005124 100644 --- a/docs/en/conf.py +++ b/docs/en/conf.py @@ -48,9 +48,10 @@ extensions = [ 'sphinx.ext.viewcode', 'sphinx_markdown_tables', 'sphinx_copybutton', + "sphinx_rtd_theme", + 'sphinx.ext.mathjax', 'myst_parser', ] - # build the templated autosummary files autosummary_generate = True numpydoc_show_class_members = False diff --git a/docs/requirements.txt b/docs/requirements.txt index c2e44a1..e002209 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -4,6 +4,8 @@ recommonmark sphinx>=5.3.0 sphinx-book-theme sphinx-copybutton +sphinx-autobuild sphinx-rtd-theme sphinx_markdown_tables -sphinxcontrib-mermaid \ No newline at end of file +sphinxcontrib-mermaid +pymdown-extensions \ No newline at end of file diff --git a/docs/zh/Training/Understanding_Diffusion_models.md b/docs/zh/Training/Understanding_Diffusion_models.md index f6d45c5..1ac1423 100644 --- a/docs/zh/Training/Understanding_Diffusion_models.md +++ b/docs/zh/Training/Understanding_Diffusion_models.md @@ -43,6 +43,7 @@ Diffusion 模型通过多步迭代式地去噪(denoise)生成清晰的图像 而模型的输出 $\hat \epsilon(x_t,c,t)$,则近似地等于 $x_T-x_0$,也就是整个扩散过程(去噪过程的反向过程)的方向。 接下来我们分析一步迭代中发生的计算,在时间步 $t$,模型通过计算得到近似的 $x_T-x_0$ 后,我们计算下一步的 $x_{t-1}$: + $$ \begin{aligned} 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 \end{aligned} $$ + 完美!与时间步 $t-1$ 时的噪声含量定义完美契合。 > (这部分可能有点难懂,请不必担心,首次阅读本文时建议跳过这部分,不影响后文的阅读。) diff --git a/docs/zh/conf.py b/docs/zh/conf.py index 2d12beb..6c5ec30 100644 --- a/docs/zh/conf.py +++ b/docs/zh/conf.py @@ -48,9 +48,10 @@ extensions = [ 'sphinx.ext.viewcode', 'sphinx_markdown_tables', 'sphinx_copybutton', + "sphinx_rtd_theme", + 'sphinx.ext.mathjax', 'myst_parser', ] - # build the templated autosummary files autosummary_generate = True numpydoc_show_class_members = False