Skip to content

[feature] 跳过错误处理下一个图片 #11

Description

@EarOfWheat

目前处理文件夹时有个别输入图片报错会直接中断任务,建议记录路径至日志不中断任务。(本来准备挂着去睡觉,醒来发现只处理了几张图😭)

Creating/Switching an SR Instance. Model: models\real-hatgan\x1\x1_jp_Illustration-fix_only.onnx, GPU ID: 0
2026-03-05 07:47:27.8450136 [W:onnxruntime:, session_state.cc:1307 onnxruntime::VerifyEachNodeIsAssignedToAnEp] Some nodes were not assigned to the preferred execution providers which may or may not have an negative impact on performance. e.g. ORT explicitly assigns shape related ops to CPU to improve perf.
2026-03-05 07:47:27.8518369 [W:onnxruntime:, session_state.cc:1309 onnxruntime::VerifyEachNodeIsAssignedToAnEp] Rerunning with verbose output on a non-minimal build will show node assignments.
Traceback (most recent call last):
  File "D:\Download\MoeSR\moe_sr.py", line 461, in py_run_process
    sr_img = sr_instance.universal_process_pipeline(img, tile_size=tileSize)
  File "D:\Download\MoeSR\onnx_infer.py", line 178, in universal_process_pipeline
    h, w, c = image.shape
ValueError: not enough values to unpack (expected 3, got 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions