linoyts HF staff commited on
Commit
be44dff
β€’
1 Parent(s): dee21e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -178,7 +178,7 @@ def run(
178
  width, height = image['composite'].size
179
  ratio = np.sqrt(1024. * 1024. / (width * height))
180
  new_width, new_height = int(width * ratio), int(height * ratio)
181
- image = ImageOps.invert(image['composite']).resize((new_width, new_height))
182
 
183
  if not use_hed:
184
  controlnet_img = image
 
178
  width, height = image['composite'].size
179
  ratio = np.sqrt(1024. * 1024. / (width * height))
180
  new_width, new_height = int(width * ratio), int(height * ratio)
181
+ image = image['composite'].resize((new_width, new_height))
182
 
183
  if not use_hed:
184
  controlnet_img = image