Skip to content

Commit 94b27fb

Browse files
authored
change the sample model (#1352)
* Update alt_diffusion.mdx * Update alt_diffusion.mdx
1 parent ab1f01e commit 94b27fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/source/api/pipelines/alt_diffusion.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The abstract of the paper is the following:
3232

3333
- *Run AltDiffusion*
3434

35-
AltDiffusion can be tested very easily with the [`AltDiffusionPipeline`], [`AltDiffusionImg2ImgPipeline`] and the `"BAAI/AltDiffusion"` checkpoint exactly in the same way it is shown in the [Conditional Image Generation Guide](./using-diffusers/conditional_image_generation) and the [Image-to-Image Generation Guide](./using-diffusers/img2img).
35+
AltDiffusion can be tested very easily with the [`AltDiffusionPipeline`], [`AltDiffusionImg2ImgPipeline`] and the `"BAAI/AltDiffusion-m9"` checkpoint exactly in the same way it is shown in the [Conditional Image Generation Guide](./using-diffusers/conditional_image_generation) and the [Image-to-Image Generation Guide](./using-diffusers/img2img).
3636

3737
- *How to load and use different schedulers.*
3838

@@ -42,12 +42,12 @@ To use a different scheduler, you can either change it via the [`ConfigMixin.fro
4242
```python
4343
>>> from diffusers import AltDiffusionPipeline, EulerDiscreteScheduler
4444

45-
>>> pipeline = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
45+
>>> pipeline = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion-m9")
4646
>>> pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)
4747
4848
>>> # or
49-
>>> euler_scheduler = EulerDiscreteScheduler.from_pretrained("BAAI/AltDiffusion", subfolder="scheduler")
50-
>>> pipeline = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion", scheduler=euler_scheduler)
49+
>>> euler_scheduler = EulerDiscreteScheduler.from_pretrained("BAAI/AltDiffusion-m9", subfolder="scheduler")
50+
>>> pipeline = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion-m9", scheduler=euler_scheduler)
5151
```
5252
5353
@@ -61,7 +61,7 @@ If you want to use all possible use cases in a single `DiffusionPipeline` we rec
6161
... AltDiffusionImg2ImgPipeline,
6262
... )
6363
64-
>>> text2img = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion")
64+
>>> text2img = AltDiffusionPipeline.from_pretrained("BAAI/AltDiffusion-m9")
6565
>>> img2img = AltDiffusionImg2ImgPipeline(**text2img.components)
6666
6767
>>> # now you can use text2img(...) and img2img(...) just like the call methods of each respective pipeline

0 commit comments

Comments
 (0)