Spaces:
Sleeping
Sleeping
Commit History
-
Add live brain prediction mode (webcam, screen capture, video file)
siddhant-rajhansNew page: 6_Live_Inference.py - Real-time brain activation from webcam, screen capture, or uploaded video - 3D brain visualization updating live with Inferno colormap - Rolling cognitive load timeline (Visual/Auditory/Language/Executive) - Glowing metric cards updating every prediction - Start/Stop controls with FPS and latency indicators - Status bar showing mode (simulation/cortexlab), FPS, prediction count - Predictions stored in session state for use in all other analysis pages - Simulation mode works without CortexLab (predictions from image statistics) - Real mode uses TRIBE v2 when CortexLab + GPU available New utilities: - live_capture.py: WebcamCapture (OpenCV), ScreenCapture (mss), FileStreamer - All run in background threads, yield MediaFrame objects - Configurable FPS, thread-safe buffer - live_engine.py: LiveInferenceEngine - Background thread consuming frames and producing predictions - Dual mode: CortexLab real inference or simulation fallback - Computes cogni…ab204cc -
Fix Cognitive Load fillcolor crash, pre-select Visual ROIs in Brain Viewer
siddhant-rajhans- Fix hex-to-rgba conversion for confidence band fill colors (was producing invalid color strings like 'rgba(00D2FF' instead of 'rgba(0,210,255,0.15)') - Pre-select Visual region group in Brain Viewer so ROI highlighting is visible on first load4f96c68 -
Complete dashboard redesign: futuristic glassmorphism UI
siddhant-rajhansTheme overhaul: - Custom CSS with glassmorphism, neon accents, animated glow borders - Dark space background with purple/blue/cyan radial gradients - Hidden Streamlit branding (toolbar, footer, header) - Custom scrollbar, hover animations, gradient headings - Glassmorphic containers with backdrop blur - Glowing metric cards with color-coded accents Home page redesign: - 3D brain hero (rotatable Plotly mesh3d with Inferno colormap) - Gradient title with GitHub/HuggingFace/Demo link badges - 5 glowing stat cards (tests, modules, ROIs, contributors, license) - 6 feature cards in 2x3 grid with colored borders - Collapsed data configuration section All pages now use futuristic theme via inject_theme()8643122 -
Add interactive 3D Brain Viewer page
siddhant-rajhansNew page: 5_Brain_Viewer.py - Publication-quality 4-panel views (lateral L, lateral R, medial, dorsal) - Interactive rotatable 3D brain (PyVista/stpyvista with Plotly fallback) - Modality-specific activation patterns (visual/auditory/language/multimodal) - ROI highlighting with 1.8x boost for selected regions - Sulcal depth blending for anatomical context - ROI summary table with per-region statistics - Vertex activation histogram with ROI overlays - 7 camera presets, 6 colormaps, data upload support - Dark background with smooth lighting for sci-fi aesthetic New utility: brain_mesh.py - fsaverage mesh loading via nilearn (cached) - Sulcal depth map for anatomical background - Sample activation generation with modality-specific ROI weights - Publication multi-view rendering (Plotly subplots) - Interactive 3D rendering (PyVista with Plotly fallback) Updated: Dockerfile (added xvfb, libgl), requirements.txt (nilearn, pyvista, stpyvista)510957a
-
Dashboard v2: research-grade rebuild
siddhant-rajhansBiologically realistic synthetic data: - HRF convolution with canonical double-gamma response - Modality-specific ROI activation weights (visual/auditory/language/multimodal) - Spatial smoothing, AR(1) temporal noise, scanner drift - Controllable alignment strength for meaningful benchmark scores Shared session state: - Cross-page ROI carry (alignment -> temporal dynamics -> connectivity) - File upload (.npy) and download (CSV, JSON) support - Analysis log tracking across pages - Data source selector (synthetic vs uploaded) Brain Alignment (rebuilt): - Bootstrap CI error bars on all scores - Null distribution histograms with observed score overlay - RDM visualization (brain vs model side-by-side) - FDR correction for per-ROI tests - Noise ceiling estimation (split-half reliability) - Methodology documentation with references Cognitive Load (rebuilt): - Confidence bands on timeline (bootstrap across vertices) - Dimension correlation heatmap - Per-ROI activation breakdown within each …9b23ae9
-
Initial CortexLab Dashboard - interactive analysis toolkit
siddhant-rajhansStreamlit multipage app with 4 analysis pages: - Brain Alignment Benchmark: compare AI models with RSA/CKA/Procrustes + permutation tests - Cognitive Load Scorer: timeline, radar chart, dimension breakdown with content profiles - Temporal Dynamics: peak latency, lag correlation, sustained/transient decomposition - ROI Connectivity: correlation heatmap, network clustering, degree centrality, graph viz Runs on synthetic data by default - no GPU or fMRI data required.bce4bae