feat: integrate f2v_process into LightX2VInferenceConfig and update config handling in InferenceConfigBuilder
This commit is contained in:
+2
-4
@@ -153,6 +153,7 @@ class InferenceConfigBuilder:
|
||||
"segment_length",
|
||||
"prev_frame_length",
|
||||
"use_tiny_vae",
|
||||
"f2v_process",
|
||||
]:
|
||||
if param in optional_params:
|
||||
setattr(config, param, optional_params[param])
|
||||
@@ -166,9 +167,6 @@ class InferenceConfigBuilder:
|
||||
if "prev_frame_length" in optional_params:
|
||||
config.prev_frame_length = optional_params["prev_frame_length"]
|
||||
|
||||
if "f2v_process" in optional_params:
|
||||
config.f2v_process = optional_params["f2v_process"]
|
||||
|
||||
|
||||
class TalkObjectConfigBuilder:
|
||||
"""Builder for talk object configurations."""
|
||||
@@ -341,7 +339,7 @@ class ConfigBuilder:
|
||||
"adapter_quant_scheme": getattr(config, "adapter_quant_scheme", None),
|
||||
"adapter_quantized": getattr(config, "adapter_quantized", False),
|
||||
"feature_caching": getattr(config, "feature_caching", None),
|
||||
"f2v_process": getattr(config, "f2v_process", False),
|
||||
# "f2v_process": getattr(config, "f2v_process", False),
|
||||
}
|
||||
|
||||
config_str = json.dumps(relevant_configs, sort_keys=True)
|
||||
|
||||
+1
-1
Submodule lightx2v updated: 0807e60830...9992296c12
Reference in New Issue
Block a user