mirror of
https://github.com/Laurent2916/Diffusers.jl.git
synced 2024-11-09 15:02:02 +00:00
🩹 (BetaSchedules) fix plotlyJS display, set prettyurl to true and savefig in folder
This commit is contained in:
parent
234183b459
commit
de5b6b4b3a
|
@ -3,4 +3,3 @@ Diffusers = "90edb7a8-79d7-49b2-b6b1-9322c3fdead8"
|
||||||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
|
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
|
||||||
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
|
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
|
||||||
PlotlyJS = "f0f68f2c-4968-5e81-91da-67840de0976a"
|
PlotlyJS = "f0f68f2c-4968-5e81-91da-67840de0976a"
|
||||||
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using Diffusers
|
using Diffusers
|
||||||
using Documenter
|
using Documenter
|
||||||
using Plots
|
|
||||||
|
|
||||||
DocMeta.setdocmeta!(Diffusers, :DocTestSetup, :(using Diffusers); recursive=true)
|
DocMeta.setdocmeta!(Diffusers, :DocTestSetup, :(using Diffusers); recursive=true)
|
||||||
|
|
||||||
|
@ -10,7 +9,7 @@ makedocs(;
|
||||||
repo="https://github.com/Laurent2916/Diffusers.jl/blob/{commit}{path}#{line}",
|
repo="https://github.com/Laurent2916/Diffusers.jl/blob/{commit}{path}#{line}",
|
||||||
sitename="Diffusers.jl",
|
sitename="Diffusers.jl",
|
||||||
format=Documenter.HTML(;
|
format=Documenter.HTML(;
|
||||||
prettyurls=get(ENV, "CI", "false") == "true",
|
prettyurls=true,
|
||||||
edit_link="main",
|
edit_link="main",
|
||||||
assets=String[]
|
assets=String[]
|
||||||
),
|
),
|
||||||
|
|
|
@ -52,8 +52,6 @@ p1 = plot(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
savefig(p1, "fig_beta_schedules.html")
|
|
||||||
|
|
||||||
p2 = plot(
|
p2 = plot(
|
||||||
[
|
[
|
||||||
scatter(y=α̅_linear, name="Linear"),
|
scatter(y=α̅_linear, name="Linear"),
|
||||||
|
@ -89,14 +87,15 @@ p2 = plot(
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
savefig(p2, "fig_alpha_bar_schedules.html")
|
mkpath("beta_schedules")
|
||||||
|
savefig(p1, "beta_schedules/beta_schedules.html")
|
||||||
|
savefig(p2, "beta_schedules/alpha_bar_schedules.html")
|
||||||
nothing
|
nothing
|
||||||
```
|
```
|
||||||
|
|
||||||
```@raw html
|
```@raw html
|
||||||
<object type="text/html" data="../fig_beta_schedules.html" style="width:100%;height:420px;"></object>
|
<object type="text/html" data="beta_schedules.html" style="width:100%;height:420px;"></object>
|
||||||
<object type="text/html" data="../fig_alpha_bar_schedules.html" style="width:100%;height:420px;"></object>
|
<object type="text/html" data="alpha_bar_schedules.html" style="width:100%;height:420px;"></object>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue