el-el-san commited on
Commit
4df8119
·
verified ·
1 Parent(s): ced00ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = processor(image, scribble=False)
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)