Spaces:
Running
Running
Commit
·
1b418ed
1
Parent(s):
0056a56
options/Video_model/Model.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import spaces
|
2 |
import torch
|
3 |
from diffusers import StableVideoDiffusionPipeline
|
4 |
from diffusers.utils import load_image
|
@@ -16,7 +16,7 @@ if torch.cuda.is_available():
|
|
16 |
pipeline = StableVideoDiffusionPipeline.from_pretrained(svd_path, scheduler = noise_scheduler, torch_dtype = torch.float16, variant = "fp16").to('cuda')
|
17 |
load_lora_weights(pipeline.unet, lora_repo_path, weight_name = lora_weight_name)
|
18 |
|
19 |
-
@spaces.GPU
|
20 |
def Video(
|
21 |
image: Image,
|
22 |
seed: Optional[int] = 1,
|
|
|
1 |
+
# import spaces
|
2 |
import torch
|
3 |
from diffusers import StableVideoDiffusionPipeline
|
4 |
from diffusers.utils import load_image
|
|
|
16 |
pipeline = StableVideoDiffusionPipeline.from_pretrained(svd_path, scheduler = noise_scheduler, torch_dtype = torch.float16, variant = "fp16").to('cuda')
|
17 |
load_lora_weights(pipeline.unet, lora_repo_path, weight_name = lora_weight_name)
|
18 |
|
19 |
+
# @spaces.GPU
|
20 |
def Video(
|
21 |
image: Image,
|
22 |
seed: Optional[int] = 1,
|
options/Video_model/__pycache__/Model.cpython-310.pyc
CHANGED
Binary files a/options/Video_model/__pycache__/Model.cpython-310.pyc and b/options/Video_model/__pycache__/Model.cpython-310.pyc differ
|
|