Download diffsynth/utils/controlnet/controlnet_input.py from ShanglinHG/AI4VA_track2_solution: direct link, hf CLI and curl.
- Browser
- Download file 320 Bytes
-
https://huggingface.co/ShanglinHG/AI4VA_track2_solution/resolve/main/diffsynth/utils/controlnet/controlnet_input.py
- Command line
-
hf download hf://ShanglinHG/AI4VA_track2_solution/diffsynth/utils/controlnet/controlnet_input.py
-
curl -L -o controlnet_input.py https://huggingface.co/ShanglinHG/AI4VA_track2_solution/resolve/main/diffsynth/utils/controlnet/controlnet_input.py
320 Bytes
| from dataclasses import dataclass | |
| from PIL import Image | |
| class ControlNetInput: | |
| controlnet_id: int = 0 | |
| scale: float = 1.0 | |
| start: float = 1.0 | |
| end: float = 0.0 | |
| image: Image.Image = None | |
| inpaint_image: Image.Image = None | |
| inpaint_mask: Image.Image = None | |
| processor_id: str = None | |