This repository accompanies our project submitted by Yonatan Elsaesser and Nate Liebmann as part of the Workshop on Computational Methods in Brain Research at Tel Aviv University, 2023, under the supervision of Idan Grossbard, Prof. Galit Yovel & Prof. Amir Globerson.
Recognition of human faces is known to rely on more than merely visual characteristics, with semantic information appearing to play an important role in our mental representation of others. Multi-modal DNNs like CLIP mark a promising direction in modelling human perception, but fail to capture its full semantic depth. We present an end-to-end framework for fine-tuning CLIP on a visuo-semantic knowledge graph derived automatically from a motion picture's scirpt and video. We show, anecdotally, that the learned reprentations express the semantics of the film. More work over a larger dataset is needed to generalise the results.
script_segmentation - a helper tool that given a text file containing a movie script, segments it into scenes.face_detection - a pipeline for annotating and extracting face images from the video of a film, embedding them and clustering them by character.model - contains the training code used to fine-tune CLIP on the knowledge graph.This project is a tool for segmenting a movie script into scenes.
pip install -r requirements.txt
script_segmentation directory.python script_segmentation.py <movie name> --path <script file>
This project is a pipeline for annotating and extracting face images from the video of a film, embedding them and clustering them by character.
pip install -r requirements.txt
face_detection directory.python cluster_pipeline.py <movie name> <video file> --output <output directory>
This project is a script knowledge graph builder.
<index>.txt, where <index> is a number starting from 0.chmod +x script-kg-builder_<platform>
./script-kg-builder_<platform> <script directory> <output file>
This project is a fine-tuning pipeline for CLIP on a visuo-semantic knowledge graph.
pip install -r requirements.txt
model directory.python training.py
79 commits
15 commits
Python
74.7%
Go
25.3%
This repository accompanies our project submitted by Yonatan Elsaesser and Nate Liebmann as part of the Workshop on Computational Methods in Brain Research at Tel Aviv University, 2023, under the supervision of Idan Grossbard, Prof. Galit Yovel & Prof. Amir Globerson.
Recognition of human faces is known to rely on more than merely visual characteristics, with semantic information appearing to play an important role in our mental representation of others. Multi-modal DNNs like CLIP mark a promising direction in modelling human perception, but fail to capture its full semantic depth. We present an end-to-end framework for fine-tuning CLIP on a visuo-semantic knowledge graph derived automatically from a motion picture's scirpt and video. We show, anecdotally, that the learned reprentations express the semantics of the film. More work over a larger dataset is needed to generalise the results.
script_segmentation - a helper tool that given a text file containing a movie script, segments it into scenes.face_detection - a pipeline for annotating and extracting face images from the video of a film, embedding them and clustering them by character.model - contains the training code used to fine-tune CLIP on the knowledge graph.This project is a tool for segmenting a movie script into scenes.
pip install -r requirements.txt
script_segmentation directory.python script_segmentation.py <movie name> --path <script file>
This project is a pipeline for annotating and extracting face images from the video of a film, embedding them and clustering them by character.
pip install -r requirements.txt
face_detection directory.python cluster_pipeline.py <movie name> <video file> --output <output directory>
This project is a script knowledge graph builder.
<index>.txt, where <index> is a number starting from 0.chmod +x script-kg-builder_<platform>
./script-kg-builder_<platform> <script directory> <output file>
This project is a fine-tuning pipeline for CLIP on a visuo-semantic knowledge graph.
pip install -r requirements.txt
model directory.python training.py
79 commits
15 commits
Python
74.7%
Go
25.3%