hshreeshail / hshreeshail.github.io Goto Github PK
View Code? Open in Web Editor NEWPersonal Web Space
Personal Web Space
Hi, i see, you finished this project (https://github.com/kayoyin/transformer-slt) and got the result. I also trying to get result, but i took an error. Could you help me please
I done training stage, after i am trying to inference stage with "python translate.py -model model [model2 model3 ...] -src data/phoenix2014T.test.gloss -output pred.txt -gpu 0 -replace_unk -beam_size 4" comment,
but i am taking this error;
"[2023-04-29 02:26:55,171 INFO] Translating shard 0.
Traceback (most recent call last):
File "translate.py", line 6, in
main()
File "/home/yemenoglu/anaconda3/venv/transformer-slt/onmt/bin/translate.py", line 48, in main
translate(opt)
File "/home/yemenoglu/anaconda3/venv/transformer-slt/onmt/bin/translate.py", line 25, in translate
translator.translate(
File "/home/yemenoglu/anaconda3/venv/transformer-slt/onmt/translate/translator.py", line 351, in translate
batch_data = self.translate_batch(
File "/home/yemenoglu/anaconda3/venv/transformer-slt/onmt/translate/translator.py", line 546, in translate_batch
return self._translate_batch_with_strategy(batch, src_vocabs,
File "/home/yemenoglu/anaconda3/venv/transformer-slt/onmt/translate/translator.py", line 677, in _translate_batch_with_strategy
decode_strategy.advance(log_probs, attn)
File "/home/yemenoglu/anaconda3/venv/transformer-slt/onmt/translate/beam_search.py", line 190, in advance
torch.div(self.topk_ids, vocab_size, out=self._batch_index)
RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future release div will perform true division as in Python 3. Use true_divide or floor_divide (// in Python) instead"
Could you help me please, thank you.
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.