Skip to content

Fix IMC 2024 download layout with a relative data path - #4976

Merged
ahojnnes merged 2 commits into
colmap:mainfrom
Afloat16:fix-imc2024-relative-output
Nov 8, 2026
Merged

ahojnnes merged 2 commits into
colmap:mainfrom
Afloat16:fix-imc2024-relative-output

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

After extracting the competition archive, download_imc2024 joins the dataset path to category_path a second time. With --data_path data, the destination becomes data/imc2024/data/imc2024/train/all and moving the extracted scene fails. Move each scene directly to category_path and identify the all directory by its path component on every platform.

pytest benchmark/reconstruction/download_test.py passes on Python 3.12. The test extracts a small local ZIP, stubs only the Kaggle download command, and verifies the image bytes at data/imc2024/train/all/scene/images/one.jpg. Ruff lint and format checks pass.

@ahojnnes ahojnnes added the full-ci Run Windows and remaining pycolmap CI label Nov 8, 2026
@ahojnnes
ahojnnes enabled auto-merge (squash) November 8, 2026 19:53
@ahojnnes
ahojnnes merged commit bb88176 into colmap:main Nov 8, 2026
18 of 21 checks passed
fringehush-gif added a commit to fringehush-gif/colmap that referenced this pull request Nov 8, 2026
Import the upstream IMC 2024 download-layout repair. Relative data paths
previously duplicated the dataset directory when moving extracted scenes.

## Upstream commits

- bb88176:
  Fix IMC 2024 download layout with a relative data path (colmap#4976).

## Validation

- Windows Python 3.14.10: the exact extracted download_imc2024 function preserves
  both images from a local ZIP for relative and absolute paths. The old function
  fails the relative-path case; its absolute-path control passes.
- Kaggle invocation and logging were replaced by stand-ins. Full-module import
  and upstream pytest execution were not run: this interpreter lacks pytest
  and py7zr. No network downloads, dependency installs or C++ rebuild.

AI disclosure: Totally vibe coded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full-ci Run Windows and remaining pycolmap CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants