From 0e5c74e5b5982bac320558f3bd966dc01eb4bb2c Mon Sep 17 00:00:00 2001 From: hoelee Date: Fri, 30 Oct 2026 02:13:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(install):=20=E6=8A=BD=E6=A0=B7=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E6=94=B9=E6=88=90=E4=B8=89=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=AE=89=E8=A3=85=E6=AE=B5=E8=BF=98=E5=9C=A8?= =?UTF-8?q?=E6=8C=89=E4=B8=A4=E5=80=BC=E8=A7=A3=E5=8C=85=20=E2=80=94?= =?UTF-8?q?=E2=80=94=20=E6=AF=8F=E4=B8=80=E4=BB=B6=E8=BF=87=E9=97=A8?= =?UTF-8?q?=E7=A6=81=E7=9A=84=E5=A5=BD=E7=89=87=E9=83=BD=E5=9C=A8=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E5=89=8D=E4=B8=80=E7=A7=92=E5=B4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `_sha_sample()` 为了支持五窗口抽样改成返回 (指纹, size, 实读字节),安装段 `smp_loc, smp_n = _sha_sample(...)` 没跟着改,于是抛 `ValueError: too many values to unpack (expected 2, got 3)`, 被队列判成 `infra: 引擎跑完了,但一个闸门数字都没产出`,退避三次后转 failed: 队列看起来什么都没完成,而日志里 SSIM 明明是过的。 实测三例:gpu 2169 KODV-0081.ts(4 infra -> failed)、cpu 3297 GOD-076.avi、 cpu3 3405。`_sha_remote_sample` 仍是两值(指纹, 实读字节),四个调用点都对得上。 --- scripts/library_run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/library_run.py b/scripts/library_run.py index 012b5c5..9778e4a 100644 --- a/scripts/library_run.py +++ b/scripts/library_run.py @@ -1659,7 +1659,8 @@ def process(src, args, dest=None, origin=None): # mismatch is retried rather than reported straight away. h_loc, n_loc = _sha_local(loc_out) # 抽样指纹(首/中/尾各 8 MB)—— 与共享盘上的副本比对,不再整文件回读。 - smp_loc, smp_n = _sha_sample(loc_out, n_loc, "encoded output") + # `_sha_sample` 返回 (指纹, size, 实读字节);这里只留指纹与实读字节,size 用 n_loc 自己那份。 + smp_loc, _smp_size, smp_n = _sha_sample(loc_out, n_loc, "encoded output") last = "" for up in range(1, 3): if not copy_local_to_remote(loc_out, remote_tmp):