Downloads · 30 days
0
SilentSpeak/torchnet
torchnet is a machine learning model from SilentSpeak. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as gpl-3.0.
Project was developed on using python3.8, in a Linux Ubuntu 24.04 run python -m pip install -r requirements.txt to make sure your dependencies are the same as mine the list of video files to be used for training and v…
Downloads · 30 days
0
Access
Public
Updated Feb 3, 2024
Repo size
73.4 GB
Likes
0
Public
Click a slice to open those files.
.txt4.7 MB · 96%
From the Hugging Face model README
Project was developed on using python3.8, in a Linux Ubuntu 24.04
run python -m pip install -r requirements.txt to make sure your dependencies are the same as mine
the list of video files to be used for training and validation when training normal LipNet (not phonemes prediction)
are in unseen_train.txt and unseen_test.txt respectively.
the datasets are zipped in lip/*.zip, unzip them into the same location and run python main.py to start training
hyperparamters are found in options.py
Project Setup
git pull https://huggingface.co/SilentSpeak/torchnet phonemespython3.8 -m venv venvsource venv/bin/activatepython -m pip install -r requirements.txt to get dependenciesgit lfs installgit lfs pullFollowing the project setup, you can run training as follows:
To run training for the LipNet phonemes predictor, run python main.py
To run training for the LipNet phonemes to text transformer predictor, run python TransformerTrainer.py
To run training for the LipNet-to-BiGRU-to-text transformer predictor, run python TranslatorTrainer.py
To run evaluation for the lipnet phonemes predictor + phonemes-to-text transformer end-to-end pipeline,
run cd tests && python lipnet-pipeline.py. The model weights used in lipnet-pipeline.py are included in the repo as
LFS files in the saved-weights folder.
The LRS2 dataset was too large to include in the repo, and access to the LRS2 dataset is conditional on accepting
the non-commercial usage license. However, the config file for training on the LRS2 dataset can be found in options_lrs2.py
, and the preprocessing code for the LRS2 dataset can be found in scripts/extract_crop_lips_v2.py and scripts/generate_lsr2_train.py.
The LRS2 dataset itself can be be found at https://www.robots.ox.ac.uk/~vgg/data/lip_reading/lrs2.html