File size: 351 Bytes
564df58
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from backend.annotators.control_interface import ControlInterface
from controlnet_aux import ContentShuffleDetector
from PIL import Image


class ShuffleControl(ControlInterface):
    def get_control_image(self, image: Image) -> Image:
        shuffle_processor = ContentShuffleDetector()
        image = shuffle_processor(image)
        return image