Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def infer(image: PIL.Image.Image,prompt, negative_prompt, seed, randomize_seed,
|
|
116 |
if randomize_seed:
|
117 |
seed = random.randint(0, MAX_SEED)
|
118 |
|
119 |
-
controlnet_img =
|
120 |
# following is some processing to simulate human sketch draw, different threshold can generate different width of lines
|
121 |
controlnet_img = np.array(controlnet_img)
|
122 |
controlnet_img = nms(controlnet_img, 127, 3)
|
|
|
116 |
if randomize_seed:
|
117 |
seed = random.randint(0, MAX_SEED)
|
118 |
|
119 |
+
controlnet_img = image
|
120 |
# following is some processing to simulate human sketch draw, different threshold can generate different width of lines
|
121 |
controlnet_img = np.array(controlnet_img)
|
122 |
controlnet_img = nms(controlnet_img, 127, 3)
|