Skip to content

[fix] fix the image path resolve problem - #555

Merged
Keithwwa merged 1 commit into
AISBench:masterfrom
zhongzhouTan-coder:fix/omini-image-path
Sep 20, 2026
Merged

Keithwwa merged 1 commit into
AISBench:masterfrom
zhongzhouTan-coder:fix/omini-image-path

Conversation

@zhongzhouTan-coder

@zhongzhouTan-coder zhongzhouTan-coder commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor
  1. 背景
    当前获取图片路径为当前目录拼接配置相对路径,由于我们数据集建议下在 AISBENCH datasets 路径下,如果执行命令目录不在 benchmark 目录,会导致 image url 路径组装异常
  2. 解决方案
    使用 get_data_path 从 aisbench 安装目录获取正确的路径,然后拼接
  3. 验证截图 当前目录非 benchmark 目录,但最终图片目录为正确的目录
    image-20260917153156201
    image-20260917153253528

issue 链接:#421

Copilot AI lite review requested due to automatic review settings September 17, 2026 07:38
@github-actions github-actions Bot added the no_issue PR 未关联任何 Issue,合入前必须关联 Issue label Sep 17, 2026
@github-actions

Copy link
Copy Markdown

🚫 PR 合入质量检查未通过,PR 已被禁止合入。

未通过项:no_issue、no_review

  • 未关联 Issue:请在 PR 描述中关联 Issue,例如 Fixes #123 或 Relates to #123。
  • 无检视意见:请至少邀请一位 reviewer 提交检视意见(Approve / Request changes / Comment 均可)。

请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。

@github-actions github-actions Bot added the no_review PR 未包含任何检视意见,合入前必须包含检视意见 label Sep 17, 2026
@zhongzhouTan-coder zhongzhouTan-coder removed the no_issue PR 未关联任何 Issue,合入前必须关联 Issue label Sep 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved blocking issues were identified.

Pull request overview

Fixes OmniDocBench image URL resolution when commands run outside the benchmark directory.

Changes:

  • Resolves dataset and image paths through get_data_path.
  • Adds regression coverage for relative paths and alternate working directories.
File summaries
File Summary
tests/UT/datasets/test_omnidocbench.py Verifies image paths resolve correctly.
ais_bench/benchmark/datasets/omnidocbench/omnidocbench.py Resolves image paths from the dataset cache.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@zhongzhouTan-coder zhongzhouTan-coder linked an issue Sep 20, 2026 that may be closed by this pull request
4 tasks done
@github-actions github-actions Bot removed the no_review PR 未包含任何检视意见,合入前必须包含检视意见 label Sep 20, 2026
@github-actions

Copy link
Copy Markdown

✅ PR 合入质量五项检查全部通过,允许合入。

@Keithwwa
Keithwwa merged commit 6467892 into AISBench:master Sep 20, 2026
11 of 12 checks passed

This branch was previously deployed

1 inactive deployment
smoke-test-approval — 0d8250ab Deployed Sep 17, 2026 by zhongzhouTan-coder via run_smoke_test_cases #720
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] OmniDocBench数据集评测,数据集相对路径拼接错误

3 participants