Skip to content

Fix DIVE config import not sticking on multicam datasets (desktop)#1781

Open
mattdawkins wants to merge 1 commit into
mainfrom
fix/multicam-config-import
Open

Fix DIVE config import not sticking on multicam datasets (desktop)#1781
mattdawkins wants to merge 1 commit into
mainfrom
fix/multicam-config-import

Conversation

@mattdawkins

Copy link
Copy Markdown
Member

Problem

Importing a DIVE configuration file (custom type colors, confidence thresholds, ...) works in single-camera mode but silently does nothing in multi-camera mode: neither the thresholds nor the colors apply or persist.

Cause

In multi-camera mode the desktop viewer hands the importer the camera-qualified dataset id (<base>/<camera>), so dataFileImport wrote the config into that camera's meta.json. The viewer, however, only reads confidenceFilters / customTypeStyling (and the other mutable config keys) from the base dataset's metadata, so the imported values were never seen.

Fix

When an import targets a camera of a multicam dataset and produces mutable-config keys, dataFileImport now also merges those keys into the base dataset's meta.json, using the same overwrite/additive datasetInfo semantics as the per-camera write. Since reloadAnnotations re-reads the base metadata after import, the imported config now applies immediately as well.

Includes a regression test covering the camera-targeted config import.

🤖 Generated with Claude Code

In multi-camera mode the importer receives the camera-qualified dataset
id (`<base>/<camera>`), so an imported DIVE configuration (custom type
colors, confidence thresholds, ...) was written only to that camera's
meta.json. The viewer, however, loads those fields from the base
dataset's metadata, so the imported values never applied or persisted.

dataFileImport now also merges the mutable config keys into the base
dataset's meta.json when the import targets a camera, using the same
overwrite/additive datasetInfo semantics as the per-camera write.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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