OriLib commited on
Commit
ecc44d5
1 Parent(s): 2b99d49

Update replace_bg/utilities.py

Browse files
Files changed (1) hide show
  1. replace_bg/utilities.py +1 -1
replace_bg/utilities.py CHANGED
@@ -4,7 +4,7 @@ import numpy as np
4
  from PIL import Image
5
 
6
  def resize_image(image)->Image.Image:
7
- pixel_number = 1024*1024
8
  granularity_val = 64
9
  ratio = image.size[0] / image.size[1]
10
  width = int((pixel_number * ratio) ** 0.5)
 
4
  from PIL import Image
5
 
6
  def resize_image(image)->Image.Image:
7
+ pixel_number = 960*960 #1024*1024
8
  granularity_val = 64
9
  ratio = image.size[0] / image.size[1]
10
  width = int((pixel_number * ratio) ** 0.5)