Implement DeepMosaics restoration engine in HVideoTool: updated configuration options, integrated into the UI, and enhanced documentation in README and CLAUDE.md. The restoration process now supports both inpainting and generative models, with necessary setup instructions included.
This commit is contained in:
@@ -65,3 +65,10 @@ class AppConfig:
|
||||
detector: str = "classic" # "classic" | "yolo" | "combined"
|
||||
model_path: str | None = None # weights path, used by the YOLO detector
|
||||
default_threshold: float = 0.20 # initial overlay confidence threshold
|
||||
|
||||
# --- restoration ("расцензурить") ---
|
||||
restorer: str = "inpaint" # "inpaint" | "deepmosaics"
|
||||
dm_dir: str | None = None # DeepMosaics repo dir (contains deepmosaic.py)
|
||||
dm_model: str | None = None # DeepMosaics clean weights (clean_*.pth)
|
||||
dm_python: str | None = None # python exe for DeepMosaics (None = current)
|
||||
dm_gpu: str = "0" # CUDA device id, "-1" for CPU
|
||||
|
||||
Reference in New Issue
Block a user