pragnakalp commited on
Commit
53663f3
·
1 Parent(s): 68487c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -153,15 +153,14 @@ def one_shot_talking(image_in,audio_in):
153
 
154
  #One Shot Talking Face algorithm
155
  result=calculate(image_in,audio_in)
156
- return result
157
- exit()
158
  #Video Quality Improvement
159
 
160
  #1. Extract the frames from the video file using PyVideoFramesExtractor
161
  os.system(f"python /content/PyVideoFramesExtractor/extract.py --video=/content/train/image_pre_audio.mp4")
162
 
163
  #2. Improve image quality using GFPGAN on each frames
164
- os.system(f"python /content/GFPGAN/inference_gfpgan.py --upscale 2 -i /content/extracted_frames/image_pre_audio_frames -o /content/video_results --bg_upsampler realesrgan")
165
 
166
  #3. Merge all the frames to a one video using imageio
167
  merge_frames()
 
153
 
154
  #One Shot Talking Face algorithm
155
  result=calculate(image_in,audio_in)
156
+
 
157
  #Video Quality Improvement
158
 
159
  #1. Extract the frames from the video file using PyVideoFramesExtractor
160
  os.system(f"python /content/PyVideoFramesExtractor/extract.py --video=/content/train/image_pre_audio.mp4")
161
 
162
  #2. Improve image quality using GFPGAN on each frames
163
+ os.system(f"python /content/GFPGAN/inference_gfpgan.py --upscale 2 -i /content/extracted_frames/ -o /content/video_results --bg_upsampler realesrgan")
164
 
165
  #3. Merge all the frames to a one video using imageio
166
  merge_frames()