[docs] AnimateDiff Video-to-Video (#6712)

* add animatediff vid2vid to docs

* Update docs/source/en/api/pipelines/animatediff.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* apply suggestions from review

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
This commit is contained in:
Aryan V S
2024-01-26 07:21:43 +05:30
committed by GitHub
parent 3e9716f22b
commit 9e72016468
+7 -9
View File
@@ -118,7 +118,7 @@ from PIL import Image
adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-2", torch_dtype=torch.float16) adapter = MotionAdapter.from_pretrained("guoyww/animatediff-motion-adapter-v1-5-2", torch_dtype=torch.float16)
# load SD 1.5 based finetuned model # load SD 1.5 based finetuned model
model_id = "SG161222/Realistic_Vision_V5.1_noVAE" model_id = "SG161222/Realistic_Vision_V5.1_noVAE"
pipe = AnimateDiffVideoToVideoPipeline.from_pretrained(model_id, motion_adapter=adapter, torch_dtype=torch.float16) pipe = AnimateDiffVideoToVideoPipeline.from_pretrained(model_id, motion_adapter=adapter, torch_dtype=torch.float16).to("cuda")
scheduler = DDIMScheduler.from_pretrained( scheduler = DDIMScheduler.from_pretrained(
model_id, model_id,
subfolder="scheduler", subfolder="scheduler",
@@ -413,14 +413,12 @@ Make sure to check out the Schedulers [guide](../../using-diffusers/schedulers)
[[autodoc]] AnimateDiffPipeline [[autodoc]] AnimateDiffPipeline
- all - all
- __call__ - __call__
- enable_freeu
- disable_freeu ## AnimateDiffVideoToVideoPipeline
- enable_free_init
- disable_free_init [[autodoc]] AnimateDiffVideoToVideoPipeline
- enable_vae_slicing - all
- disable_vae_slicing - __call__
- enable_vae_tiling
- disable_vae_tiling
## AnimateDiffPipelineOutput ## AnimateDiffPipelineOutput