Skip to content

Cover VOC 2007-test URL in download tests - #9654

Open
YeonwooSung wants to merge 1 commit into
pytorch:mainfrom
YeonwooSung:test/voc-2007-test-download-url
Open

Cover VOC 2007-test URL in download tests#9654
YeonwooSung wants to merge 1 commit into
pytorch:mainfrom
YeonwooSung:test/voc-2007-test-download-url

Conversation

@YeonwooSung

Copy link
Copy Markdown

Description

voc() in test/test_datasets_download.py had a TODO to also exercise the "2007-test" key. That archive is selected when year=="2007" and image_set=="test" (VOCtest_06-Nov-2007.tar).

This change:

  • still collects trainval URLs for VOC 2007-2012
  • also collects the 2007-test URL via VOCSegmentation(..., year="2007", image_set="test", download=True)
  • adds an offline unit test that voc() includes DATASET_YEAR_DICT["2007-test"]["url"] and that the 2007/test constructor wiring selects that archive

The live voc() URL accessibility check stays disabled because the VOC server is unstable (see #2953).

Test plan

  • pytest test/test_datasets_download.py -k "test_voc_includes_2007_test_url" (offline; no network)
  • Do not re-enable the live voc() parametrization in test_url_is_accessible

@pytorch-bot

pytorch-bot Bot commented Sep 5, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/9654

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the cla signed label Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant