From a3afe3a5f9812372f0b5f628f56f15ffa61c7250 Mon Sep 17 00:00:00 2001 From: equal-l2 Date: Sun, 7 Jun 2026 10:22:20 +0900 Subject: [PATCH 1/2] Bump numpy for Python 3.14 wheel --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0019abdab43..5b02596308f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ hbutils>=0.9.0 pillow -numpy<2 +numpy<3 scikit-learn huggingface_hub tqdm From c68450445adfb93fa553984c277aa95e70ec97c7 Mon Sep 17 00:00:00 2001 From: equal-l2 Date: Sun, 7 Jun 2026 11:32:22 +0900 Subject: [PATCH 2/2] Replace deprecated ast items --- imgutils/generic/yolo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgutils/generic/yolo.py b/imgutils/generic/yolo.py index 1c850fdd0c1..85ce667424c 100644 --- a/imgutils/generic/yolo.py +++ b/imgutils/generic/yolo.py @@ -465,13 +465,13 @@ def _safe_eval_names_str(names_str): result = {} # noinspection PyUnresolvedReferences for key, value in zip(node.body.keys, node.body.values): - if isinstance(key, (ast.Str, ast.Num)): + if isinstance(key, (ast.Constant)) and isinstance(key.value, int): key = ast.literal_eval(key) else: raise RuntimeError(f"Invalid key type: {key!r}, this should be a bug, " f"please open an issue to dghs-imgutils.") # pragma: no cover - if isinstance(value, (ast.Str, ast.Num)): + if isinstance(value, (ast.Constant)) and isinstance(value.value, str): value = ast.literal_eval(value) else: raise RuntimeError(f"Invalid value type: {value!r}, this should be a bug, "