Spaces:
Running
on
A10G
Running
on
A10G
| import numpy as np | |
| def make_image_controlnet(image, | |
| mask_image, | |
| controlnet_conditioning_image, | |
| positive_prompt, | |
| negative_prompt, | |
| seed, | |
| ): | |
| print("EMULATED CONTROLNET") | |
| return [image] | |
| def make_inpainting(positive_prompt, | |
| image, | |
| mask_image, | |
| negative_prompt, | |
| ): | |
| print("EMULATED INPAINTING") | |
| return [image] | |
| def segment_image(image): | |
| # numpy array of shape (width, height, 3) with ones | |
| print("EMULATED SEGMENTATION") | |
| return np.ones((image.width, image.height, 3)) | |