Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,9 @@ login(token=token)
|
|
17 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
18 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1")
|
19 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
20 |
-
pipe.enable_xformers_memory_efficient_attention()
|
21 |
pipe = pipe.to(device)
|
|
|
|
|
22 |
max_64_bit_int = 2**63 - 1
|
23 |
|
24 |
def sample(
|
|
|
17 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
18 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-video-diffusion-img2vid-xt-1-1")
|
19 |
#pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
|
|
20 |
pipe = pipe.to(device)
|
21 |
+
pipe.enable_xformers_memory_efficient_attention()
|
22 |
+
|
23 |
max_64_bit_int = 2**63 - 1
|
24 |
|
25 |
def sample(
|