Skip to content

fix(examples): correct broken config paths in cityscapes singletask_learning_bench#582

Open
karanthengane23 wants to merge 1 commit into
kubeedge:mainfrom
karanthengane23:fix-cityscapes-singletask-paths
Open

fix(examples): correct broken config paths in cityscapes singletask_learning_bench#582
karanthengane23 wants to merge 1 commit into
kubeedge:mainfrom
karanthengane23:fix-cityscapes-singletask-paths

Conversation

@karanthengane23

Copy link
Copy Markdown

/kind bug

What this PR does / why we need it:

examples/cityscapes/singletask_learning_bench/semantic-segmentation had two independent bugs that blocked execution before any model/data code ran:

  1. benchmarkingjob.yaml, testenv.yaml, and rfnet_algorithm.yaml referenced each other without the semantic-segmentation/ directory segment that the files actually live under. Running the example failed immediately with:
    RuntimeError: not found testenv config file(./examples/cityscapes/singletask_learning_bench/testenv/testenv.yaml) in local.
    
  2. testenv.yaml's dataset section used train_url/test_url keys, which core/testenvmanager/dataset/dataset.py does not recognize (it only checks train_index/train_data/train_data_info). Even after fixing (1), this caused:
    RuntimeError: prepare dataset failed, error: not one of train_index/train_data/train_data_info.
    
    Renamed to train_index/test_index, matching the convention used in the working pcb-aoi example.

Also added a README.md for this example (it previously had none), documenting the Cityscapes dataset source, expected index-file format, the model checkpoint requirement, and run instructions.

Verification: ran ianvs -f examples/cityscapes/singletask_learning_bench/semantic-segmentation/benchmarkingjob.yaml after each fix. It now progresses cleanly past all config-loading and dataset-key-parsing stages, failing only on the Cityscapes dataset files not being present locally — expected, since the dataset must be downloaded separately (same as any other example).

Which issue(s) this PR fixes:

Fixes #581

@kubeedge-bot kubeedge-bot added kind/bug Categorizes issue or PR as related to a bug. do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. labels Jul 8, 2026
@kubeedge-bot kubeedge-bot requested review from MooreZheng and hsj576 July 8, 2026 06:30
@kubeedge-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: karanthengane23
To complete the pull request process, please assign moorezheng after the PR has been reviewed.
You can assign the PR to them by writing /assign @moorezheng in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot kubeedge-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 8, 2026
@karanthengane23 karanthengane23 force-pushed the fix-cityscapes-singletask-paths branch from 75c6303 to a7fa39f Compare July 8, 2026 06:38
@kubeedge-bot kubeedge-bot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Jul 8, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a README and updates configuration paths for the Cityscapes semantic segmentation single-task learning benchmark, aligning them under the new semantic-segmentation directory structure. Additionally, it renames the dataset configuration keys in testenv.yaml from train_url/test_url to train_index/test_index. The only feedback is to add a trailing newline to the end of testenv.yaml to comply with POSIX standards.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

…earning_bench

benchmarkingjob.yaml, testenv.yaml, and rfnet_algorithm.yaml referenced
each other without the semantic-segmentation/ directory segment the
files actually live under, so `ianvs -f` failed immediately with
RuntimeError: not found testenv config file.

testenv.yaml also used train_url/test_url dataset keys, which
core/testenvmanager/dataset/dataset.py does not recognize (only
train_index/train_data/train_data_info are checked), causing
NotImplementedError even after the path fix. Renamed to
train_index/test_index, matching the working pcb-aoi example.

Verified with `ianvs -f examples/cityscapes/singletask_learning_bench/semantic-segmentation/benchmarkingjob.yaml`:
now progresses cleanly past config loading and dataset key parsing,
failing only on the Cityscapes dataset files not being present locally
(expected - same as any example, the dataset must be downloaded
separately).

Also added a README documenting the dataset source, expected index
file format, and run instructions, since the example previously had
none.

Signed-off-by: Karan Thengane <karanthengane23@gmail.com>
@karanthengane23 karanthengane23 force-pushed the fix-cityscapes-singletask-paths branch from a7fa39f to fe045a0 Compare July 8, 2026 06:44
@karanthengane23

Copy link
Copy Markdown
Author

/assign @MooreZheng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cityscapes/singletask_learning_bench: broken config paths (missing semantic-segmentation/ segment) block execution, no README

3 participants