Spaces:
Build error
Build error
tmp
Browse files
app.py
CHANGED
@@ -173,13 +173,13 @@ css = ".input_image, .input_image {height: 600px !important; width: 600px !impor
|
|
173 |
iface = gr.Interface(
|
174 |
fn=generate_matching_superfeatures,
|
175 |
inputs=[
|
176 |
-
|
177 |
-
|
178 |
-
gr.inputs.Image(type="pil", label="First Image"),
|
179 |
-
gr.inputs.Image(type="pil", label="Second Image"),
|
180 |
gr.inputs.Slider(minimum=0, maximum=6, step=1, default=2, label="Scale"),
|
181 |
gr.inputs.Slider(minimum=1, maximum=255, step=25, default=100, label="Binarization Threshold"),
|
182 |
-
gr.inputs.Textbox(lines=1, default="", label="
|
183 |
outputs=[
|
184 |
"plot",
|
185 |
"plot",
|
@@ -193,7 +193,7 @@ iface = gr.Interface(
|
|
193 |
css=css,
|
194 |
examples=[
|
195 |
["chateau_1.png", "chateau_2.png", 2, 100, '55,14,5,4,52,57,40,9'],
|
196 |
-
["anafi1.jpeg", "anafi2.jpeg", 2, 100, '
|
197 |
],
|
198 |
)
|
199 |
iface.launch(enable_queue=True)
|
|
|
173 |
iface = gr.Interface(
|
174 |
fn=generate_matching_superfeatures,
|
175 |
inputs=[
|
176 |
+
gr.inputs.Image(shape=(1024, 1024), type="pil", label="First Image"),
|
177 |
+
gr.inputs.Image(shape=(1024, 1024), type="pil", label="Second Image"),
|
178 |
+
# gr.inputs.Image(type="pil", label="First Image"),
|
179 |
+
# gr.inputs.Image(type="pil", label="Second Image"),
|
180 |
gr.inputs.Slider(minimum=0, maximum=6, step=1, default=2, label="Scale"),
|
181 |
gr.inputs.Slider(minimum=1, maximum=255, step=25, default=100, label="Binarization Threshold"),
|
182 |
+
gr.inputs.Textbox(lines=1, default="", label="SF IDs to show (comma separated numbers from 0-255; typing 'rX' will return X random SFs", optional=True)],
|
183 |
outputs=[
|
184 |
"plot",
|
185 |
"plot",
|
|
|
193 |
css=css,
|
194 |
examples=[
|
195 |
["chateau_1.png", "chateau_2.png", 2, 100, '55,14,5,4,52,57,40,9'],
|
196 |
+
["anafi1.jpeg", "anafi2.jpeg", 2, 100, '1,4']
|
197 |
],
|
198 |
)
|
199 |
iface.launch(enable_queue=True)
|