Spaces:
Running
Running
Commit
·
f9b4d00
1
Parent(s):
9c8f470
options/Video_model/Model.py
CHANGED
@@ -49,10 +49,9 @@ def Video(
|
|
49 |
video_path = os.path.join(output_folder, f"{base_count:06d}.mp4")
|
50 |
|
51 |
if isinstance(image, Image.Image):
|
52 |
-
|
53 |
-
image = transform(image).unsqueeze(0).to(device).float()
|
54 |
|
55 |
-
with torch.autocast(device):
|
56 |
frames = pipeline(
|
57 |
image, height = height, width = width,
|
58 |
num_inference_steps = num_inference_steps,
|
|
|
49 |
video_path = os.path.join(output_folder, f"{base_count:06d}.mp4")
|
50 |
|
51 |
if isinstance(image, Image.Image):
|
52 |
+
image = transforms.ToTensor()(image).unsqueeze(0).to(device)
|
|
|
53 |
|
54 |
+
with torch.autocast(device,dtype=torch.float32):
|
55 |
frames = pipeline(
|
56 |
image, height = height, width = width,
|
57 |
num_inference_steps = num_inference_steps,
|
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
|
|