jbilcke-hf HF staff commited on
Commit
017b989
1 Parent(s): f68983c

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +6 -6
handler.py CHANGED
@@ -24,7 +24,7 @@ logger = logging.getLogger(__name__)
24
  # Constraints
25
  MAX_LARGE_SIDE = 1280
26
  MAX_SMALL_SIDE = 720
27
- MAX_FRAMES = (8 x 21) + 1 # visual glitches appear after about 169 frames, so we cap it
28
 
29
  # this is only a temporary solution (famous last words)
30
  def apply_dirty_hack_to_patch_file_extensions_and_bypass_filter(directory):
@@ -86,18 +86,18 @@ class GenerationConfig:
86
  # visual glitches appear after about 169 frames, so we don't need more actually
87
  num_frames: int = (8 * 14) + 1
88
 
89
- guidance_scale: float = 7.5
90
- num_inference_steps: int = 50
91
 
92
  # reproducible generation settings
93
  seed: int = -1 # -1 means random seed
94
 
95
  # varnish settings (will be used for post-processing after the raw video clip has been generated
96
  fps: int = 30 # FPS of the final video (only applied at the the very end, when converting to mp4)
97
- double_num_frames: bool = True # if True, the number of frames will be multiplied by 2 using RIFE
98
- super_resolution: bool = True # if True, the resolution will be multiplied by 2 using Real_ESRGAN
99
 
100
- grain_amount: float = 0.0
101
 
102
  # audio settings
103
  enable_audio: bool = False # Whether to generate audio
 
24
  # Constraints
25
  MAX_LARGE_SIDE = 1280
26
  MAX_SMALL_SIDE = 720
27
+ MAX_FRAMES = (8 * 21) + 1 # visual glitches appear after about 169 frames, so we cap it
28
 
29
  # this is only a temporary solution (famous last words)
30
  def apply_dirty_hack_to_patch_file_extensions_and_bypass_filter(directory):
 
86
  # visual glitches appear after about 169 frames, so we don't need more actually
87
  num_frames: int = (8 * 14) + 1
88
 
89
+ guidance_scale: float = 4.0
90
+ num_inference_steps: int = 30
91
 
92
  # reproducible generation settings
93
  seed: int = -1 # -1 means random seed
94
 
95
  # varnish settings (will be used for post-processing after the raw video clip has been generated
96
  fps: int = 30 # FPS of the final video (only applied at the the very end, when converting to mp4)
97
+ double_num_frames: bool = False # if True, the number of frames will be multiplied by 2 using RIFE
98
+ super_resolution: bool = False # if True, the resolution will be multiplied by 2 using Real_ESRGAN
99
 
100
+ grain_amount: float = 0.0 # be careful, adding film grian can negatively impact video compression
101
 
102
  # audio settings
103
  enable_audio: bool = False # Whether to generate audio