FangSen9000 commited on
Commit ·
1e51e00
1
Parent(s): af2130e
Update SignX README docs
Browse files- README.md +24 -83
- README_baseline.md +97 -0
README.md
CHANGED
|
@@ -1,97 +1,38 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
|
| 4 |
-
[**Highlights**](#paper-highlights) |
|
| 5 |
-
[**Overview**](#model-visualization) |
|
| 6 |
-
[**DGS3-T**](#dgs3-t) |
|
| 7 |
-
[**Training&Eval**](#training-and-evaluation) |
|
| 8 |
-
[**Model Performance**](#performance) |
|
| 9 |
-
[**Citation**](#citation)
|
| 10 |
|
|
|
|
| 11 |
|
| 12 |
-
|
| 13 |
|
|
|
|
| 14 |
|
| 15 |
-
##
|
| 16 |
|
| 17 |
-
|
| 18 |
-
Sign languages are unique **natural** languages widely used in Deaf communities. They express
|
| 19 |
-
meaning through hand gestures, body movements and facial expressions, and are often in a video form.
|
| 20 |
-
We refer the readers to [Sign language Processing](https://research.sign.mt/) for a better understanding
|
| 21 |
-
of sign languages.
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
the training data scarcity issue via multi-task learning and unified modeling.
|
| 26 |
|
| 27 |
-
Briefly,
|
| 28 |
-
- We propose a simple unified model, SLTUNET, for SLT, and show that jointly modeling
|
| 29 |
-
multiple SLT-related tasks benefits the translation.
|
| 30 |
-
- We propose a set of optimization techniques for SLTUNET aiming at an improved trade-off
|
| 31 |
-
between model capacity and regularization, which also helps SLT models for single tasks.
|
| 32 |
-
- SLTUNET performs competitively to previous methods and yields the new state-of-the-art
|
| 33 |
-
performance on CSL-Daily.
|
| 34 |
-
- We use the DGS Corpus and propose [DGS3-T](#dgs3-t) for end-to-end SLT, with larger
|
| 35 |
-
scale, richer topics and more significant challenges than existing datasets.
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
* Similar to PHOENIX-2014T and CSL-Daily, DGS3-T is a dataset used for the study of SLT, consisting of sign videos and text translations.
|
| 45 |
-
|
| 46 |
-
* Different from these previous datasets, DGS3-T is larger at scale, covering broader domains and topics with more signers.
|
| 47 |
-
|
| 48 |
-
* DGS3-T represents more practical challenges in SLT. We encourage researchers to consider it for SLT research.
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
**DGS3-T Licensing**
|
| 52 |
-
|
| 53 |
-
DGS3-T is based on [the Public DGS Corpus](https://www.sign-lang.uni-hamburg.de/meinedgs/ling/license_en.html). The license of the Public DGS Corpus does not allow any computational research except if express
|
| 54 |
-
permission is given by the University of Hamburg.
|
| 55 |
-
|
| 56 |
-
**Constructing DGS3-T**
|
| 57 |
-
|
| 58 |
-
Please check out [dgs3-t](./dgs3-t) for details.
|
| 59 |
-
|
| 60 |
-
## Requirement
|
| 61 |
-
|
| 62 |
-
The source code is based on older tensorflow.
|
| 63 |
-
|
| 64 |
-
- python==3.8
|
| 65 |
-
- tensorflow==1.15
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
## Training and Evaluation
|
| 69 |
-
|
| 70 |
-
Training includes two phrase: 1) pretrain sign embeddings; 2) train SLTUNet model.
|
| 71 |
-
|
| 72 |
-
Please check out [example](./example) for details.
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
## Performance
|
| 76 |
-
|
| 77 |
-

|
| 78 |
-
|
| 79 |
-
Check out [our paper](https://openreview.net/forum?id=EBS4C77p_5S) for more results on CSLDaily and DGS3-T.
|
| 80 |
|
| 81 |
-
|
| 82 |
-
and gloss sequence during training and inference**;
|
| 83 |
-
We post-process the generated subword sequence into a character sequence at evaluation for char-level BLEU.
|
| 84 |
|
| 85 |
-
|
|
|
|
|
|
|
| 86 |
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
@inproceedings{
|
| 90 |
-
zhang2023sltunet,
|
| 91 |
-
title={{SLTUNET}: A Simple Unified Model for Sign Language Translation},
|
| 92 |
-
author={Biao Zhang and Mathias M{\"u}ller and Rico Sennrich},
|
| 93 |
-
booktitle={The Eleventh International Conference on Learning Representations },
|
| 94 |
-
year={2023},
|
| 95 |
-
url={https://openreview.net/forum?id=EBS4C77p_5S}
|
| 96 |
-
}
|
| 97 |
```
|
|
|
|
|
|
| 1 |
+
# SignX
|
| 2 |
|
| 3 |
+
https://signerx.github.io/SignX/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
This is a CSLR model. In the future, it will be further improved to become an open-world SLT model.
|
| 6 |
|
| 7 |
+
Currently, it has been pluginized, that is, the root directory contains viser_backend.py and index.js. These two files will enable this repository to be recognized by the control panel as a plugin.
|
| 8 |
|
| 9 |
+
Therefore, users should first clone the panel, configure the panel environment, and then place this repository in the plugin folder.
|
| 10 |
|
| 11 |
+
## Environment Setup
|
| 12 |
|
| 13 |
+
SignX inference uses two conda environments:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
- `signx-slt`: PyTorch / SMKD stage (RGB feature extraction)
|
| 16 |
+
- `slt_tf1`: TensorFlow 1.15 / SLTUNET stage (Recognition based on feature space)
|
|
|
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
```bash
|
| 20 |
+
conda env create -f env/signx-slt.yml
|
| 21 |
+
conda activate signx-slt
|
| 22 |
+
pip install -r env/signx-slt.txt
|
| 23 |
|
| 24 |
+
conda env create -f env/slt_tf1.yml
|
| 25 |
+
conda activate slt_tf1
|
| 26 |
+
pip install -r env/slt_tf1.txt
|
| 27 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
Quick check:
|
|
|
|
|
|
|
| 30 |
|
| 31 |
+
```bash
|
| 32 |
+
conda activate signx-slt
|
| 33 |
+
python -V
|
| 34 |
|
| 35 |
+
conda activate slt_tf1
|
| 36 |
+
python -V
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
```
|
| 38 |
+
|
README_baseline.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SLTUNET: A Simple Unified Model for Sign Language Translation (ICLR 2023)
|
| 2 |
+
|
| 3 |
+
[**Paper**](https://openreview.net/forum?id=EBS4C77p_5S) |
|
| 4 |
+
[**Highlights**](#paper-highlights) |
|
| 5 |
+
[**Overview**](#model-visualization) |
|
| 6 |
+
[**DGS3-T**](#dgs3-t) |
|
| 7 |
+
[**Training&Eval**](#training-and-evaluation) |
|
| 8 |
+
[**Model Performance**](#performance) |
|
| 9 |
+
[**Citation**](#citation)
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
* Update (2023/07/09): We release the trained model for phoenix and csldaily at [here](https://data.statmt.org/bzhang/iclr2023_sltunet/). See `infer.sh` for details.
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
## Paper Highlights
|
| 16 |
+
|
| 17 |
+
Among thousands of languages globally, some are written, some are spoken, while some are signed.
|
| 18 |
+
Sign languages are unique **natural** languages widely used in Deaf communities. They express
|
| 19 |
+
meaning through hand gestures, body movements and facial expressions, and are often in a video form.
|
| 20 |
+
We refer the readers to [Sign language Processing](https://research.sign.mt/) for a better understanding
|
| 21 |
+
of sign languages.
|
| 22 |
+
|
| 23 |
+
In this study, we aim at improving sign language translation, i.e. translating information from
|
| 24 |
+
sign languages (in a video) to spoken languages (in text). We address the video-text modality gap and
|
| 25 |
+
the training data scarcity issue via multi-task learning and unified modeling.
|
| 26 |
+
|
| 27 |
+
Briefly,
|
| 28 |
+
- We propose a simple unified model, SLTUNET, for SLT, and show that jointly modeling
|
| 29 |
+
multiple SLT-related tasks benefits the translation.
|
| 30 |
+
- We propose a set of optimization techniques for SLTUNET aiming at an improved trade-off
|
| 31 |
+
between model capacity and regularization, which also helps SLT models for single tasks.
|
| 32 |
+
- SLTUNET performs competitively to previous methods and yields the new state-of-the-art
|
| 33 |
+
performance on CSL-Daily.
|
| 34 |
+
- We use the DGS Corpus and propose [DGS3-T](#dgs3-t) for end-to-end SLT, with larger
|
| 35 |
+
scale, richer topics and more significant challenges than existing datasets.
|
| 36 |
+
|
| 37 |
+
## Model Visualization
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
## DGS3-T
|
| 43 |
+
|
| 44 |
+
* Similar to PHOENIX-2014T and CSL-Daily, DGS3-T is a dataset used for the study of SLT, consisting of sign videos and text translations.
|
| 45 |
+
|
| 46 |
+
* Different from these previous datasets, DGS3-T is larger at scale, covering broader domains and topics with more signers.
|
| 47 |
+
|
| 48 |
+
* DGS3-T represents more practical challenges in SLT. We encourage researchers to consider it for SLT research.
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
**DGS3-T Licensing**
|
| 52 |
+
|
| 53 |
+
DGS3-T is based on [the Public DGS Corpus](https://www.sign-lang.uni-hamburg.de/meinedgs/ling/license_en.html). The license of the Public DGS Corpus does not allow any computational research except if express
|
| 54 |
+
permission is given by the University of Hamburg.
|
| 55 |
+
|
| 56 |
+
**Constructing DGS3-T**
|
| 57 |
+
|
| 58 |
+
Please check out [dgs3-t](./dgs3-t) for details.
|
| 59 |
+
|
| 60 |
+
## Requirement
|
| 61 |
+
|
| 62 |
+
The source code is based on older tensorflow.
|
| 63 |
+
|
| 64 |
+
- python==3.8
|
| 65 |
+
- tensorflow==1.15
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
## Training and Evaluation
|
| 69 |
+
|
| 70 |
+
Training includes two phrase: 1) pretrain sign embeddings; 2) train SLTUNet model.
|
| 71 |
+
|
| 72 |
+
Please check out [example](./example) for details.
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
## Performance
|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
|
| 79 |
+
Check out [our paper](https://openreview.net/forum?id=EBS4C77p_5S) for more results on CSLDaily and DGS3-T.
|
| 80 |
+
|
| 81 |
+
* Update (2023/04/02): note, for CSL-Daily, **we always adopt subword preprocessing (NOT character) for the target text
|
| 82 |
+
and gloss sequence during training and inference**;
|
| 83 |
+
We post-process the generated subword sequence into a character sequence at evaluation for char-level BLEU.
|
| 84 |
+
|
| 85 |
+
## Citation
|
| 86 |
+
|
| 87 |
+
If you draw any inspiration from our study, please consider to cite our paper:
|
| 88 |
+
```
|
| 89 |
+
@inproceedings{
|
| 90 |
+
zhang2023sltunet,
|
| 91 |
+
title={{SLTUNET}: A Simple Unified Model for Sign Language Translation},
|
| 92 |
+
author={Biao Zhang and Mathias M{\"u}ller and Rico Sennrich},
|
| 93 |
+
booktitle={The Eleventh International Conference on Learning Representations },
|
| 94 |
+
year={2023},
|
| 95 |
+
url={https://openreview.net/forum?id=EBS4C77p_5S}
|
| 96 |
+
}
|
| 97 |
+
```
|