jbilcke-hf HF staff commited on
Commit
0f751a9
·
verified ·
1 Parent(s): 61ff213

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +4 -3
handler.py CHANGED
@@ -156,9 +156,10 @@ class GenerationConfig:
156
  width: int = 768
157
  height: int = 416
158
 
159
- # this is a trick we use to convert a "pristine" image into a "dirty" video frame
160
- # this helps fooling LTX-Video into turning the image into an animated one
161
- input_image_quality: int = 100
 
162
 
163
  # users may tend to always set this to the max, to get as much useable content as possible (which is MAX_FRAMES ie. 257).
164
  # The value must be a multiple of 8, plus 1 frame.
 
156
  width: int = 768
157
  height: int = 416
158
 
159
+
160
+ # this is a hack to fool LTX-Video into believing our input image is an actual video frame with poor encoding quality
161
+ # after a quick benchmark using the value 70 seems like a sweet spot
162
+ input_image_quality: int = 70
163
 
164
  # users may tend to always set this to the max, to get as much useable content as possible (which is MAX_FRAMES ie. 257).
165
  # The value must be a multiple of 8, plus 1 frame.