fastsdcpu / src /backend /annotators /mlsd_control.py
rupeshs's picture
Updated to latest FastSD
c7f95a6
raw
history blame
341 Bytes
from backend.annotators.control_interface import ControlInterface
from controlnet_aux import MLSDdetector
from PIL import Image
class MlsdControl(ControlInterface):
def get_control_image(self, image: Image) -> Image:
mlsd = MLSDdetector.from_pretrained("lllyasviel/ControlNet")
image = mlsd(image)
return image