sxela commited on
Commit
4326472
1 Parent(s): e618b8f

add frame lerp

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -114,6 +114,7 @@ def inference_step(vid, start_sec, duration, out_fps):
114
  output = (output * stds + norms).clip(0, 1) * 255.
115
 
116
  output_video = output.permute(0, 2, 3, 1).float().detach().cpu().numpy()
 
117
 
118
  return output_video, audio_arr, out_fps, audio_fps
119
 
@@ -161,7 +162,7 @@ gr.Interface(
161
  inputs=[gr.inputs.Video(), gr.inputs.Slider(minimum=0, maximum=300, step=1, default=0), gr.inputs.Slider(minimum=1, maximum=10, step=1, default=2), gr.inputs.Slider(minimum=12, maximum=30, step=6, default=24)],
162
  outputs=gr.outputs.Video(),
163
  title='ArcaneGAN On Videos',
164
- description="Applying ArcaneGAN to frame from video clips",
165
  article = article,
166
  enable_queue=True,
167
  examples=[
 
114
  output = (output * stds + norms).clip(0, 1) * 255.
115
 
116
  output_video = output.permute(0, 2, 3, 1).float().detach().cpu().numpy()
117
+ output_video[1:] = output_video[1:]*(0.5) + output_video[:-1]*(0.5)
118
 
119
  return output_video, audio_arr, out_fps, audio_fps
120
 
 
162
  inputs=[gr.inputs.Video(), gr.inputs.Slider(minimum=0, maximum=300, step=1, default=0), gr.inputs.Slider(minimum=1, maximum=10, step=1, default=2), gr.inputs.Slider(minimum=12, maximum=30, step=6, default=24)],
163
  outputs=gr.outputs.Video(),
164
  title='ArcaneGAN On Videos',
165
+ description = description,
166
  article = article,
167
  enable_queue=True,
168
  examples=[