Repository navigation
[fix] fix the image path resolve problem - #555
Merged
Keithwwa merged 1 commit intoSep 20, 2026
Merged
Conversation
zhongzhouTan-coder
temporarily deployed
to
smoke-test-approval
September 17, 2026 07:38 — with
GitHub Actions
Inactive
|
🚫 PR 合入质量检查未通过,PR 已被禁止合入。 未通过项:
请按上述提示整改后,重新推送(push)或评论本 PR 即可触发再次检查。 |
Contributor
There was a problem hiding this comment.
🟢 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.
4 tasks done
Keithwwa
reviewed
Sep 20, 2026
|
✅ PR 合入质量五项检查全部通过,允许合入。 |
Keithwwa
approved these changes
Sep 20, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
当前获取图片路径为当前目录拼接配置相对路径,由于我们数据集建议下在 AISBENCH datasets 路径下,如果执行命令目录不在 benchmark 目录,会导致 image url 路径组装异常
使用
get_data_path从 aisbench 安装目录获取正确的路径,然后拼接issue 链接:#421