Spaces:
Running
on
Zero
Running
on
Zero
update parameter
Browse files
app.py
CHANGED
@@ -232,7 +232,7 @@ with gr.Blocks() as demo:
|
|
232 |
model_dropdown = gr.Dropdown(["SAM(sam_vit_b)", "MobileSAM", "DiNO(dinov2_vitb14_reg)", "CLIP(openai/clip-vit-base-patch16)"], label="Model", value="SAM(sam_vit_b)", elem_id="model_name")
|
233 |
layer_slider = gr.Slider(0, 11, step=1, label="Layer", value=11, elem_id="layer")
|
234 |
num_eig_slider = gr.Slider(1, 1000, step=1, label="Number of eigenvectors", value=100, elem_id="num_eig", info='increase for more clusters')
|
235 |
-
affinity_focal_gamma_slider = gr.Slider(0.01, 1, step=0.01, label="Affinity focal gamma", value=0.
|
236 |
|
237 |
with gr.Accordion("Additional Parameters", open=False):
|
238 |
node_type_dropdown = gr.Dropdown(["attn: attention output", "mlp: mlp output", "block: sum of residual"], label="Node type", value="block: sum of residual", elem_id="node_type", info="which feature to take from each layer?")
|
|
|
232 |
model_dropdown = gr.Dropdown(["SAM(sam_vit_b)", "MobileSAM", "DiNO(dinov2_vitb14_reg)", "CLIP(openai/clip-vit-base-patch16)"], label="Model", value="SAM(sam_vit_b)", elem_id="model_name")
|
233 |
layer_slider = gr.Slider(0, 11, step=1, label="Layer", value=11, elem_id="layer")
|
234 |
num_eig_slider = gr.Slider(1, 1000, step=1, label="Number of eigenvectors", value=100, elem_id="num_eig", info='increase for more clusters')
|
235 |
+
affinity_focal_gamma_slider = gr.Slider(0.01, 1, step=0.01, label="Affinity focal gamma", value=0.5, elem_id="affinity_focal_gamma", info="decrease for shaper NCUT")
|
236 |
|
237 |
with gr.Accordion("Additional Parameters", open=False):
|
238 |
node_type_dropdown = gr.Dropdown(["attn: attention output", "mlp: mlp output", "block: sum of residual"], label="Node type", value="block: sum of residual", elem_id="node_type", info="which feature to take from each layer?")
|