controlnet-interior-design / models_stub.py
BertChristiaens's picture
Duplicate from BertChristiaens/controlnet-seg-backup
3d4d894
raw
history blame
714 Bytes
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))