Implement multi-model detection in HVideoTool: updated the detection system to support multiple YOLO models simultaneously, enhancing detection capabilities. Reflected changes in the UI with a new model selection menu and updated documentation in README and CLAUDE.md to guide users on model management and configuration.
This commit is contained in:
@@ -33,8 +33,8 @@ def apply(config: AppConfig) -> None:
|
||||
data = _read()
|
||||
if data.get("detector"):
|
||||
config.detector = data["detector"]
|
||||
if "model_path" in data:
|
||||
config.model_path = data["model_path"]
|
||||
if isinstance(data.get("detector_models"), list):
|
||||
config.detector_models = [str(m) for m in data["detector_models"]]
|
||||
if "threshold" in data:
|
||||
config.default_threshold = float(data["threshold"])
|
||||
if data.get("restorer"):
|
||||
@@ -49,7 +49,7 @@ def save(config: AppConfig) -> None:
|
||||
data = _read()
|
||||
data.update(
|
||||
detector=config.detector,
|
||||
model_path=config.model_path,
|
||||
detector_models=list(config.detector_models),
|
||||
threshold=config.default_threshold,
|
||||
restorer=config.restorer,
|
||||
dm_dir=config.dm_dir,
|
||||
|
||||
Reference in New Issue
Block a user