Update NetVLAD checkpoint paths and enhance .gitignore
ci/woodpecker/push/02-build-push Pipeline failed

- Changed paths in documentation and configuration files to reflect the new naming convention for the NetVLAD model, transitioning from `models/netvlad/netvlad.pt` to `models/net_vlad/net_vlad.pt`.
- Updated the `.gitignore` to include additional file types and directories related to input data and locally-generated evidence frames.
- Removed the old NetVLAD checkpoint file as part of the transition to the new naming scheme.

These changes ensure consistency across the project and improve the management of generated files.
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-05-31 19:27:32 +03:00
parent 97f5f9793c
commit ba70381346
18 changed files with 4195 additions and 24 deletions
@@ -137,6 +137,10 @@ class BackboneConfig:
f"BackboneConfig({self.model_name!r}).onnx_path must "
"be a non-empty string"
)
if isinstance(self.expected_input_shape, list):
object.__setattr__(
self, "expected_input_shape", tuple(self.expected_input_shape)
)
if not self.expected_input_shape:
raise ConfigError(
f"BackboneConfig({self.model_name!r}).expected_input_shape "
@@ -235,6 +239,20 @@ class C10ProvisioningConfig:
"C10ProvisioningConfig.workspace_mb must be > 0; "
f"got {self.workspace_mb}"
)
# YAML loaders pass `backbones` as `list[dict]`; the config loader's
# generic `_replace_block` path does not recursively construct
# nested dataclasses inside list/tuple fields, so we coerce here.
# Idempotent: existing BackboneConfig entries pass through.
if self.backbones and not all(
isinstance(b, BackboneConfig) for b in self.backbones
):
coerced = tuple(
BackboneConfig(**b) if isinstance(b, dict) else b
for b in self.backbones
)
object.__setattr__(self, "backbones", coerced)
elif isinstance(self.backbones, list):
object.__setattr__(self, "backbones", tuple(self.backbones))
seen: set[str] = set()
for backbone in self.backbones:
if backbone.model_name in seen: