Spaces:
Runtime error
Runtime error
Commit
·
ceb3bb4
1
Parent(s):
02dec83
options/Video_model/Model.py
CHANGED
@@ -12,11 +12,11 @@ svd_path = 'stabilityai/stable-video-diffusion-img2vid-xt-1-1'
|
|
12 |
lora_repo_path = 'RED-AIGC/TDD'
|
13 |
lora_weight_name = 'svd-xt-1-1_tdd_lora_weights.safetensors'
|
14 |
|
15 |
-
if torch.cuda.is_available():
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
|
21 |
# @spaces.GPU
|
22 |
def Video(
|
|
|
12 |
lora_repo_path = 'RED-AIGC/TDD'
|
13 |
lora_weight_name = 'svd-xt-1-1_tdd_lora_weights.safetensors'
|
14 |
|
15 |
+
# if torch.cuda.is_available():
|
16 |
+
noise_scheduler = TDDSVDStochasticIterativeScheduler(num_train_timesteps = 250, sigma_min = 0.002, sigma_max = 700.0, sigma_data = 1.0,
|
17 |
+
s_noise = 1.0, rho = 7, clip_denoised = False)
|
18 |
+
pipeline = StableVideoDiffusionPipeline.from_pretrained(svd_path, scheduler = noise_scheduler, torch_dtype = torch.float16, variant = "fp16").to('cuda')
|
19 |
+
load_lora_weights(pipeline.unet, lora_repo_path, weight_name = lora_weight_name)
|
20 |
|
21 |
# @spaces.GPU
|
22 |
def Video(
|
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
|
|