A minimal Sign Language Translation package
Project description
Minimal-SLT
Goal and Purpose
Minimal-SLT is a minimal and clean sign language translation (SLT) package developed for educational purposes based on Hugging Face 🤗 and PyTorch. It is developed for Phoenix14T dataset (DGS->de). But it can be adapted to other datasets easily.
Features
- Feature extraction (e.g., I3D and timm-supported models)
- Transformer model
- Wandb logging
- HF trainer
- BLEU, Chrf, ROUGE, BLEURT evaluation
Installation
Minimal-SLT uses UV. Make sure to install UV first.
uv venv .venv
source .venv/bin/activate
uv pip install minimal-slt
# for evaluation
git clone https://github.com/google-research/bleurt.git
cd bleurt
pip install .
uv pip install rouge_score
Usage
Feature extraction
# timm-supported
uv run minimal_slt feat --config configs/base_config.yaml --feat_type timm --timm_model "timm/vit_base_patch16_clip_224.openai"
# python -m minimal_slt feat --config configs/base_config.yaml --feat_type timm --timm_model "timm/vit_base_patch16_clip_224.openai"
For I3D, first download WLASL pre-trained weights from WLASL repo.
# I3D
uv run minimal_slt feat --config configs/base_config.yaml
# python -m minimal_slt feat --config configs/base_config.yaml
Training
uv run minimal_slt train --config configs/base_config.yaml --outpath your_minimal_slt_path
# python -m minimal_slt train --config configs/base_config.yaml --outpath your_minimal_slt_path
Inference
uv run minimal_slt test --config configs/base_config.yaml --model_path your_minimal_slt_path --output_dir ./artifacts/results
# python -m minimal_slt test --config configs/base_config.yaml --model_path your_minimal_slt_path --output_dir ./artifacts/results
Evaluation
uv run minimal_slt eval -i ./artifacts/results
# python -m minimal_slt eval -i ./artifacts/results
Contact
Please leave an issue if you have questions or issues with the code.
For general questions, email me at shakibyzn <at> gmail.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minimal_slt-0.1.2.tar.gz.
File metadata
- Download URL: minimal_slt-0.1.2.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8af4e22b158509560829a97dbef6d69ab94c24b430e690613eba1e2db2006dc2
|
|
| MD5 |
df28a59fc5dd871aeac2392869ea0507
|
|
| BLAKE2b-256 |
acd268d7a8722134b1dae8300238149d8c444cd3cd8cf8a4babde7ab661e2672
|
File details
Details for the file minimal_slt-0.1.2-py3-none-any.whl.
File metadata
- Download URL: minimal_slt-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16dd9a65de091a8f608de66e200f6f87728896e05d95a04f01b20c35d80022d3
|
|
| MD5 |
f50db71fb7db9c484d73325891af70cb
|
|
| BLAKE2b-256 |
125b60634ac33cf57b3867e14edbcb038d7d107e6385a84c12c227a0ec610d30
|