[Bugfix] fix the display error (inconsistent context) (#17699)
Signed-off-by: linhaifeng <1371675203@qq.com>
This commit is contained in:
@@ -102,7 +102,7 @@ class ImagePatcher:
|
|||||||
steps: list[tuple[int, int]],
|
steps: list[tuple[int, int]],
|
||||||
img_rate_thr: float = 0.6,
|
img_rate_thr: float = 0.6,
|
||||||
) -> tuple[list[tuple[int, int, int, int]], tuple[int, int]]:
|
) -> 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 = []
|
windows = []
|
||||||
# Sliding windows.
|
# Sliding windows.
|
||||||
for size, step in zip(sizes, steps):
|
for size, step in zip(sizes, steps):
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ def load_pdmux_config(config_path: str) -> PDMuxConfig:
|
|||||||
raise ValueError("Missing required field: sm_group_num")
|
raise ValueError("Missing required field: sm_group_num")
|
||||||
|
|
||||||
if raw["sm_group_num"] < 3:
|
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", [])
|
manual_divisions = raw.get("manual_divisions", [])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user