fix: use list instead of tuple in extra_params for YAML safety
PyYAML serializes tuples as !!python/tuple tags which safe_load rejects, corrupting the state file.
This commit is contained in:
parent
d90db2933e
commit
47b5f899e6
2 changed files with 3 additions and 3 deletions
|
|
@ -91,9 +91,9 @@ def _collect_extra_params(target_name: str, config: ProjectConfig) -> dict[str,
|
|||
if target_cfg.height is not None:
|
||||
params["height"] = target_cfg.height
|
||||
if target_cfg.reference_images:
|
||||
params["reference_images"] = tuple(target_cfg.reference_images)
|
||||
params["reference_images"] = list(target_cfg.reference_images)
|
||||
if target_cfg.control_images:
|
||||
params["control_images"] = tuple(target_cfg.control_images)
|
||||
params["control_images"] = list(target_cfg.control_images)
|
||||
return params
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue