[Bugfix] fix the display error (inconsistent context) (#17699)

Signed-off-by: linhaifeng <1371675203@qq.com>
This commit is contained in:
linhaifeng
2026-02-01 15:35:11 +08:00
committed by GitHub
parent e5ac6229e1
commit 2c036f1eb1
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ class ImagePatcher:
steps: list[tuple[int, int]],
img_rate_thr: float = 0.6,
) -> tuple[list[tuple[int, int, int, int]], tuple[int, int]]:
assert 1 >= img_rate_thr >= 0, "The `in_rate_thr` should lie in 0~1"
assert 1 >= img_rate_thr >= 0, "The `img_rate_thr` should lie in 0~1"
windows = []
# Sliding windows.
for size, step in zip(sizes, steps):

View File

@@ -33,7 +33,7 @@ def load_pdmux_config(config_path: str) -> PDMuxConfig:
raise ValueError("Missing required field: sm_group_num")
if raw["sm_group_num"] < 3:
raise ValueError("sm_group_num must greater than 3")
raise ValueError("sm_group_num must be >= 3")
manual_divisions = raw.get("manual_divisions", [])