Spaces:
Configuration error
Configuration error
Download ctrlregen/__init__.py from vibeautomation/SanitizeAI: direct link, hf CLI and curl.
- Browser
- Download file 634 Bytes
-
https://huggingface.co/spaces/vibeautomation/SanitizeAI/resolve/main/ctrlregen/__init__.py
- Command line
-
hf download hf://spaces/vibeautomation/SanitizeAI/ctrlregen/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/vibeautomation/SanitizeAI/resolve/main/ctrlregen/__init__.py
634 Bytes
| """CtrlRegen watermark removal via controllable regeneration. | |
| Implements the pipeline from "Image Watermarks Are Removable Using | |
| Controllable Regeneration from Clean Noise" (ICLR 2025) by Liu et al. | |
| This sub-package uses a ControlNet for spatial guidance (canny edges) | |
| and a DINOv2-based IP Adapter for semantic guidance to regenerate | |
| watermarked images from partially noised latents. | |
| Attribution: | |
| Based on https://github.com/yepengliu/CtrlRegen (Apache-2.0). | |
| """ | |
| from __future__ import annotations | |
| from ctrlregen.engine import CtrlRegenEngine, is_ctrlregen_available | |
| __all__ = ["CtrlRegenEngine", "is_ctrlregen_available"] | |