update resize
Browse files
app.py
CHANGED
@@ -102,8 +102,8 @@ def edit(brush_canvas,
|
|
102 |
torch.cuda.empty_cache()
|
103 |
|
104 |
rgba_init_image = brush_canvas["background"]
|
|
|
105 |
init_image = rgba_init_image[:,:,:3]
|
106 |
-
init_image = resize_image(init_image)
|
107 |
shape = init_image.shape
|
108 |
height = shape[0] if shape[0] % 16 == 0 else shape[0] - shape[0] % 16
|
109 |
width = shape[1] if shape[1] % 16 == 0 else shape[1] - shape[1] % 16
|
|
|
102 |
torch.cuda.empty_cache()
|
103 |
|
104 |
rgba_init_image = brush_canvas["background"]
|
105 |
+
rgba_init_image = resize_image(rgba_init_image)
|
106 |
init_image = rgba_init_image[:,:,:3]
|
|
|
107 |
shape = init_image.shape
|
108 |
height = shape[0] if shape[0] % 16 == 0 else shape[0] - shape[0] % 16
|
109 |
width = shape[1] if shape[1] % 16 == 0 else shape[1] - shape[1] % 16
|