mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-21 13:48:46 +00:00
fix formatting in docs
This commit is contained in:
parent
2fc93cb334
commit
8aa1d9d91d
|
@ -43,11 +43,13 @@ class FrankenSolver(Solver):
|
||||||
"""Lets you use Diffusers Schedulers as Refiners Solvers.
|
"""Lets you use Diffusers Schedulers as Refiners Solvers.
|
||||||
|
|
||||||
For instance:
|
For instance:
|
||||||
|
```py
|
||||||
from diffusers import EulerDiscreteScheduler
|
from diffusers import EulerDiscreteScheduler
|
||||||
from refiners.foundationals.latent_diffusion.solvers import FrankenSolver
|
from refiners.foundationals.latent_diffusion.solvers import FrankenSolver
|
||||||
|
|
||||||
scheduler = EulerDiscreteScheduler(...)
|
scheduler = EulerDiscreteScheduler(...)
|
||||||
solver = FrankenSolver(lambda: scheduler, num_inference_steps=steps)
|
solver = FrankenSolver(lambda: scheduler, num_inference_steps=steps)
|
||||||
|
```
|
||||||
"""
|
"""
|
||||||
|
|
||||||
default_params = dataclasses.replace(
|
default_params = dataclasses.replace(
|
||||||
|
|
Loading…
Reference in a new issue