cleardusk commited on
Commit
c6533ed
1 Parent(s): 3ce1c1a

chore: update note

Browse files
assets/gradio_description_upload.md CHANGED
@@ -15,6 +15,9 @@
15
  <div style="display: inline-block;">
16
  Step 1: Upload a <strong>Source Portrait</strong> (any aspect ratio) ⬇️
17
  </div>
 
 
 
18
  </div>
19
  <div style="flex: 1; text-align: center; margin-left: 20px;">
20
  <div style="display: inline-block;">
 
15
  <div style="display: inline-block;">
16
  Step 1: Upload a <strong>Source Portrait</strong> (any aspect ratio) ⬇️
17
  </div>
18
+ <div style="display: inline-block; font-size: 0.8em;">
19
+ <strong>Note:</strong> To upload a Source Video, build Gradio locally. Instructions <a href="https://github.com/KwaiVGI/LivePortrait?tab=readme-ov-file#4-gradio-interface-"><strong>here</strong></a>.
20
+ </div>
21
  </div>
22
  <div style="flex: 1; text-align: center; margin-left: 20px;">
23
  <div style="display: inline-block;">
video2template.py DELETED
@@ -1,37 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- [WIP] Pipeline for video template preparation
5
- """
6
-
7
- import tyro
8
- from src.config.crop_config import CropConfig
9
- from src.config.inference_config import InferenceConfig
10
- from src.config.argument_config import ArgumentConfig
11
- from src.template_maker import TemplateMaker
12
-
13
-
14
- def partial_fields(target_class, kwargs):
15
- return target_class(**{k: v for k, v in kwargs.items() if hasattr(target_class, k)})
16
-
17
-
18
- def main():
19
- # set tyro theme
20
- tyro.extras.set_accent_color("bright_cyan")
21
- args = tyro.cli(ArgumentConfig)
22
-
23
- # specify configs for inference
24
- inference_cfg = partial_fields(InferenceConfig, args.__dict__) # use attribute of args to initial InferenceConfig
25
- crop_cfg = partial_fields(CropConfig, args.__dict__) # use attribute of args to initial CropConfig
26
-
27
- video_template_maker = TemplateMaker(
28
- inference_cfg=inference_cfg,
29
- crop_cfg=crop_cfg
30
- )
31
-
32
- # run
33
- video_template_maker.make_motion_template(args.driving_video_path, args.template_output_dir)
34
-
35
-
36
- if __name__ == '__main__':
37
- main()