Wire seed config into built-in clothing routes
This commit is contained in:
@@ -78,8 +78,12 @@ def build_auto_weighted_row(
|
||||
minimal_clothing_ratio: float | None,
|
||||
standard_pose_ratio: float | None,
|
||||
seed: int,
|
||||
seed_config: dict[str, int] | None = None,
|
||||
) -> dict[str, Any]:
|
||||
batch_number = max(1, ((row_number - 1) // g.BATCH_SIZE) + 1)
|
||||
clothing_rng = None
|
||||
if seed_config is not None:
|
||||
clothing_rng = seed_policy.axis_rng(seed_config, "clothing", seed, row_number)
|
||||
rows = g.build_rows(
|
||||
batch_number * g.BATCH_SIZE,
|
||||
start_index,
|
||||
@@ -94,6 +98,7 @@ def build_auto_weighted_row(
|
||||
standard_pose_ratio,
|
||||
seed,
|
||||
g.EXPRESSION_SEED + seed,
|
||||
clothing_rng=clothing_rng,
|
||||
)
|
||||
row = rows[row_number - 1]
|
||||
row["main_category"] = "auto_weighted"
|
||||
|
||||
Reference in New Issue
Block a user