yizhangliu commited on
Commit
38af3c8
1 Parent(s): 9145a9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -112,8 +112,13 @@ def model_process(image, mask):
112
  if config.sd_seed == -1:
113
  config.sd_seed = random.randint(1, 999999999)
114
 
 
115
  image = resize_max_size(image, size_limit=size_limit, interpolation=interpolation)
 
 
 
116
  mask = resize_max_size(mask, size_limit=size_limit, interpolation=interpolation)
 
117
 
118
  if model is None:
119
  return None
 
112
  if config.sd_seed == -1:
113
  config.sd_seed = random.randint(1, 999999999)
114
 
115
+ print(f"Origin image shape_0_: {original_shape} / {image[250][250]} / {size_limit}")
116
  image = resize_max_size(image, size_limit=size_limit, interpolation=interpolation)
117
+ print(f"Resized image shape_1_: {image.shape} / {image[250][250]}")
118
+
119
+ print(f"mask image shape_0_: {mask.shape} / {type(mask)} / {mask[250][250]}")
120
  mask = resize_max_size(mask, size_limit=size_limit, interpolation=interpolation)
121
+ print(f"mask image shape_1_: {mask.shape} / {type(mask)} / {mask[250][250]}")
122
 
123
  if model is None:
124
  return None