Skip to content
yy1labPublic

About

Semantic Frame Aggregation-based Transformer for Live Video Comment Generation

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFAT

This repository contains the codes and data of our paper: Semantic Frame Aggregation-based Transformer for Live Video Comment Generation.

VideoChat Dataset

Processed Dataset can be downloaded from the Google-Drive and placed in ../dataset folder.

SFAT Model

SFAT model checkpoints (pretraining and training) can be downloaded from the Google-Drive and placed in ../model_saves/avc_transformer folder.

  • Pretraining: In the first stage, the text encoder for context comments is pre-trained using a masked language modeling (MLM) task. Pretraining script using main.py in CODE folder:

       python3 main.py -model avc -d livechat -b 32 -e 100 -lr 1e-4 -m pretrain

    The model from pretraining will be saved in the ../model_saves/avc_transformer folder.

    The pre-trained model checkpoint can be downloaded from the above Google Drive: pretrain_final.pth.

  • Training: In the second stage, the entire model, including the video and context comment encoders, as well as the decoder, is trained. The objective in this phase is to generate the target comment from the multimodal inputs.

    Training the model script using main.py in CODE folder:

       python3 main.py -model avc -d livechat -e 200 -lr 1e-4 -b 32 -m train -l pretrain_final.pth

    The model from training will be saved in the ../model_saves/avc_transformer folder.

    The trained model checkpoint can be downloaded from the above Google Drive: checkpoint_0.0001_199e.pth.

  • Evaluation: Load the train checkpoint and evaluate the model using the following script:

       python3 main.py -model avc -d livechat -lr 1e-4 -b 32 -m eval -l checkpoint_0.0001_199e.pth

    Citation

    If you find this work useful, please cite:

    @ARTICLE{11146668,
      author={Fatima, Anam and Yu, Yi and Kapuriya, Janak and Lalanne, Julien and Shukla, Jainendra},
      journal={IEEE Transactions on Multimedia}, 
      title={Semantic Frame Aggregation-Based Transformer for Live Video Comment Generation}, 
      year={2025},
      volume={27},
      number={},
      pages={7821-7833},
      keywords={Videos;Visualization;Semantics;Oral communication;Transformers;Context modeling;Training;Measurement;Decoding;Data mining;Multimodal processing;text generation;live-video commenting},
      doi={10.1109/TMM.2025.3604921}}

About

Semantic Frame Aggregation-based Transformer for Live Video Comment Generation

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages