Spaces:
Paused
Paused
File size: 377 Bytes
99b955f |
1 2 3 4 5 6 7 8 9 10 11 |
from backend.annotators.control_interface import ControlInterface
from controlnet_aux import PidiNetDetector
from PIL import Image
class SoftEdgeControl(ControlInterface):
def get_control_image(self, image: Image) -> Image:
processor = PidiNetDetector.from_pretrained("lllyasviel/Annotators")
control_image = processor(image)
return control_image
|