jbilcke-hf HF staff commited on
Commit
0e79ca6
·
verified ·
1 Parent(s): 1fd04e8

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -177,7 +177,8 @@ class EndpointHandler:
177
 
178
  # Process video with Varnish
179
  result = await self.varnish(
180
- input_data=frames,
 
181
  double_num_frames=config.double_num_frames, # if True, the number of frames will be multiplied by 2 using RIFE
182
  super_resolution=config.grain_amount_config, # if True, the resolution will be multiplied by 2 using Real_ESRGAN
183
  grain_amount_config.grain_amount,
@@ -188,7 +189,6 @@ class EndpointHandler:
188
  type="data-uri",
189
  format="mp4",
190
  codec="h264",
191
- fps=config.fps,
192
  quality=23
193
  )
194
 
 
177
 
178
  # Process video with Varnish
179
  result = await self.varnish(
180
+ input_data=frames, # note: this might contain a certain number of frames eg. 97, which will get doubled if double_num_frames is True
181
+ fps=config.fps, # this is the FPS of the final output video. This number can be used by Varnish to calculate the duration of a clip ((using frames * factor) / fps etc)
182
  double_num_frames=config.double_num_frames, # if True, the number of frames will be multiplied by 2 using RIFE
183
  super_resolution=config.grain_amount_config, # if True, the resolution will be multiplied by 2 using Real_ESRGAN
184
  grain_amount_config.grain_amount,
 
189
  type="data-uri",
190
  format="mp4",
191
  codec="h264",
 
192
  quality=23
193
  )
194