Coder Social home page Coder Social logo

esalesky / visrep Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 5.0 99.68 MB

This repository contains an extension of fairseq for pixel / visual representations for machine translation.

Home Page: https://arxiv.org/abs/2104.08211

License: MIT License

Python 97.05% C++ 0.55% Cuda 1.24% Cython 0.42% Shell 0.59% Lua 0.13%
multilingual pixels tokenization translation

visrep's People

Contributors

alexeib avatar arendu avatar cndn avatar davidecaroselli avatar edunov avatar erip avatar esalesky avatar fifthstrand avatar freewym avatar huihuifan avatar jhcross avatar jma127 avatar joshim5 avatar kahne avatar kartikayk avatar lematt1991 avatar liezl200 avatar liuchen9494 avatar louismartin avatar maigoakisame avatar mjpost avatar multipath avatar myleott avatar pipibjc avatar shruti-bh avatar skritika avatar stephenroller avatar tangyuq avatar theweiho avatar xu-song avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

visrep's Issues

Access encoder, decoder tensors from standard transformer

Hello,

Currently, the encode method in hub_interface.py only returns tensors from image slices and decode is only called in translate and is also not the decoder of the transformer model.

Is there an easier way to access encoded tensors than _build_batches, which are actually generated from VisualTextDataset? Including decoded tensors generated in SequenceGenerator and called in inference_step.

Thank you

Looking forward to `multi` README

As discussed in person, I am interested in using this to translate from SignWriting to spoke language text.

SignWriting, can be linearly represented like so:
image

However the way it is intended to be read by humans is like so:
image

While the specification allows for up to 500x500 representation for each sign, in practice, signs are a lot smaller.
For example, the white space in this sign is huge:
image

I will need to find what size covers 99% of the data.

Looking forward to multi README so I know how to prep the image data, increase the patch size/use multiple vertical and horizontal patches, and train the model

No such dataset implementation None

Hi, I have been trying to implement the code on MTTT dataset as given in the paper. But while loading the data during fairseq train, I am getting the following error 'No such dataset implementation None' probably while loading the data.
Screenshot from 2022-08-02 15-57-28
Any kind of help would be greatly appreciated

Command line for traing in case i am doing something wrong
CUDA_VISIBLE_DEVICES=0 fairseq-train data-bin/MMMT.tokenized.en-tr --task visual_text --source-lang en --target-lang tr --target-dict dict.tr.txt --arch visual_text_transformer --image-window 15 --image-stride 10 --image-font-path fairseq/data/visual/fonts/NotoSans-Regular.ttf --image-embed-normalize --image-embed-type 1layer --share-decoder-input-output-embed --optimizer adam --adam-betas '(0.9, 0.98)' --clip-norm 0.0 --lr 5e-4 --lr-scheduler inverse_sqrt --warmup-updates 4000 --dropout 0.3 --weight-decay 0.0001 --criterion label_smoothed_cross_entropy --label-smoothing 0.1 --max-tokens 4096 --max-epoch 50

Interface to load model checkpoint

Hi,

Currently, there is no method to load the checkpoint together with their dictionaries.
It would be great if you have a PyTorch Hub interface for the model. Inference would be easier, and it could be reused for further applications.

Thanks

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.