vocoder-small-watermark-detector / configuration_detector.py
mlr2000's picture
Upload folder using huggingface_hub
66157f2 verified
Raw
History Blame Contribute Delete
398 Bytes
"""Config for the standalone Cage watermark detector."""
from .cage_config import CageExtractorConfig
class CageDetectorConfig(CageExtractorConfig):
model_type = "cage_detector"
def __init__(self, fixed_watermark=None, **kwargs):
super().__init__(**kwargs)
# The fixed signature this detector checks extracted bits against.
self.fixed_watermark = fixed_watermark