-
Notifications
You must be signed in to change notification settings - Fork 43
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
Errors while running "standalone_model_tf.py" #7
Comments
Hey @Jbru18 , The first "error" is a Python 2 v. Python 3 difference. The second is potentially the same. The commit here updated the argument order for newer versions of tensorflow (didn't update the README though, oops). In r0.12 and similar early versions, I would also expect that using Python 3, you'll get a couple of stray errors related to the use of |
HI Connor, Thank you for the quick response. I did not realize that that the model was written for Python 2. I will be running the SCScore in Windows and to my knowledge Tensorflow is only available for Python 3 in Windows. I have installed the recent version of Tensorflow 1.12 which addresses the argument order, but still face the issue of updating the Python 2 syntax to Python 3. Would you have a Python 3 version available ? Thanks Edits: |
I haven't prepared a Python 3 version right now, sorry. The Empty exception class can be imported as |
The standalone_model_tf.py throws an error at "print "Model size: %dK" % (n/1000,)".
The error is resolved by modifying the line to print (Model size: %dK" % (n/1000,))
A second value error is thrown at line 34
File "lib\site-packages\scscore-master\scscore\standalone_model_tf.py", line 110, in
model.build()
File "lib\site-packages\scscore-master\scscore\standalone_model_tf.py", line 34, in build
self.mol_hiddens = tf.nn.relu(linearND(self.input_mol, hidden_size, scope="encoder0"))
....
_GetDenseDimensions(values)))
ValueError: Argument must be a dense tensor: range(0, 1) - got shape [1], but wanted [].
Any suggestions on how to resolve this error ? The error occurs with in the following configuration:
Installed packages:
h5py 2.8.0 py35h3bdd7fb_2 anaconda
hdf5 1.10.2 vc14_0 [vc14] conda-forge
numpy 1.15.2 py35ha559c80_0
numpy-base 1.15.2 py35h8128ebf_0
rdkit 2018.03.2 py35hc0a4591_0 conda-forge
six 1.11.0 py35_1 conda-forge
tensorflow 0.12.1
The text was updated successfully, but these errors were encountered: