@@ -68,7 +68,7 @@ scheduler = DDIMScheduler.from_pretrained(
6868pipe.scheduler = scheduler
6969
7070# enable memory savings
71- pipe.enable_vae_slicing ()
71+ pipe.vae.enable_slicing ()
7272pipe.enable_model_cpu_offload()
7373
7474output = pipe(
@@ -395,8 +395,8 @@ pipe = AnimateDiffSDXLPipeline.from_pretrained(
395395).to(" cuda" )
396396
397397# enable memory savings
398- pipe.enable_vae_slicing ()
399- pipe.enable_vae_tiling ()
398+ pipe.vae.enable_slicing ()
399+ pipe.vae.enable_tiling ()
400400
401401output = pipe(
402402 prompt = " a panda surfing in the ocean, realistic, high quality" ,
@@ -441,7 +441,7 @@ scheduler = DDIMScheduler.from_pretrained(
441441pipe.scheduler = scheduler
442442
443443# enable memory savings
444- pipe.enable_vae_slicing ()
444+ pipe.vae.enable_slicing ()
445445pipe.enable_model_cpu_offload()
446446
447447# helper function to load videos
@@ -640,7 +640,7 @@ scheduler = DDIMScheduler.from_pretrained(
640640pipe.scheduler = scheduler
641641
642642# enable memory savings
643- pipe.enable_vae_slicing ()
643+ pipe.vae.enable_slicing ()
644644pipe.enable_model_cpu_offload()
645645
646646output = pipe(
@@ -714,7 +714,7 @@ scheduler = DDIMScheduler.from_pretrained(
714714pipe.scheduler = scheduler
715715
716716# enable memory savings
717- pipe.enable_vae_slicing ()
717+ pipe.vae.enable_slicing ()
718718pipe.enable_model_cpu_offload()
719719
720720output = pipe(
@@ -772,8 +772,8 @@ pipe.scheduler = DDIMScheduler.from_pretrained(
772772)
773773
774774# enable memory savings
775- pipe.enable_vae_slicing ()
776- pipe.enable_vae_tiling ()
775+ pipe.vae.enable_slicing ()
776+ pipe.vae.enable_tiling ()
777777
778778# enable FreeInit
779779# Refer to the enable_free_init documentation for a full list of configurable parameters
@@ -840,7 +840,7 @@ pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config, beta_schedule="
840840
841841pipe.load_lora_weights(" wangfuyun/AnimateLCM" , weight_name = " sd15_lora_beta.safetensors" , adapter_name = " lcm-lora" )
842842
843- pipe.enable_vae_slicing ()
843+ pipe.vae.enable_slicing ()
844844pipe.enable_model_cpu_offload()
845845
846846output = pipe(
@@ -882,7 +882,7 @@ pipe.load_lora_weights("wangfuyun/AnimateLCM", weight_name="sd15_lora_beta.safet
882882pipe.load_lora_weights(" guoyww/animatediff-motion-lora-tilt-up" , adapter_name = " tilt-up" )
883883
884884pipe.set_adapters([" lcm-lora" , " tilt-up" ], [1.0 , 0.8 ])
885- pipe.enable_vae_slicing ()
885+ pipe.vae.enable_slicing ()
886886pipe.enable_model_cpu_offload()
887887
888888output = pipe(
0 commit comments