Giter Club home page Giter Club logo

slfr-examples's Introduction

Sign Language Fingerspelling Recognition (SLFR) Examples

Virtual environment

Miniconda was used to manage the virtual environment, and it is suggested to do so. To get the environment up and running, execute:

conda env create -f environment.yml

Dataset

A copy of the dataset from the American Sign Language Fingerspelling Recognition Kaggle competition is located in /home/temporal2/jsoutelo/datasets/GSLFR. It is suggested to create a symlink to it inside the ./data folder. Run:

ln -s  /home/temporal2/jsoutelo/datasets/GSLFR absolute/path/to/data

Data splits

The data splits are located inside the ./data_gen directory. Just as training (or inference), they have a configuration file associated to each of them, they can be found in ./data_gen/config. To generate a new split run:

python -m data_gen.generate_splits --config ./data_gen/config/config_file.yaml

As a result, a folder containing the splits will be created. It will have the same name as the configuration file used to generate them. I woudl recommend to start by generating the baseline.yaml split.

Raw data

In case that you want to use the raw data from the competition directly, it is provided two scripts inside ./raw_data_scripts folder. They handle the extraction logic of the raw .parquet files. This is not recommended.

Fine-tuning and Inference

To switch between the two modes it is just enough to edit the phase field in the config file to run either train or test. Once configured, simply execute the following:

python main.py --config ./path/to/config/file.yaml

Two examples are provided in the ./config folder for reference.

Notes

Problems with torch_edit_distance

If some kind of problem airses with the package torch_edit_distance please reinstall. A compiled version for the baiona server can be found in /home/temporal2/jsoutelo/builds/pytorch-edit-distance-bai. With a virtual environment activated, run:

cd /home/temporal2/jsoutelo/builds/pytorch-edit-distance-bai
python setup.py install

If the error persists feel free to reach out to me.

slfr-examples's People

Stargazers

Luis Ruanova Lea avatar

Watchers

Joshua avatar Luis Ruanova Lea avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.