Marlin Lee Claude Sonnet 4.6 commited on
Commit
c2f1404
·
1 Parent(s): bef3be1

Reorganize layout: feature table under UMAP, MEIs to middle, utils to right; 9-image 3x3 grid

Browse files
Files changed (1) hide show
  1. scripts/explorer_app.py +6 -7
scripts/explorer_app.py CHANGED
@@ -465,7 +465,7 @@ def _status_html(state, msg):
465
  return f'<div style="{style};padding:7px 12px;border-radius:3px;font-size:13px">{msg}</div>'
466
 
467
 
468
- def make_image_grid_html(images_info, title, cols=8):
469
  if not images_info:
470
  return (f'<h3 style="margin:4px 0 6px 0;color:#444;border-bottom:2px solid #e8e8e8;'
471
  f'padding-bottom:4px">{title}</h3>'
@@ -640,7 +640,7 @@ view_select = Select(
640
  width=220,
641
  )
642
 
643
- N_DISPLAY = 8
644
  _render_token = [0] # incremented on each new feature selection to cancel stale renders
645
 
646
 
@@ -1464,12 +1464,9 @@ summary_section = _make_collapsible("SAE Summary", summary_div)
1464
  patch_section = _make_collapsible("Patch Explorer", patch_explorer_panel)
1465
  clip_section = _make_collapsible("CLIP Text Search", clip_search_panel)
1466
 
1467
- left_panel = column(dataset_select, controls, umap_fig,
1468
- summary_section, patch_section, clip_section)
1469
 
1470
- middle_panel = column(feature_list_panel)
1471
-
1472
- right_panel = column(
1473
  status_div,
1474
  stats_div,
1475
  name_panel,
@@ -1479,6 +1476,8 @@ right_panel = column(
1479
  p75_heatmap_div, p75_zoom_div,
1480
  )
1481
 
 
 
1482
  layout = row(left_panel, middle_panel, right_panel)
1483
  curdoc().add_root(layout)
1484
  curdoc().title = "SAE Feature Explorer"
 
465
  return f'<div style="{style};padding:7px 12px;border-radius:3px;font-size:13px">{msg}</div>'
466
 
467
 
468
+ def make_image_grid_html(images_info, title, cols=9):
469
  if not images_info:
470
  return (f'<h3 style="margin:4px 0 6px 0;color:#444;border-bottom:2px solid #e8e8e8;'
471
  f'padding-bottom:4px">{title}</h3>'
 
640
  width=220,
641
  )
642
 
643
+ N_DISPLAY = 9
644
  _render_token = [0] # incremented on each new feature selection to cancel stale renders
645
 
646
 
 
1464
  patch_section = _make_collapsible("Patch Explorer", patch_explorer_panel)
1465
  clip_section = _make_collapsible("CLIP Text Search", clip_search_panel)
1466
 
1467
+ left_panel = column(dataset_select, controls, umap_fig, feature_list_panel)
 
1468
 
1469
+ middle_panel = column(
 
 
1470
  status_div,
1471
  stats_div,
1472
  name_panel,
 
1476
  p75_heatmap_div, p75_zoom_div,
1477
  )
1478
 
1479
+ right_panel = column(summary_section, patch_section, clip_section)
1480
+
1481
  layout = row(left_panel, middle_panel, right_panel)
1482
  curdoc().add_root(layout)
1483
  curdoc().title = "SAE Feature Explorer"