fffiloni commited on
Commit
24ff7da
·
verified ·
1 Parent(s): f28ad50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -151,6 +151,8 @@ def infer(use_custom_model, model_name, weight_name, custom_lora_weight, image_i
151
  if preprocessor == "lineart":
152
  image = load_image(image_in)
153
  image = np.array(image)
 
 
154
  image = Image.fromarray(image)
155
 
156
  if use_custom_model:
 
151
  if preprocessor == "lineart":
152
  image = load_image(image_in)
153
  image = np.array(image)
154
+ image = image[:, :, None]
155
+ image = np.concatenate([image, image, image], axis=2)
156
  image = Image.fromarray(image)
157
 
158
  if use_custom_model: