Enhance HVideoTool's detection and restoration features: added support for tracking the model used in detections, improved temporal coherence by allowing the use of already-restored frames in the restoration process, and updated the UI to reflect these changes with new indicators and configuration options. Documentation in CLAUDE.md has been updated accordingly.
This commit is contained in:
@@ -42,6 +42,8 @@ def apply(config: AppConfig) -> None:
|
||||
for key in ("dm_dir", "dm_model", "dm_gpu"):
|
||||
if key in data:
|
||||
setattr(config, key, data[key])
|
||||
if "dm_feed_restored" in data:
|
||||
config.dm_feed_restored = bool(data["dm_feed_restored"])
|
||||
|
||||
|
||||
def save(config: AppConfig) -> None:
|
||||
@@ -55,6 +57,7 @@ def save(config: AppConfig) -> None:
|
||||
dm_dir=config.dm_dir,
|
||||
dm_model=config.dm_model,
|
||||
dm_gpu=config.dm_gpu,
|
||||
dm_feed_restored=config.dm_feed_restored,
|
||||
)
|
||||
_write(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user