New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deeppavlov.core.common.errors.ConfigError: 'Given fasttext model does NOT match fasttext model used previously to train loaded model' #69
Comments
Could you, please, provide more info: |
I followed the instructions and ran the following command... python deep.py interactbot skills/go_bot/config.json -t <TELEGRAM_TOKEN> |
This error arises when one trying to download pre-trained model but provides with another embedding file (not with which it was trained). |
This is the full message... (deeppavlov) mdixie@my-machine:/n/w1-mdixie/DeepPavlov/deeppavlov$ python deep.py interactbot skills/go_bot/config.json -t 445864402:AAF1f9IlVwSez7EByRA10e9gBHF-CfThkdk :: initializing :: restoring checkpoint from ../download/go_bot_rnn/model session restored :: initializing :: restoring checkpoint from ../download/ner/dstc_ner_model [loading embeddings from :: initializing [ loading weights from |
This error arises when one tries to run pre-trained model with another embedding file (not this one with which it was trained).
you are trying to run pre-trained models that previously should be downloaded within the following command:
Did you run this command to download necessary files? |
Yes, I did as you said. It reads embedding from ../download/embeddings/dstc2_fasttext_model_100.bin |
Unfortunately, I tried to reproduce this mistake: I initialized new environment, installed library using instruction from the main README, run go_bot interaction but I didn't faced the error above.
and compare it within those one that is given in |
They are not matching. I got this bdfb6e757c6f7897c1d10022ea316ce5 using md5_hashsum from deeppavlov/models/classifiers/intents/utils.py. It is not matching with 39d91fd19b0f0240b8aa1e84b4d5fba4 from download/intents/intent_cnn_opt.json What should I do? |
Could you, please, re-download model and embeddings?
Maybe there were some troubles during downloading files. |
it fixed. But it is not starting on Telegram. |
Can you provide a little bit more details about "it is not starting on Telegram"? |
so I gave Telegram token, and I open my Telegram bot and typed /start, but it is not saying "Welcome to the UI of ..." |
Have you send to bot any other messages besides of "/start"? What was the response? |
I get no response for any message. |
Try to update to new version 0.0.2. |
You can close this. It works. |
I goy the following error
Traceback (most recent call last):
File "deep.py", line 63, in
main()
File "deep.py", line 55, in main
interact_model_by_telegram(pipeline_config_path, token)
File "/home/mdixie/.conda/envs/deeppavlov/lib/python3.6/site-packages/deeppavlov-0.0.1-py3.6.egg/telegram_utils/telegram_ui.py", line 57, in interact_model_by_telegram
model = build_model_from_config(config)
File "/home/mdixie/.conda/envs/deeppavlov/lib/python3.6/site-packages/deeppavlov-0.0.1-py3.6.egg/deeppavlov/core/commands/infer.py", line 34, in build_model_from_config
model = from_params(REGISTRY[model_name], model_config, vocabs=vocabs, mode=mode)
File "/home/mdixie/.conda/envs/deeppavlov/lib/python3.6/site-packages/deeppavlov-0.0.1-py3.6.egg/deeppavlov/core/common/params.py", line 49, in from_params
mode=kwargs['mode'])
File "/home/mdixie/.conda/envs/deeppavlov/lib/python3.6/site-packages/deeppavlov-0.0.1-py3.6.egg/deeppavlov/core/common/params.py", line 52, in from_params
model = cls(**dict(config_params, **kwargs))
File "/home/mdixie/.conda/envs/deeppavlov/lib/python3.6/site-packages/deeppavlov-0.0.1-py3.6.egg/deeppavlov/core/models/tf_backend.py", line 47, in call
obj.init(*args, **kwargs)
File "/home/mdixie/.conda/envs/deeppavlov/lib/python3.6/site-packages/deeppavlov-0.0.1-py3.6.egg/deeppavlov/core/models/tf_backend.py", line 28, in _wrapped
return func(*args, **kwargs)
File "/home/mdixie/.conda/envs/deeppavlov/lib/python3.6/site-packages/deeppavlov-0.0.1-py3.6.egg/deeppavlov/models/classifiers/intents/intent_model.py", line 138, in init
"Given fasttext model does NOT match fasttext model used previously to train loaded model")
deeppavlov.core.common.errors.ConfigError: 'Given fasttext model does NOT match fasttext model used previously to train loaded model'
The text was updated successfully, but these errors were encountered: