Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def tile(input_image, resolution=768):
|
|
122 |
img = convert_from_cv2_to_image(img)
|
123 |
return img
|
124 |
|
125 |
-
def resize_img(input_image, max_side=
|
126 |
pad_to_max_side=False, mode=Image.BILINEAR, base_pixel_number=64):
|
127 |
|
128 |
w, h = input_image.size
|
@@ -203,7 +203,7 @@ with gr.Blocks(css=css) as demo:
|
|
203 |
with gr.Column():
|
204 |
|
205 |
with gr.Row(equal_height=True):
|
206 |
-
cond_in = gr.Image(label="Upload a processed control image", sources=["upload"], type="filepath")
|
207 |
image_in = gr.Image(label="Extract condition from a reference image (Optional)", sources=["upload"], type="filepath")
|
208 |
|
209 |
prompt = gr.Textbox(label="Prompt", value="best quality")
|
|
|
122 |
img = convert_from_cv2_to_image(img)
|
123 |
return img
|
124 |
|
125 |
+
def resize_img(input_image, max_side=1024, min_side=768, size=None,
|
126 |
pad_to_max_side=False, mode=Image.BILINEAR, base_pixel_number=64):
|
127 |
|
128 |
w, h = input_image.size
|
|
|
203 |
with gr.Column():
|
204 |
|
205 |
with gr.Row(equal_height=True):
|
206 |
+
cond_in = gr.Image(label="Upload a processed control image (canny, depth maps)", sources=["upload"], type="filepath")
|
207 |
image_in = gr.Image(label="Extract condition from a reference image (Optional)", sources=["upload"], type="filepath")
|
208 |
|
209 |
prompt = gr.Textbox(label="Prompt", value="best quality")
|