Spaces:
Runtime error
Runtime error
Download diffusion_webui/diffusion_models/base_controlnet_pipeline.py from DmitrMakeev/Diffusion-API: direct link, hf CLI and curl.
- Browser
- Download file 844 Bytes
-
https://huggingface.co/spaces/DmitrMakeev/Diffusion-API/resolve/6e5ca0efb4ae8db4a01fd8dec9d225ec88b2dfa0/diffusion_webui/diffusion_models/base_controlnet_pipeline.py
- Command line
-
hf download hf://spaces/DmitrMakeev/Diffusion-API@6e5ca0efb4ae8db4a01fd8dec9d225ec88b2dfa0/diffusion_webui/diffusion_models/base_controlnet_pipeline.py
-
curl -L -o base_controlnet_pipeline.py https://huggingface.co/spaces/DmitrMakeev/Diffusion-API/resolve/6e5ca0efb4ae8db4a01fd8dec9d225ec88b2dfa0/diffusion_webui/diffusion_models/base_controlnet_pipeline.py
844 Bytes
| class ControlnetPipeline: | |
| def __init__(self): | |
| self.pipe = None | |
| def load_model(self, stable_model_path: str, controlnet_model_path: str): | |
| raise NotImplementedError() | |
| def load_image(self, image_path: str): | |
| raise NotImplementedError() | |
| def controlnet_preprocces(self, read_image: str): | |
| raise NotImplementedError() | |
| def generate_image( | |
| self, | |
| image_path: str, | |
| stable_model_path: str, | |
| controlnet_model_path: str, | |
| prompt: str, | |
| negative_prompt: str, | |
| num_images_per_prompt: int, | |
| guidance_scale: int, | |
| num_inference_step: int, | |
| controlnet_conditioning_scale: int, | |
| scheduler: str, | |
| seed_generator: int, | |
| ): | |
| raise NotImplementedError() | |
| def web_interface(): | |
| raise NotImplementedError() | |