mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-06-23 01:11:14 +00:00
Update NetVLAD checkpoint paths and enhance .gitignore
ci/woodpecker/push/02-build-push Pipeline failed
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user