zhiweili commited on
Commit
4dc3e90
1 Parent(s): 56187a7

adjust Brightness

Browse files
Files changed (1) hide show
  1. inversion_run_adapter_test.py +1 -1
inversion_run_adapter_test.py CHANGED
@@ -285,7 +285,7 @@ def get_timesteps(pipe, num_inference_steps, strength, device, denoising_start=N
285
  def blur_image(image):
286
  gray_image = image.convert("L")
287
  merge_image = Image.merge("RGB", [gray_image, gray_image, gray_image])
288
- bright_image = ImageEnhance.Brightness(merge_image).enhance(5)
289
  # blurred_image = bright_image.filter(ImageFilter.GaussianBlur(4))
290
 
291
  return bright_image
 
285
  def blur_image(image):
286
  gray_image = image.convert("L")
287
  merge_image = Image.merge("RGB", [gray_image, gray_image, gray_image])
288
+ bright_image = ImageEnhance.Brightness(merge_image).enhance(1.5)
289
  # blurred_image = bright_image.filter(ImageFilter.GaussianBlur(4))
290
 
291
  return bright_image