GithubHelp home page GithubHelp logo

hshreeshail.github.io's People

Contributors

hshreeshail avatar

Watchers

 avatar

hshreeshail.github.io's Issues

About "kayoyin / transformer-slt" project

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.

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.