Code for NeurIPS 2025 paper Talk2Event.
- Linux
- Python 3.8
- PyTorch 2.0.0 + CUDA 11.7
We recommend using conda with the provided environment file:
conda env create -f environment.yml
conda activate talk2eventCompile custom CUDA operators:
sh utils/init.shDownload dataset:
After extraction, set talk2event_src_path in configs/pretrain.json to the dataset root path:
{
"talk2event_src_path": "YOUR_DATA_PATH"
}Place the following files under data/:
pretrain_event.ckpt
https://huggingface.co/datasets/dylanorange/talk2event/resolve/main/pretrain_event.ckptpretrain_2d.pth
https://huggingface.co/datasets/dylanorange/talk2event/resolve/main/pretrain_2d.pth
Evaluation checkpoints:
event.pth
https://huggingface.co/datasets/dylanorange/talk2event/resolve/main/event.pthfusion.pth
https://huggingface.co/datasets/dylanorange/talk2event/resolve/main/fusion.pth
python main.py \
--output_dir outputs/train_fusion \
--modality fusion \
--attribute fusion \
--moe_fusionCommon flags:
--resume: resume from checkpoint--modality:eventorfusion--attribute:all/fusion/ other supported attribute keys
Event model:
python test.py \
--output_dir outputs/test_event \
--resume ckpt/event.pth \
--modality event \
--attribute fusion \
--moe_fusionFusion model:
python test.py \
--output_dir outputs/test_fusion \
--resume ckpt/fusion.pth \
--modality fusion \
--attribute fusion \
--moe_fusionNotes:
--resumepoints to the checkpoint to evaluate.--moe_fusionis typically used together with--attribute fusion.- Output files are saved as
{checkpoint_name}.jsonand{checkpoint_name}.pklin--output_dir.
After running test.py, the output directory contains:
{checkpoint_name}.json: metrics{checkpoint_name}.pkl: inference results for visualization
python vis_tools/active_window.pyThen select the target *.pkl file from the dropdown in the UI.