ruizhaocv commited on
Commit
fc58c48
1 Parent(s): 34e3297

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -10
app.py CHANGED
@@ -29,12 +29,14 @@ with gr.Blocks() as demo:
29
  </a>
30
  <div>
31
  <h1 >MotionDirector: Motion Customization of Text-to-Video Diffusion Models</h1>
32
- <h5 style="margin: 0;">More MotionDirectors are on the way. Stay tuned 🔥! Give us a star ✨ on Github for the latest update.</h5>
 
33
  </br>
34
  <div style="display: flex; justify-content: center; align-items: center; text-align: center;>
35
- <a href="https://arxiv.org/abs/2310.08465"><img src="https://img.shields.io/badge/arXiv-MotionDirector-b31b1b.svg"></a>&nbsp;&nbsp;
36
- <a href='https://showlab.github.io/MotionDirector'><img src='https://img.shields.io/badge/Project_Page-MotionDirector-green'></a>&nbsp;&nbsp;
37
- <a href='https://github.com/showlab/MotionDirector'><img src='https://img.shields.io/badge/Github-MotionDirector-blue'></a>&nbsp;&nbsp;
 
38
  </div>
39
  </div>
40
  </div>
@@ -82,19 +84,30 @@ with gr.Blocks() as demo:
82
  gr.Examples(
83
  fn=motiondirector,
84
  examples=[
85
- ["1-1: [Cinematic Shots] -- Dolly Zoom (Hitchcockian Zoom)", "A lion sitting on top of a cliff captured with a dolly zoom.", 1675932],
86
- ["1-2: [Cinematic Shots] -- Zoom In", "A firefighter standing in front of a burning forest captured with a zoom in.", 1429227],
87
- ["1-3: [Cinematic Shots] -- Zoom Out", "A lion sitting on top of a cliff captured with a zoom out.", 1767994],
88
- ["2-1: [Object Trajectory] -- Right to Left", "A tank is running on the moon.", 8551187],
 
 
 
 
 
 
 
 
 
 
 
89
  ["2-2: [Object Trajectory] -- Left to Right", "A tiger is running in the forest.", 3463673],
90
  ["3-1: [Sports Concepts] -- Riding Bicycle", "An astronaut is riding a bicycle past the pyramids Mars 4K high quailty highly detailed.", 4422954],
91
  ["3-2: [Sports Concepts] -- Riding Horse", "A man riding an elephant through the jungle.", 6230765],
92
  ["3-3: [Sports Concepts] -- Lifting Weights", "A panda is lifting weights in a garden.", 1699276],
93
- ["3-4: [Sports Concepts] -- Playing Golf", "A man is playing golf in front of the White House.", 8870450],
 
94
  ],
95
  inputs=[model_select, text_pormpt, random_seed],
96
  outputs=generated_video,
97
- # cache_examples=true_for_shared_ui
98
  )
99
 
100
  demo.queue(max_size=15)
 
29
  </a>
30
  <div>
31
  <h1 >MotionDirector: Motion Customization of Text-to-Video Diffusion Models</h1>
32
+ <h5 style="margin: 0;">More MotionDirectors are on the way. Stay tuned 🔥!</h5>
33
+ <h5 style="margin: 0;"> If you like our project, please give us a star ✨ on Github for the latest update.</h5>
34
  </br>
35
  <div style="display: flex; justify-content: center; align-items: center; text-align: center;>
36
+ <a href="https://arxiv.org/abs/2310.08465"></a>
37
+ <a href="https://arxiv.org/abs/2310.08465"><img src="https://img.shields.io/badge/arXiv-2310.08465-b31b1b.svg"></a>&nbsp;&nbsp;
38
+ <a href="https://showlab.github.io/MotionDirector"><img src="https://img.shields.io/badge/Project_Page-MotionDirector-green"></a>&nbsp;&nbsp;
39
+ <a href="https://github.com/showlab/MotionDirector"><img src="https://img.shields.io/badge/Github-Code-blue"></a>&nbsp;&nbsp;
40
  </div>
41
  </div>
42
  </div>
 
84
  gr.Examples(
85
  fn=motiondirector,
86
  examples=[
87
+ ["1-1: [Cinematic Shots] -- Zoom Out", "A spaceman standing on the moon captured with a zoom out.",
88
+ 8323920],
89
+ ["1-2: [Cinematic Shots] -- Zoom In", "A polar bear standing at the top of a snowy mountain captured with a zoom in.", 7938587],
90
+ ["1-3: [Cinematic Shots] -- Dolly Zoom (Hitchcockian Zoom) 1", "A panda standing in front of an ancient Chinese temple captured with a dolly zoom.", 8238823],
91
+ ["1-4: [Cinematic Shots] -- Dolly Zoom (Hitchcockian Zoom) 2", "A lion sitting on top of a cliff captured with a dolly zoom.", 1675932],
92
+ ["1-5: [Cinematic Shots] -- Follow", "A fireman is walking through fire captured with a follow cinematic shot.", 2927089],
93
+ ["1-6: [Cinematic Shots] -- Reverse Follow", "A fireman is walking through fire captured with a reverse follow cinematic shot.", 9759630],
94
+ ["1-7: [Cinematic Shots] -- Chest Transition", "An ancient Roman soldier walks through the crowd on the street captured with a chest transition cinematic shot.", 3982271],
95
+ ["1-8: [Cinematic Shots] -- Mini Jib Reveal",
96
+ "A British Redcoat soldier is walking through the mountains captured with a mini jib reveal cinematic shot.",
97
+ 566917],
98
+ ["1-9: [Cinematic Shots] -- Orbit", "A spaceman on the moon captured with an orbit cinematic shot.", 5899496],
99
+ ["1-10: [Cinematic Shots] -- Pull Back", "A spaceman on the moon looking at a lunar rover captured with a pull back cinematic shot.",
100
+ 5585865],
101
+ ["2-1: [Object Trajectory] -- Right to Left", "A tank is running on the moon.", 2047046],
102
  ["2-2: [Object Trajectory] -- Left to Right", "A tiger is running in the forest.", 3463673],
103
  ["3-1: [Sports Concepts] -- Riding Bicycle", "An astronaut is riding a bicycle past the pyramids Mars 4K high quailty highly detailed.", 4422954],
104
  ["3-2: [Sports Concepts] -- Riding Horse", "A man riding an elephant through the jungle.", 6230765],
105
  ["3-3: [Sports Concepts] -- Lifting Weights", "A panda is lifting weights in a garden.", 1699276],
106
+ ["3-4: [Sports Concepts] -- Playing Golf", "A monkey is playing golf on a field full of flowers.", 4156856],
107
+ ["3-5: [Sports Concepts] -- Skateboarding", "An astronaut is skateboarding on Mars.", 6615212],
108
  ],
109
  inputs=[model_select, text_pormpt, random_seed],
110
  outputs=generated_video,
 
111
  )
112
 
113
  demo.queue(max_size=15)