Hi all, I managed to get OpenNMT working on a virtual Ubuntu machine, but now I’d like to leverage my GPU’s (SLI) as 40 hours of training time is stretching things a bit.
I’ve got Python working on Windows and even got Tensorflow installed and working. My last obstacle is installing OpenNMT on Python.
pip install URL
or
pip install opennmt-tf
does not work. Please see the attached screenshot.
How exactly do I go about this? I need to make sure the package is installed in Python 3.6. Please be precise: I’m a total noob when it comes to non-Windows stuff and the path names and directory chaos are confusing me.
I tried that before. It does seem to install opennmt, but all I see in the Python27/Lib/site-packages/opennmt directory is six files (__init, config and constants.py/pyc). There’s no bin/main or anything similar. One thing that worries me: is this the right location, as this needs to run on Python 36 and not 27? And where have all the files gone?
One step closer! But it seems I need to choose between running at the Python prompt or the Windows prompt and can’t have my cake and eat it. Please see the attached screenshot. As you can see, Python is there.
So my guess is that I need to use import opennmt as nmt or something like that in the Python prompt. From there, how do I get access to commands like train?
Ah, fantastic. Python 3.6 for Windows installs 2.7 with it by default, which is indeed very confusing. I just killed the entire 2.7 directory, then installed YAML via Git for Windows and voila, main is responding! I’ll keep on playing with this. Thank you very much for your help so far!
Yes, no matter what file I feed, I always get UnicodeDecodeError: ‘cp932’ codec can’t decode byte 0xef in position xxxx: illegal multibyte sequence during the train phase.
To be clear, Windows support is not a priority as people are massively using Linux systems for this kind of application. But if TensorFlow is correctly working on Windows, it would be nice that OpenNMT-tf works there as well.
Could you open an issue on GitHub? I will try to debug that when I have my hands on a Windows system. Thanks.