Spaces:
Running
on
Zero
Running
on
Zero
File size: 664 Bytes
2d9a728 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import os
from pathlib import Path
VIDEO_PATH = Path(os.path.abspath('')) / 'assets' / 'video_samples'
class Text2Video():
def __init__(self, result_dir='./tmp/') -> None:
pass
def get_prompt(self, input_text, steps=50, cfg_scale=15.0, eta=1.0, fps=16):
return str(VIDEO_PATH / 'headstand.mp4')
class Video2Video:
def __init__(self, result_dir='./tmp/') -> None:
pass
def get_image(self, input_image, input_prompt, i2v_steps=50, i2v_cfg_scale=15.0, i2v_eta=1.0, i2v_fps=16):
return str(VIDEO_PATH / 'dancing.mp4')
if __name__ == '__main__':
t2v = Text2Video()
print(t2v.get_prompt('test')) |