PyTorch dataset wrappers for PHOENIX 2014 & PHOENIX-2014-T sign language datasets.
Project description
PHOENIX Datasets 🐦
Introduction
PHOENIX-2014 and PHOENIX-2014-T are popular large scale German sign language datasets developed by Human Language Technology & Pattern Recognition Group from RWTH Aachen University, Germany. This package provides a PyTorch dataset wrapper for those two datasets to make the building of PyTorch model on these two datasets easier.
Installation
pip install git+https://github.com/enhuiz/phoenix-datasets
Example Usage
from phoenix_datasets import PhoenixVideoTextDataset
from torch.utils.data import DataLoader
dtrain = PhoenixVideoTextDataset(
# your path to this folder, download it from official website first.
root="data/phoenix-2014-multisigner",
split="train",
p_drop=0.5,
random_drop=True,
)
vocab = dtrain.vocab
print("Vocab", vocab)
dl = DataLoader(dtrain, collate_fn=dtrain.collate_fn)
for batch in dl:
video = batch["video"]
text = batch["text"]
# Do per-frame augmentation (e.g. normalization, cropping) here if needed.
# kornia will be a good tool for this
# video = augment(video)
assert len(video) == len(text)
print(len(video))
print(video[0].shape)
print(text[0].shape)
break
Supported Features
- Load the automatic alignments for PHOENIX-2014
- Randomly/evenly frame dropping augmentation
TODOs
- Implement Corpus for PHOENIX-2014-T
- Evaluation Wrappers
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
File details
Details for the file phoenix_datasets-0.0.1.dev0.tar.gz
.
File metadata
- Download URL: phoenix_datasets-0.0.1.dev0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acbc587b2e9d56ec62ce8c5ecb1153f83ba1acac2706302e4d7b5a2f636346f3 |
|
MD5 | 484fa55e48bc2822ac05650e2dd130c7 |
|
BLAKE2b-256 | edabea80ec83b3ddddfc3309ba4e46071e740d59fc1b101864399ccdd3873e6d |
File details
Details for the file phoenix_datasets-0.0.1.dev0-py3-none-any.whl
.
File metadata
- Download URL: phoenix_datasets-0.0.1.dev0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1ce79c9525476273f3800cec636000db5cb77d94316b554334284afdf12dfad |
|
MD5 | ca04dee2de531a0eedcc850d4dea2e84 |
|
BLAKE2b-256 | e5178b9f2fc50188a853a13b9c660405482c135fa4866ecfd6af816eff1a21d9 |