xiaozhongji commited on
Commit
21debb3
·
1 Parent(s): 5d4d2b0
Files changed (2) hide show
  1. app.py +1 -1
  2. config/inference/sonic.yaml +1 -1
app.py CHANGED
@@ -22,6 +22,7 @@ def get_md5(content):
22
  md5 = md5hash.hexdigest()
23
  return md5
24
 
 
25
  def get_video_res(img_path, audio_path, res_video_path, dynamic_scale=1.0):
26
 
27
  expand_ratio = 0.5
@@ -43,7 +44,6 @@ res_path = './res_path/'
43
  os.makedirs(tmp_path,exist_ok=1)
44
  os.makedirs(res_path,exist_ok=1)
45
 
46
- @spaces.GPU
47
  def process_sonic(image,audio,s0):
48
  img_md5= get_md5(np.array(image))
49
  audio_md5 = get_md5(audio[1])
 
22
  md5 = md5hash.hexdigest()
23
  return md5
24
 
25
+ @spaces.GPU
26
  def get_video_res(img_path, audio_path, res_video_path, dynamic_scale=1.0):
27
 
28
  expand_ratio = 0.5
 
44
  os.makedirs(tmp_path,exist_ok=1)
45
  os.makedirs(res_path,exist_ok=1)
46
 
 
47
  def process_sonic(image,audio,s0):
48
  img_md5= get_md5(np.array(image))
49
  audio_md5 = get_md5(audio[1])
config/inference/sonic.yaml CHANGED
@@ -12,7 +12,7 @@ decode_chunk_size: 8
12
  motion_bucket_scale: 1.0
13
  image_size: 512
14
  area: 1.1
15
- frame_num: 10000
16
  step: 2
17
  overlap: 0
18
  shift_offset: 7
 
12
  motion_bucket_scale: 1.0
13
  image_size: 512
14
  area: 1.1
15
+ frame_num: 100
16
  step: 2
17
  overlap: 0
18
  shift_offset: 7