Closed ennauata closed 6 years ago
Hi, could you mention your OS/Tensorflow Version? We could then try and reproduce this error.
Thanks for the quick response, I believe the problem is the tensorflow version which I am using (tf 1.7) and my OS is 16.04.1-Ubuntu. I noticed one of the requirements is tf 1.3 which does not support my current cuda 9.0 (I guess).
Yes, that is most probably the issue. Closing this issue now. Feel free to re-open if it doesn't work with tf1.3 and cuda-8. Meanwhile, as soon as one of us finds time, we'll try to fix the errors on the newer versions of tensorflow (we already kind of have an idea about what these are)
You now have 5 out of 11 issues related to supporting tf1.3. May I suggest keeping one of them open to show that you intend to work on it? Or open a new one with a more specific title e.g. "support new tensorflow versions". Maybe in the meantime do a quick patch to PolygonModel.__init__()
to check the tf version and print a helpful error message? A nice error message would've saved me quite a bit of debugging time. (I'd be happy to do a PR for the error message if you like.)
Thanks for the nice suggestion! Yes, a PR would be much appreciated :)
The main problem isn't solvable through a PR since it requires us to compile new model files which use the new tf.gather api, which we will have to do internally, but the error message would be great! Ideally it should work for <=1.3 and >= some version that I am not sure of.
Something else I realised while making the PR: in my case, I'm running on a PC that doesn't have a GPU (terrible, I know) so the tensorflow-gpu==1.3.0
in requirements.txt
didn't do anything. When I first tried ./src/demo_inference.sh
I got an error message that tensorflow was missing. So I pip installed it, and it defaulted to the most recent version. Otherwise it probably would've just worked out of the box. Do you want me to add tensorflow==1.3.0
to the requirements.txt
, or would that be a problem for the majority of users which probably have a GPU?
Yes, you are right. The clean way to solve this would be to have an install.py that calls pip from within that automatically decides whether to install tensorflow or tensorflow-gpu. Since the expectation is that the current version would be run on a gpu, we did not change much. Maybe the readme line for cpu could be extended to say change the line in requirements.txt to tensorflow==1.3.0
Hello, I have tried running the demos for polyrnn++ following the instructions in the readme however, I keep getting an error when trying to restore polyrnn metagraph. I would appreciate any help on this, more details regarding the error is the following:
Code:
Initializing and restoring PolyRNN++
model = PolygonModel(PolyRNN_metagraph, polyGraph) model.register_evalfn(lambda input: evaluator.dotest(evalSess, input)) polySess = tf.Session(config=tf.ConfigProto( allow_soft_placement=True ), graph=polyGraph) model.saver.restore(polySess, PolyRNN_checkpoint)
Error:
ValueError Traceback (most recent call last)