File size: 714 Bytes
3d4d894
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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))