TRIBE Subcortex extends the public TRIBE v2 demo into a focused Colab notebook for cortical prediction, deep-brain ROI activity, and subcortical response timelines.
- Local video analysis in Google Colab
- Cortical TRIBE v2 prediction and surface visualization
- Subcortical prediction for response-related ROIs
- ROI dashboards for accumbens, amygdala, caudate, putamen, pallidum, thalamus, and hippocampus
- Composite subcortical response scores over time
- Hype vs release window comparison
- Peak timing tables
- Google Drive save/load for reusable prediction outputs
notebooks/tribe_subcortex.ipynb
- Open
notebooks/tribe_subcortex.ipynbin Google Colab. - Select a GPU runtime.
- Run the install cell.
- Restart the runtime after installation.
- Run the HuggingFace login cell if gated models are needed.
- Upload a video through the Colab file panel.
- Recommended: rename the uploaded file to
video.mp4, so the notebook path/content/video.mp4works unchanged. - If you use another filename, update
video_path = Path("/content/your_file.mp4")in the video cell. - Run cortical and subcortical prediction cells.
- Save outputs to Google Drive before ending the runtime.
In Colab, open the left Files panel and upload your local video into /content. The simplest path is:
/content/video.mp4
Either rename your uploaded file to video.mp4, or edit the notebook cell:
video_path = Path("/content/your_file.mp4")The /content folder is temporary. If the runtime restarts or disconnects, upload the video again or store reusable outputs in Google Drive.
The notebook can save prediction outputs to Google Drive and load them later. This lets you refine plots, ROI windows, and dashboards without rerunning the full video encoding and prediction pipeline.
MIT