esalesky / visrep Goto Github PK
View Code? Open in Web Editor NEWThis repository contains an extension of fairseq for pixel / visual representations for machine translation.
Home Page: https://arxiv.org/abs/2104.08211
License: MIT License
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
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
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:
However the way it is intended to be read by humans is like so:
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:
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
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.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.