-
Notifications
You must be signed in to change notification settings - Fork 3.6k
t2t-translate-all error #508
Comments
My guess: you are using
You should install the github master version with pip install -e . or make sure you have setup $PYTHONPATH so it includes the bleu_hook.py from the github master.
|
Installed tensor2tensor from the github master:
Appended to path
Same error when running the above command:
|
Sorry, I was inaccurate: PYTHONPATH cannot include individual *.py files, in your case it should include import tensor2tensor.utils.bleu_hook
print(tensor2tensor.utils.bleu_hook.__file__) and make sure the given file is the new one which includes the Of course, there may be bugs in Now, I have noticed you install with python3.6, but it seems this is not your default python. Note that |
With release of 1.4.2, my issue is fixed. Thanks for the quick answers. |
I am happy it works for you. Unfortunately, I found few more bugs in |
I'm just trying to figure out how to use t2t-translate-all. Is $MODEL_DIR supposed to be the directory with all the checkpoints? |
Yes, |
I'm running tensor2tensor from source, with the following version of tensorflow
I'm trying to translate 20 checkpoints in my checkpoint directory using t2t-translate all, with the end goal of computing the final BLEU score of the models learned in order to compare to the paper. The command I am running is
The error I get is
What's wrong?
@martinpopel
The text was updated successfully, but these errors were encountered: