watermark-anything / multiwm.py
xiaoyao9184's picture
Synced repo using 'sync_with_huggingface' Github Action
4d66995 verified
raw
history blame contribute delete
338 Bytes
from wrapt_timeout_decorator import *
from notebooks.inference_utils import (
multiwm_dbscan
)
@timeout(60, use_signals=False)
def dbscan(bit_preds, mask_preds, epsilon, min_samples, **kwargs):
print("multiwm task started.")
return multiwm_dbscan(preds=bit_preds, masks=mask_preds, epsilon=epsilon, min_samples=min_samples)