mayuema commited on
Commit
097f543
1 Parent(s): a4a66f8
Files changed (3) hide show
  1. app.py +9 -0
  2. example.py +5 -5
  3. example_video.zip +3 -0
app.py CHANGED
@@ -8,13 +8,22 @@ import gradio as gr
8
 
9
  from inference_followyourpose import merge_config_then_run
10
  import sys
 
11
  sys.path.append('FollowYourPose')
12
 
13
 
14
  current_dir = os.getcwd()
15
  print("path is :", current_dir)
 
16
  print("dir i :", os.listdir(os.path.join(current_dir,'data')))
17
 
 
 
 
 
 
 
 
18
  HF_TOKEN = os.getenv('HF_TOKEN')
19
  pipe = merge_config_then_run()
20
 
 
8
 
9
  from inference_followyourpose import merge_config_then_run
10
  import sys
11
+ import subprocess
12
  sys.path.append('FollowYourPose')
13
 
14
 
15
  current_dir = os.getcwd()
16
  print("path is :", current_dir)
17
+ print("current_dir i :", os.listdir(current_dir,'data'))
18
  print("dir i :", os.listdir(os.path.join(current_dir,'data')))
19
 
20
+
21
+ # /home/user/app/data/download.sh
22
+
23
+ result = subprocess.run(['bash', './data/download.sh'], stdout=subprocess.PIPE)
24
+ result.stdout.decode()
25
+
26
+
27
  HF_TOKEN = os.getenv('HF_TOKEN')
28
  pipe = merge_config_then_run()
29
 
example.py CHANGED
@@ -4,7 +4,7 @@ sys.path.append('FollowYourPose')
4
  num_steps = 30
5
  style_example = [
6
  [
7
- "./data/dancing_example_1.mp4",
8
  "Iron man in the beach",
9
  50,
10
  12,
@@ -12,7 +12,7 @@ style_example = [
12
  8,1,0,0,0,0
13
  ],
14
  [
15
- ".data/dancing_example_2.mp4",
16
  "A man in the beach, Van Gogh style",
17
  50,
18
  12,
@@ -20,7 +20,7 @@ style_example = [
20
  8,1,0,0,0,0
21
  ],
22
  [
23
- "./data/dancing_example_3.mp4",
24
  "Astronauts on the moon",
25
  50,
26
  12,
@@ -28,7 +28,7 @@ style_example = [
28
  8,1,0,0,0,0
29
  ],
30
  [
31
- "./data/dancing_example_4.mp4",
32
  "Superman on the forest",
33
  50,
34
  12,
@@ -36,7 +36,7 @@ style_example = [
36
  8,1,0,0,0,0
37
  ],
38
  [
39
- "./data/dancing_example_5.mp4",
40
  "Hulk on the sea",
41
  50,
42
  12,
 
4
  num_steps = 30
5
  style_example = [
6
  [
7
+ "./data/example_video/dancing_example_1.mp4",
8
  "Iron man in the beach",
9
  50,
10
  12,
 
12
  8,1,0,0,0,0
13
  ],
14
  [
15
+ ".data/example_video/dancing_example_2.mp4",
16
  "A man in the beach, Van Gogh style",
17
  50,
18
  12,
 
20
  8,1,0,0,0,0
21
  ],
22
  [
23
+ "./data/example_video/dancing_example_3.mp4",
24
  "Astronauts on the moon",
25
  50,
26
  12,
 
28
  8,1,0,0,0,0
29
  ],
30
  [
31
+ "./data/example_video/dancing_example_4.mp4",
32
  "Superman on the forest",
33
  50,
34
  12,
 
36
  8,1,0,0,0,0
37
  ],
38
  [
39
+ "./data/example_video/dancing_example_5.mp4",
40
  "Hulk on the sea",
41
  50,
42
  12,
example_video.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c411ee855e2c481da8ff93f480a346d41b4eee725ce741f96e657b990e1c89a
3
+ size 3885478