返回 ViMax
main_idea2video.py
根目录 / main_idea2video.py
1 import asyncio
2 from pipelines.idea2video_pipeline import Idea2VideoPipeline
3
4
5 # SET YOUR OWN IDEA, USER REQUIREMENT, AND STYLE HERE
6 idea = \
7 """
8 A beaufitul fit woman with black hair, great butt and thigs is exercising in a
9 gym surrounded by glass windows with a beautiful beach view on the outside.
10 She is performing glute exercises that highlight her beautiful back and sexy outfit
11 and showing the audience the proper form. Between the 3 different exercises she looks
12 at the camera with a gorgeous look asking the viewer understood the proper form.
13 """
14 user_requirement = \
15 """
16 For adults, do not exceed 3 scenes. Each scene should be no more than 5 shots.
17 """
18 style = "Realistic, warm feel"
19
20
21 async def main():
22 pipeline = Idea2VideoPipeline.init_from_config(
23 config_path="configs/idea2video.yaml")
24 await pipeline(idea=idea, user_requirement=user_requirement, style=style)
25
26 if __name__ == "__main__":
27 asyncio.run(main())
28
28 lines PYTHON