Comments (6)
Hi Spadavec, our implementation is based on Keras + Tensorflow.
If you are not getting your GPU used is is probably because, one of these two is not recognizing your GPU.
Have you verified that tensorflow/keras is using your GPU in other settings?(https://www.tensorflow.org/programmers_guide/using_gpu)
from chemical_vae.
@beangoben yes, Keras + TF work on my GPU for other codebases. TF seems to sugget that it can see my GPU as well:
>>> sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
2018-02-14 16:48:53.514406: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0)
Device mapping:
/job:localhost/replica:0/task:0/gpu:0 -> device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0
2018-02-14 16:48:53.515305: I tensorflow/core/common_runtime/direct_session.cc:257] Device mapping:
/job:localhost/replica:0/task:0/gpu:0 -> device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0
Keras also is setup for TF:
cat $HOME/.keras/keras.json
{
"epsilon": 1e-07,
"floatx": "float32",
"image_data_format": "channels_last",
"backend": "tensorflow",
"device": "gpu0"
}
Although it seems that there is a potential version mismatch:
python -c 'import keras; print(keras.__version__)'
/home/spadavec/miniconda2/envs/chemvae/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
/home/spadavec/miniconda2/envs/chemvae/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
2.0.7
I installed everything via Anaconda; is it possible the environment.yml file isn't up-to-date?
from chemical_vae.
The environment.yml specifies keras=2.0.6, which is believe you are using 2.0.7..don't know if that is affecting anything.
Could you could try importing tensorflow, keras (check on the gpu) and then chem_vae and see if that works?
from chemical_vae.
@beangoben sorry for the confusion, but you want me to do the following (this from the zinc
directory in the repo)?
(chemvae) spadavec@turing:~/chemical_vae/models/zinc$ python
Python 3.6.4 | packaged by conda-forge | (default, Dec 23 2017, 16:31:06)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
/home/spadavec/miniconda2/envs/chemvae/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
im>>> import keras
/home/spadavec/miniconda2/envs/chemvae/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
>>> import chemvae
>>> from chemvae import train_vae
>>>
my understanding is that this should launch the train_vae
code, but it doesn't
from chemical_vae.
I just did a 'clean' install on a new machine without using conda install, and it seems to work now. I'll leave this issue open for now, and once I figure out what the conflict is, I'll post here and close out. If you want to close this out now, I understand!
from chemical_vae.
great!
Will close if there is no additional related questions.
from chemical_vae.
Related Issues (20)
- NameError: name 'TerminalGRU' is not defined HOT 2
- Decoder expects 3 inputs but it received 2 inputs
- ...For time-series...
- Exact Python package versions
- I am trying to use your model to get the encoded representation of the smiles. HOT 1
- name 'vae' is not defined
- Is the Gaussian process for optimization of molecules included in the repository? HOT 1
- trying using the conda method HOT 3
- intro_to_chemvae.ipynb loading model AttributeError: 'str' object has no attribute 'decode' HOT 3
- Dense layer in variational_layers is not saved and cannot be used to generate latent variables
- AttributeError: 'TerminalGRU' object has no attribute 'preprocess_input' HOT 1
- GPU Support
- FileNotFoundError: [Errno 2] No such file or directory: 'zinc.json' HOT 1
- Hello
- updated version of this VAE?
- Paper
- Where can I find the model prediction result?
- Which RDkit version is used in this project?
- Version incompatible
- Metaclass conflict HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chemical_vae.