Spaces:
Runtime error
Runtime error
Update app.py
Browse files4 unmodified lines5678910114 unmodified lines# Load the StableVideoDiffusionPipeline with optimizations for lower memory usagepipe = StableVideoDiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt",torch_dtype=torch.float16, # Use float16 for lower memory usagelow_cpu_mem_usage=True # Reduce CPU memory usage)pipe.enable_attention_slicing() # Enable memory-efficient attention4 unmodified lines5678910114 unmodified lines# Load the StableVideoDiffusionPipeline with optimizations for lower memory usagepipe = StableVideoDiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt",torch_dtype=torch.float32, # Use float32 since float16 is not supported on CPUlow_cpu_mem_usage=True # Reduce CPU memory usage)pipe.enable_attention_slicing() # Enable memory-efficient attention
app.py+1-1