Skip to main content

Add your description here

Project description

Minimal-SLT

Goal and Purpose

Minimal-SLT is a minimal and clean sign language translation (SLT) library developed for educational purposes based on Hugging Face 🤗 and PyTorch. It is developed for Phoenix14T (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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minimal_slt-0.1.1.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minimal_slt-0.1.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file minimal_slt-0.1.1.tar.gz.

File metadata

  • Download URL: minimal_slt-0.1.1.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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

Hashes for minimal_slt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0c2ed0bb20b3a227a7b9186d3c789531bbe0af2b3ae5779d2f071d125cdace3a
MD5 551818f4c8ec2af16c684ae6f3fa00cd
BLAKE2b-256 5fe8653fa0744db58f83529e2786a8a2322cbc7a4c62c5cd60b47d2a95220c27

See more details on using hashes here.

File details

Details for the file minimal_slt-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: minimal_slt-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","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

Hashes for minimal_slt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 779d5069eb1339d3cf343bad356d07dbea4b1e62d53f0abbd1c9991deaf948a5
MD5 c9ee7d0b5bf6ec0f72b96d77f351a18d
BLAKE2b-256 f27688e16bd6eadef5eb45012946da64f01ff5791c5a0301c5475a5ec71ea16d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page