sayedM commited on
Commit
626c9a9
·
verified ·
1 Parent(s): 4175ab9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -206,7 +206,7 @@ def click_to_similarity_in_same_image(
206
  # Gradio UI (No changes needed here)
207
  # ----------------------------
208
  with gr.Blocks(theme=gr.themes.Soft(), title="DINOv3 Single-Image Patch Similarity") as demo:
209
- gr.Markdown("# 🦖 DINOv3 Single-Image Patch Similarity")
210
  gr.Markdown("Upload one image, then **click anywhere** to highlight the most similar regions in the *same* image.")
211
 
212
  app_state = gr.State()
@@ -232,7 +232,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="DINOv3 Single-Image Patch Similari
232
  with gr.Column(scale=1):
233
  exclude_r = gr.Slider(0, 10, value=0, step=1, label="Exclude radius (patches)")
234
  topk = gr.Slider(0, 200, value=20, step=1, label="Top-K boxes")
235
- box_radius = gr.Slider(0, 10, value=4, step=1, label="Box radius (patches)")
236
 
237
  with gr.Row():
238
  marked_image = gr.Image(label="Click marker", interactive=False)
 
206
  # Gradio UI (No changes needed here)
207
  # ----------------------------
208
  with gr.Blocks(theme=gr.themes.Soft(), title="DINOv3 Single-Image Patch Similarity") as demo:
209
+ gr.Markdown("#Running on CPU so please wait the feature extaction 🦖 DINOv3 Single-Image Patch Similarity")
210
  gr.Markdown("Upload one image, then **click anywhere** to highlight the most similar regions in the *same* image.")
211
 
212
  app_state = gr.State()
 
232
  with gr.Column(scale=1):
233
  exclude_r = gr.Slider(0, 10, value=0, step=1, label="Exclude radius (patches)")
234
  topk = gr.Slider(0, 200, value=20, step=1, label="Top-K boxes")
235
+ box_radius = gr.Slider(0, 10, value=1, step=1, label="Box radius (patches)")
236
 
237
  with gr.Row():
238
  marked_image = gr.Image(label="Click marker", interactive=False)