Download src/backend/annotators/shuffle_control.py from clone3/FastGUI: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/clone3/FastGUI/resolve/main/src/backend/annotators/shuffle_control.py
- Command line
-
hf download hf://spaces/clone3/FastGUI/src/backend/annotators/shuffle_control.py
-
curl -L -o shuffle_control.py https://huggingface.co/spaces/clone3/FastGUI/resolve/main/src/backend/annotators/shuffle_control.py
361 Bytes
| 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 | |