Skip to content

Write UTF-8 image names intact in COLMAP binary models - #3803

Open
Afloat16 wants to merge 1 commit into
nerfstudio-project:mainfrom
Afloat16:fix/colmap-utf8-image-write
Open

Afloat16 wants to merge 1 commit into
nerfstudio-project:mainfrom
Afloat16:fix/colmap-utf8-image-write

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 6, 2026

Copy link
Copy Markdown

The binary writer packs each Unicode character into a single byte, raising struct.error for multibyte UTF-8 filenames. Write the encoded name once before the existing NUL terminator. The regression round-trips a nested path containing Japanese and accented characters and verifies the observations following the name.

Tested with pytest -o addopts= tests/process_data/test_colmap_binary_image_names.py. The new regression fails on main and passes with the fix. The license, Ruff lint and formatting checks pass.

This branch has not been deployed

No deployments
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.

1 participant